toMap method
Creates a Map<String, dynamic> map
representation of this instance.
This can be useful for saving the instance in a database.
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
_budgetNameKey: budgetName,
_dateTimeKey: dateTime.toIso8601String(),
_descriptionKey: description,
_idKey: id,
_expenseOrIncomeKey: expenseOrIncome.string(),
_methodKey: method.string(),
_placeKey: place.toMap(),
_tagsKey: tags,
_valueKey: '$value',
};