// To parse this JSON data, do
//
//     final summaryRespon = summaryResponFromJson(jsonString);

import 'dart:convert';

SummaryRespon summaryResponFromJson(String str) => SummaryRespon.fromJson(json.decode(str));

String summaryResponToJson(SummaryRespon data) => json.encode(data.toJson());

class SummaryRespon {
  SummaryRespon({
    this.success,
    this.message,
    this.data,
  });

  bool? success;
  String? message;
  DataSummary? data;

  factory SummaryRespon.fromJson(Map<String, dynamic> json) => SummaryRespon(
    success: json["success"] == null ? null : json["success"],
    message: json["message"] == null ? null : json["message"],
    data: json["data"] == null ? null : DataSummary.fromJson(json["data"]),
  );

  Map<String, dynamic> toJson() => {
    "success": success == null ? null : success,
    "message": message == null ? null : message,
    "data": data == null ? null : data!.toJson(),
  };
}

class DataSummary {
  DataSummary({
    this.hadir,
    this.sakit,
    this.izin,
    this.alpha,
    this.cuti,
    this.tugas,
    this.terlambat,
    this.pulangCepat,
    this.tidakAbsenPulang,
    this.menitTerlambat,
    this.menitPulangCepat,
    this.izinSakitCuti,
    this.lembur,
    this.menitLembur,
    this.sisaCuti,
  });

  String? hadir;
  String? sakit;
  String? izin;
  String? alpha;
  String? cuti;
  String? tugas;
  String? terlambat;
  String? pulangCepat;
  String? tidakAbsenPulang;
  String? menitTerlambat;
  String? menitPulangCepat;
  String? izinSakitCuti;
  String? lembur;
  String? menitLembur;
  String? sisaCuti;

  factory DataSummary.fromJson(Map<String, dynamic> json) => DataSummary(
    hadir: json["hadir"] == null ? null : json["hadir"],
    sakit: json["sakit"] == null ? null : json["sakit"],
    izin: json["izin"] == null ? null : json["izin"],
    alpha: json["alpha"] == null ? null : json["alpha"],
    cuti: json["cuti"] == null ? null : json["cuti"],
    tugas: json["tugas"] == null ? null : json["tugas"],
    terlambat: json["terlambat"] == null ? null : json["terlambat"],
    pulangCepat: json["pulang_cepat"] == null ? null : json["pulang_cepat"],
    tidakAbsenPulang: json["tidak_absen_pulang"] == null ? null : json["tidak_absen_pulang"],
    menitTerlambat: json["menit_terlambat"] == null ? null : json["menit_terlambat"],
    menitPulangCepat: json["menit_pulang_cepat"] == null ? null : json["menit_pulang_cepat"],
    izinSakitCuti: json["izin_sakit_cuti"] == null ? null : json["izin_sakit_cuti"],
    lembur: json["lembur"] == null ? null : json["lembur"],
    menitLembur: json["menit_lembur"] == null ? null : json["menit_lembur"],
    sisaCuti: json["sisa_cuti"] == null ? null : json["sisa_cuti"],
  );

  Map<String, dynamic> toJson() => {
    "hadir": hadir == null ? null : hadir,
    "sakit": sakit == null ? null : sakit,
    "izin": izin == null ? null : izin,
    "alpha": alpha == null ? null : alpha,
    "cuti": cuti == null ? null : cuti,
    "tugas": tugas == null ? null : tugas,
    "terlambat": terlambat == null ? null : terlambat,
    "pulang_cepat": pulangCepat == null ? null : pulangCepat,
    "tidak_absen_pulang": tidakAbsenPulang == null ? null : tidakAbsenPulang,
    "menit_terlambat": menitTerlambat == null ? null : menitTerlambat,
    "menit_pulang_cepat": menitPulangCepat == null ? null : menitPulangCepat,
    "izin_sakit_cuti": izinSakitCuti == null ? null : izinSakitCuti,
    "lembur": lembur == null ? null : lembur,
    "menit_lembur": menitLembur == null ? null : menitLembur,
    "sisa_cuti": sisaCuti == null ? null : sisaCuti,
  };
}
