- Created CMakeLists.txt for Flutter and runner components. - Implemented resource script (Runner.rc) for application metadata. - Developed main entry point (main.cpp) for the Windows application. - Added FlutterWindow class to manage the Flutter view within a Win32 window. - Implemented utility functions for console management and command line argument parsing. - Established Win32Window class for high DPI-aware window handling. - Included application icon and manifest for proper Windows integration. - Set up build configurations and dependencies for the Flutter application on Windows.
26 lines
741 B
Dart
26 lines
741 B
Dart
class AttendanceLogModel {
|
|
final String name;
|
|
final String role;
|
|
final DateTime? checkIn;
|
|
final DateTime? checkOut;
|
|
final int activity;
|
|
|
|
AttendanceLogModel({
|
|
required this.name,
|
|
required this.role,
|
|
this.checkIn,
|
|
this.checkOut,
|
|
required this.activity,
|
|
});
|
|
|
|
factory AttendanceLogModel.fromJson(Map<String, dynamic> json) {
|
|
return AttendanceLogModel(
|
|
name: "${json['firstName'] ?? ''} ${json['lastName'] ?? ''}".trim(),
|
|
role: json['jobRoleName'] ?? '',
|
|
checkIn: json['checkInTime'] != null ? DateTime.tryParse(json['checkInTime']) : null,
|
|
checkOut: json['checkOutTime'] != null ? DateTime.tryParse(json['checkOutTime']) : null,
|
|
activity: json['activity'] ?? 0,
|
|
);
|
|
}
|
|
}
|