2021-12-24 12:52:08 +00:00
|
|
|
class Account {
|
2023-05-05 12:58:41 +00:00
|
|
|
Account({required this.id, required this.label, this.balance});
|
2021-12-24 12:52:08 +00:00
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
Account.fromMap(Map<String, Object> map)
|
2021-12-24 12:52:08 +00:00
|
|
|
: this.id = map['id'] == null ? 0 : int.parse(map['id'] as String),
|
2023-05-05 12:58:41 +00:00
|
|
|
this.label = (map['label'] ?? '') as String,
|
|
|
|
this.balance = (map['balance'] ?? '0.00') as String;
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
final int id;
|
|
|
|
final String label;
|
2023-05-05 12:58:41 +00:00
|
|
|
final String? balance;
|
2022-03-30 15:57:04 +00:00
|
|
|
}
|