Add the Income and Asset classes.

This commit is contained in:
2025-02-11 14:49:42 -07:00
parent 0aa8fdf271
commit fcf4fca33b
2 changed files with 54 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import '/models/tracked_type.dart';
class Asset extends TrackedType {
static String amountText = "Amount";
Asset({
super.id,
required super.name,
required super.amount,
required super.description,
});
factory Asset.fromMap(Map<String, dynamic> json) => Asset(
id: json['id'],
name: json['name'],
amount: json['amount'],
description: json['description'],
);
}