Files
tripz/lib/models/model/admin/monthly_ride.dart
Hamza-Ayed c2dc5ec44c 12/31/1
2023-12-31 00:11:49 +03:00

22 lines
488 B
Dart

class MonthlyDataModel {
final int year;
final int month;
final int day;
final int ridesCount;
MonthlyDataModel({
required this.year,
required this.month,
required this.day,
required this.ridesCount,
});
factory MonthlyDataModel.fromJson(Map<String, dynamic> json) =>
MonthlyDataModel(
year: json['year'] as int,
month: json['month'] as int,
day: json['day'] as int,
ridesCount: json['rides_count'] as int,
);
}