Added working edit transaction
This commit is contained in:
@@ -13,8 +13,10 @@ class BudgetCategory {
|
||||
required this.budgetId,
|
||||
required this.name,
|
||||
required this.color,
|
||||
required this.createdAt,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
required this.amount,
|
||||
this.hide = false,
|
||||
});
|
||||
|
||||
final int budgetId;
|
||||
@@ -22,11 +24,17 @@ class BudgetCategory {
|
||||
final String name;
|
||||
final double amount;
|
||||
|
||||
@JsonKey(fromJson: boolFromJson, toJson: boolToJson)
|
||||
final bool hide;
|
||||
|
||||
@JsonKey(fromJson: colorFromJson, toJson: colorToJson)
|
||||
final Color color;
|
||||
|
||||
@JsonKey(fromJson: dateFromJson, toJson: dateToJson)
|
||||
final DateTime createdAt;
|
||||
final DateTime? createdAt;
|
||||
|
||||
@JsonKey(fromJson: dateFromJson, toJson: dateToJson)
|
||||
final DateTime? updatedAt;
|
||||
|
||||
factory BudgetCategory.fromJson(Map<String, dynamic> json) =>
|
||||
_$BudgetCategoryFromJson(json);
|
||||
|
||||
Reference in New Issue
Block a user