marco.pms.mobileapp/lib/model/employee_model.dart
Vaibhav Surve a5dd5e19fc Add Windows runner implementation for Flutter application
- 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.
2025-04-23 09:55:31 +05:30

29 lines
779 B
Dart

class EmployeeModel {
final int id;
final String name;
final String designation;
final String checkIn;
final String checkOut;
final int actions;
EmployeeModel({
required this.id,
required this.name,
required this.designation,
required this.checkIn,
required this.checkOut,
required this.actions,
});
factory EmployeeModel.fromJson(Map<String, dynamic> json) {
return EmployeeModel(
id: json['employeeId'] ?? 0,
name: '${json['firstName']} ${json['lastName']}',
designation: json['jobRoleName'] ?? '',
checkIn: json['checkIn'] ?? '-', // Make sure your API returns this field
checkOut: json['checkOut'] ?? '-',
actions: json['actions'] ?? 0, // Make sure your API returns this field
);
}
}