toMap method
Implementation
Map<String, dynamic> toMap() {
final flow = {
'from': this.from.toMap(),
'to': this.to.toMap(),
'amount': this.amount.toMap(),
'at': this.at.toTimestampSinceEpoch(),
};
return {'flow': flow, 'txType': this.type};
}