toMap method
Implementation
Map<String, dynamic> toMap() {
final flow = {
'from': this.from.toMap(),
'to': this.to.toMap(),
'amount': this.amount.toMap(),
'at': DateTime.now().toTimestampSinceEpoch()
// TODO: add meta to object
};
return {'flow': flow, 'txType': 'CASH_IN'};
}