Map<String, dynamic> toJson() { final json = <String, dynamic>{}; json[r'date'] = _dateFormatter.format(this.date); json[r'amount'] = this.amount; json[r'currency'] = this.currency; return json; }