toJson method
Convert the ExchangeCreateContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"first_token_id": StringUtils.tryDecode(firstTokenId),
"first_token_balance": firstTokenBalance?.toString(),
"second_token_id": StringUtils.tryDecode(secondTokenId),
"second_token_balance": secondTokenBalance?.toString(),
}..removeWhere((key, value) => value == null);
}