toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json[r'account'] = account;
if (amount != null) {
_json[r'amount'] = amount;
} else {
_json[r'amount'] = null;
}
_json[r'commitment'] = commitment;
_json[r'environment'] = environment;
_json[r'index'] = index;
_json[r'mint'] = mint;
return _json;
}