- GeminiService (integrations/gemini, @Global): extractDocument (OCR fields) + faceMatch; graceful if no GEMINI_API_KEY - documents: face-match now real via Gemini; POST /admin/documents/:id/ocr extracts fields for CS auto-fill - roles: PATCH /admin/users/:id/role (admin) + POST /platform/users/role (bootstrap via x-platform-secret) - config: gemini + platform.secret; .env.example entries Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
488 B
Dart
Executable File
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,
|
|
);
|
|
}
|