TransferContract.fromJson constructor
Create a new TransferContract instance by parsing a JSON map.
Implementation
factory TransferContract.fromJson(Map<String, dynamic> json) {
return TransferContract(
amount: OnChainUtils.parseBigInt(value: json['amount'], name: "amount"),
ownerAddress: OnChainUtils.parseTronAddress(
value: json['owner_address'], name: "owner_address"),
toAddress: OnChainUtils.parseTronAddress(
value: json['to_address'], name: "to_address"));
}