Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
transaction_model.dart
Go to the documentation of this file.
2 final String date;
3 final String type;
4 final double amount;
5 final String time;
6 final bool isReceived;
7
9 required this.date,
10 required this.type,
11 required this.amount,
12 required this.time,
13 required this.isReceived,
14 });
15
16 factory TransactionModel.fromJson(Map<String, dynamic> json) {
17 return TransactionModel(
18 date: json['date'] as String,
19 type: json['type'] as String,
20 amount: json['amount'] as double,
21 time: json['time'] as String,
22 isReceived: json['isReceived'] as bool,
23 );
24 }
25
26 Map<String, dynamic> toJson() {
27 return {
28 'date': date,
29 'type': type,
30 'amount': amount,
31 'time': time,
32 'isReceived': isReceived,
33 };
34 }
35}
Map< String, dynamic > toJson()
TransactionModel({ required this.date, required this.type, required this.amount, required this.time, required this.isReceived, })