SetAccountIdContract.fromJson constructor

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

Create a new SetAccountIdContract instance by parsing a JSON map.

Implementation

factory SetAccountIdContract.fromJson(Map<String, dynamic> json) {
  return SetAccountIdContract(
    accountId: StringUtils.encode(json["account_id"]),
    ownerAddress: TronAddress(json["owner_address"]),
  );
}