FreezeBalanceContract.fromJson constructor
Create a new FreezeBalanceContract instance by parsing a JSON map.
Implementation
factory FreezeBalanceContract.fromJson(Map<String, dynamic> json) {
return FreezeBalanceContract(
ownerAddress: TronAddress(json["owner_address"]),
frozenBalance: BigintUtils.tryParse(json["frozen_balance"]),
frozenDuration: BigintUtils.tryParse(json["frozen_balance"]),
resource: ResourceCode.fromName(json["resource"]),
receiverAddress: json["receiver_address"] == null
? null
: TronAddress(json["receiver_address"]),
);
}