Added working edit transaction

This commit is contained in:
Nathan Anderson
2023-07-22 21:29:32 -06:00
parent eba628bb4c
commit 18aad2b3d5
28 changed files with 1959 additions and 430 deletions
+10 -2
View File
@@ -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);