first commit
This commit is contained in:
25
lib/Models/summary/pickupstats.dart
Normal file
25
lib/Models/summary/pickupstats.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
class PickupStats {
|
||||
final int today;
|
||||
final int week;
|
||||
final int month;
|
||||
final int total;
|
||||
final int cancelled;
|
||||
|
||||
PickupStats({
|
||||
required this.today,
|
||||
required this.week,
|
||||
required this.month,
|
||||
required this.total,
|
||||
required this.cancelled,
|
||||
});
|
||||
|
||||
factory PickupStats.fromJson(Map<String, dynamic> json) {
|
||||
return PickupStats(
|
||||
today: json['today'] ?? 0,
|
||||
week: json['week'] ?? 0,
|
||||
month: json['month'] ?? 0,
|
||||
total: json['total'] ?? 0,
|
||||
cancelled: json['cancelled'] ?? 0,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user