@@ -14,6 +14,7 @@ class BankAccountFields extends BaseEntityFields {
1414 static String color = 'color' ;
1515 static String startingValue = 'startingValue' ;
1616 static String active = 'active' ;
17+ static String countNetWorth = 'countNetWorth' ;
1718 static String mainAccount = 'mainAccount' ;
1819 static String total = 'total' ;
1920 static String createdAt = BaseEntityFields .getCreatedAt;
@@ -26,6 +27,7 @@ class BankAccountFields extends BaseEntityFields {
2627 color,
2728 startingValue,
2829 active,
30+ countNetWorth,
2931 mainAccount,
3032 BaseEntityFields .createdAt,
3133 BaseEntityFields .updatedAt
@@ -38,6 +40,7 @@ class BankAccount extends BaseEntity {
3840 final int color;
3941 final num startingValue;
4042 final bool active;
43+ final bool countNetWorth;
4144 final bool mainAccount;
4245 final num ? total;
4346
@@ -48,6 +51,7 @@ class BankAccount extends BaseEntity {
4851 required this .color,
4952 required this .startingValue,
5053 required this .active,
54+ required this .countNetWorth,
5155 required this .mainAccount,
5256 this .total,
5357 super .createdAt,
@@ -61,6 +65,7 @@ class BankAccount extends BaseEntity {
6165 int ? color,
6266 num ? startingValue,
6367 bool ? active,
68+ bool ? countNetWorth,
6469 bool ? mainAccount,
6570 DateTime ? createdAt,
6671 DateTime ? updatedAt,
@@ -72,6 +77,7 @@ class BankAccount extends BaseEntity {
7277 color: color ?? this .color,
7378 startingValue: startingValue ?? this .startingValue,
7479 active: active ?? this .active,
80+ countNetWorth: countNetWorth ?? this .countNetWorth,
7581 mainAccount: mainAccount ?? this .mainAccount,
7682 createdAt: createdAt ?? this .createdAt,
7783 updatedAt: updatedAt ?? this .updatedAt,
@@ -85,6 +91,7 @@ class BankAccount extends BaseEntity {
8591 color: json[BankAccountFields .color] as int ,
8692 startingValue: json[BankAccountFields .startingValue] as num ,
8793 active: json[BankAccountFields .active] == 1 ? true : false ,
94+ countNetWorth: json[BankAccountFields .countNetWorth] == 1 ? true : false ,
8895 mainAccount: json[BankAccountFields .mainAccount] == 1 ? true : false ,
8996 total: json[BankAccountFields .total] as num ? ,
9097 createdAt: DateTime .parse (json[BaseEntityFields .createdAt] as String ),
@@ -98,6 +105,7 @@ class BankAccount extends BaseEntity {
98105 BankAccountFields .color: color,
99106 BankAccountFields .startingValue: startingValue,
100107 BankAccountFields .active: active ? 1 : 0 ,
108+ BankAccountFields .countNetWorth: countNetWorth ? 1 : 0 ,
101109 BankAccountFields .mainAccount: mainAccount ? 1 : 0 ,
102110 BaseEntityFields .createdAt: update
103111 ? createdAt? .toIso8601String ()
0 commit comments