attendence login/logout has been implemented
This commit is contained in:
24
lib/data/dto/attendance_response_dto.dart
Normal file
24
lib/data/dto/attendance_response_dto.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class AttendanceResponseDto {
|
||||
final String id;
|
||||
final String employeeId;
|
||||
final DateTime? login;
|
||||
final DateTime? logout;
|
||||
|
||||
AttendanceResponseDto({
|
||||
required this.id,
|
||||
required this.employeeId,
|
||||
this.login,
|
||||
this.logout,
|
||||
});
|
||||
|
||||
factory AttendanceResponseDto.fromJson(Map<String, dynamic> json) {
|
||||
final data = json['data'];
|
||||
|
||||
return AttendanceResponseDto(
|
||||
id: data['id'],
|
||||
employeeId: data['employeeId'],
|
||||
login: data['login'],
|
||||
logout: data['logout'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user