Files
driver_tripz/lib/models/model/admin/monthly_ride.dart
Hamza-Ayed 153d2f64c0 25-3/18/1
2025-03-18 13:54:27 +03:00

22 lines
488 B
Dart
Executable File

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,
);
}