AccountUpdateContract.fromJson constructor

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

Create a new AccountUpdateContract instance by parsing a JSON map.

Implementation

factory AccountUpdateContract.fromJson(Map<String, dynamic> json) {
  return AccountUpdateContract(
      ownerAddress: OnChainUtils.parseTronAddress(
          value: json["owner_address"], name: "owner_address"),
      accountName: OnChainUtils.parseBytes(
          value: json["account_name"], name: "account_name"));
}