This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/models/rota/StaffHolidays.dart

27 lines
714 B
Dart

class StaffHolidays {
StaffHolidays({
this.isStaffHolidays,
this.calculatedDates,});
StaffHolidays.fromJson(dynamic json) {
isStaffHolidays = json['isStaffHolidays'];
// if (json['calculatedDates'] != null) {
// calculatedDates = [];
// json['calculatedDates'].forEach((v) {
// calculatedDates?.add(Dynamic.fromJson(v));
// });
// }
}
bool? isStaffHolidays;
List<dynamic>? calculatedDates;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['isStaffHolidays'] = isStaffHolidays;
if (calculatedDates != null) {
map['calculatedDates'] = calculatedDates?.map((v) => v.toJson()).toList();
}
return map;
}
}