Files
finger_print_app/lib/data/dto/vacation_request_dto.dart
Mohammed Al-Samarraie 79b53b6303 1111
2026-01-18 19:40:54 +03:00

26 lines
544 B
Dart

class VacationRequestDto {
final String employeeId;
final DateTime startDate;
final DateTime endDate;
final String reason;
final int type;
VacationRequestDto({
required this.employeeId,
required this.startDate,
required this.endDate,
required this.reason,
required this.type,
});
Map<String, dynamic> toJson() {
return {
'employeeId': employeeId,
'startDate': startDate.toIso8601String(),
'endDate': endDate.toIso8601String(),
'reason': reason,
'type': type,
};
}
}