ExchangeCreateContract.fromJson constructor
Create a new ExchangeCreateContract instance by parsing a JSON map.
Implementation
factory ExchangeCreateContract.fromJson(Map<String, dynamic> json) {
return ExchangeCreateContract(
ownerAddress: OnChainUtils.parseTronAddress(
value: json['owner_address'], name: 'owner_address'),
firstTokenId: OnChainUtils.parseBytes(
value: json['first_token_id'], name: 'first_token_id'),
firstTokenBalance: OnChainUtils.parseBigInt(
value: json['first_token_balance'], name: 'first_token_balance'),
secondTokenId: OnChainUtils.parseBytes(
value: json['second_token_id'], name: 'second_token_id'),
secondTokenBalance: OnChainUtils.parseBigInt(
value: json['second_token_balance'], name: 'second_token_balance'),
);
}