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