AccountId.fromJson constructor

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

final decode = TronProtocolBufferImpl.decode(bytes);

Implementation

factory AccountId.fromJson(Map<String, dynamic> json) {
  return AccountId(
      name: StringUtils.tryEncode(json["name"]),
      address: TronAddress(json["address"]));
}