25 lines
513 B
Dart
25 lines
513 B
Dart
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'],
|
|
);
|
|
}
|
|
}
|