ExchangeTransactionContract.fromJson constructor
Create a new ExchangeTransactionContract instance by parsing a JSON map.
Implementation
factory ExchangeTransactionContract.fromJson(Map<String, dynamic> json) {
return ExchangeTransactionContract(
ownerAddress: OnChainUtils.parseTronAddress(
value: json['owner_address'], name: 'owner_address'),
exchangeId: OnChainUtils.parseBigInt(
value: json['exchange_id'], name: 'exchange_id'),
tokenId:
OnChainUtils.parseBytes(value: json['token_id'], name: 'token_id'),
quant: OnChainUtils.parseBigInt(value: json['quant'], name: 'quant'),
expected:
OnChainUtils.parseBigInt(value: json['expected'], name: 'expected'),
);
}