This commit is contained in:
Mohammed Al-Samarraie
2026-01-18 19:40:54 +03:00
parent 8adab4c4af
commit 79b53b6303
13 changed files with 771 additions and 94 deletions

View File

@@ -0,0 +1,25 @@
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,
};
}
}