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: TronAddress(json["address"]),
      weight: BigintUtils.parse(json["weight"]));
}