// To parse this JSON data, do
//
//     final employeeLeavesList = employeeLeavesListFromJson(jsonString);

import 'dart:convert';

EmployeeLeavesList employeeLeavesListFromJson(String str) => EmployeeLeavesList.fromJson(json.decode(str));

String employeeLeavesListToJson(EmployeeLeavesList data) => json.encode(data.toJson());

class EmployeeLeavesList {
  EmployeeLeavesList({
    this.absenceAttendanceTypeName,
    this.dateEnd,
    this.dateStart,
    this.eventDate,
    this.holidayType,
    this.leaveType,
  });

  String? absenceAttendanceTypeName;
  String? dateEnd;
  String? dateStart;
  String? eventDate;
  String? holidayType;
  String? leaveType;

  factory EmployeeLeavesList.fromJson(Map<String, dynamic> json) => EmployeeLeavesList(
    absenceAttendanceTypeName: json["ABSENCE_ATTENDANCE_TYPE_NAME"],
    dateEnd: json["DATE_END"],
    dateStart: json["DATE_START"],
    eventDate: json["EVENT_DATE"],
    holidayType: json["HOLIDAY_TYPE"],
    leaveType: json["LEAVE_TYPE"],
  );

  Map<String, dynamic> toJson() => {
    "ABSENCE_ATTENDANCE_TYPE_NAME": absenceAttendanceTypeName,
    "DATE_END": dateEnd,
    "DATE_START": dateStart,
    "EVENT_DATE": eventDate,
    "HOLIDAY_TYPE": holidayType,
    "LEAVE_TYPE": leaveType,
  };
}
