toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': this.id.toString(),
'wallet': {
'label': this.walletInfo.label,
'currency': this.walletInfo.currency.toString(),
'type': this.walletInfo.type.toString()
},
};
}