toJson method
Convert the TransferContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"to_address": toAddress.toString(),
"amount": amount.toString(),
}..removeWhere((key, value) => value == null);
}