TronKey.fromJson constructor

TronKey.fromJson(
  1. Map<String, dynamic> json
)

Create a new TronKey instance by parsing a JSON map.

Implementation

factory TronKey.fromJson(Map<String, dynamic> json) {
  return TronKey(
      address: OnChainUtils.parseTronAddress(
          value: json['address'], name: 'address'),
      weight:
          OnChainUtils.parseBigInt(value: json['weight'], name: 'weight'));
}