// To parse this JSON data, do
//
//     final gajiRespon = gajiResponFromJson(jsonString);

import 'dart:convert';

GajiRespon gajiResponFromJson(String str) => GajiRespon.fromJson(json.decode(str));

String gajiResponToJson(GajiRespon data) => json.encode(data.toJson());

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

  bool? success;
  String? message;
  DataGaji? data;

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

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

class DataGaji {
  DataGaji({
    this.gajiPokok,
    this.tJabatan,
    this.tTransport,
    this.tMakan,
    this.tIstri,
    this.tAnak,
    this.lembur,
    this.komisi,
    this.tLain,
    this.ttlTunjangan,
    this.ttlPenerimaan,
    this.tbpBpjsTk,
    this.tbpBpjsKesehatan,
    this.tbpLain,
    this.ttlTbp,
    this.pAbsensi,
    this.pKeterlambatan,
    this.pKoperasi,
    this.pAsuransiKesehatan,
    this.pBpjsTk,
    this.pBpjsKesehatan,
    this.pLain,
    this.ttlPotongan,
    this.gajiDiterima,
  });

  int? gajiPokok;
  int? tJabatan;
  int? tTransport;
  int? tMakan;
  int? tIstri;
  int? tAnak;
  int? lembur;
  int? komisi;
  int? tLain;
  int? ttlTunjangan;
  int? ttlPenerimaan;
  int? tbpBpjsTk;
  int? tbpBpjsKesehatan;
  int? tbpLain;
  int? ttlTbp;
  int? pAbsensi;
  int? pKeterlambatan;
  int? pKoperasi;
  int? pAsuransiKesehatan;
  int? pBpjsTk;
  int? pBpjsKesehatan;
  int? pLain;
  int? ttlPotongan;
  int? gajiDiterima;


  factory DataGaji.fromJson(Map<String, dynamic> json) => DataGaji(
    gajiPokok: json["gaji_pokok"] == null ? null : json["gaji_pokok"],
    tJabatan: json["t_jabatan"] == null ? null : json["t_jabatan"],
    tTransport: json["t_transport"] == null ? null : json["t_transport"],
    tMakan: json["t_makan"] == null ? null : json["t_makan"],
    tIstri: json["t_istri"] == null ? null : json["t_istri"],
    tAnak: json["t_anak"] == null ? null : json["t_anak"],
    lembur: json["lembur"] == null ? null : json["lembur"],
    komisi: json["komisi"] == null ? null : json["komisi"],
    tLain: json["t_lain"] == null ? null : json["t_lain"],
    ttlTunjangan: json["ttl_tunjangan"] == null ? null : json["ttl_tunjangan"],
    ttlPenerimaan: json["ttl_penerimaan"] == null ? null : json["ttl_penerimaan"],
    tbpBpjsTk: json["tbp_bpjs_tk"] == null ? null : json["tbp_bpjs_tk"],
    tbpBpjsKesehatan: json["tbp_bpjs_kesehatan"] == null ? null : json["tbp_bpjs_kesehatan"],
    tbpLain: json["tbp_lain"] == null ? null : json["tbp_lain"],
    ttlTbp: json["ttl_tbp"] == null ? null : json["ttl_tbp"],
    pAbsensi: json["p_absensi"] == null ? null : json["p_absensi"],
    pKeterlambatan: json["p_keterlambatan"] == null ? null : json["p_keterlambatan"],
    pKoperasi: json["p_koperasi"] == null ? null : json["p_koperasi"],
    pAsuransiKesehatan: json["p_asuransi_kesehatan"] == null ? null : json["p_asuransi_kesehatan"],
    pBpjsTk: json["p_bpjs_tk"] == null ? null : json["p_bpjs_tk"],
    pBpjsKesehatan: json["p_bpjs_kesehatan"] == null ? null : json["p_bpjs_kesehatan"],
    pLain: json["p_lain"] == null ? null : json["p_lain"],
    ttlPotongan: json["ttl_potongan"] == null ? null : json["ttl_potongan"],
    gajiDiterima: json["gaji_diterima"] == null ? null : json["gaji_diterima"],
  );

  Map<String, dynamic> toJson() => {
    "gaji_pokok": gajiPokok == null ? null : gajiPokok,
    "t_jabatan": tJabatan == null ? null : tJabatan,
    "t_transport": tTransport == null ? null : tTransport,
    "t_makan": tMakan == null ? null : tMakan,
    "t_istri": tIstri == null ? null : tIstri,
    "t_anak": tAnak == null ? null : tAnak,
    "lembur": lembur == null ? null : lembur,
    "komisi": komisi == null ? null : komisi,
    "t_lain": tLain == null ? null : tLain,
    "ttl_tunjangan": ttlTunjangan == null ? null : ttlTunjangan,
    "ttl_penerimaan": ttlPenerimaan == null ? null : ttlPenerimaan,
    "tbp_bpjs_tk": tbpBpjsTk == null ? null : tbpBpjsTk,
    "tbp_bpjs_kesehatan": tbpBpjsKesehatan == null ? null : tbpBpjsKesehatan,
    "tbp_lain": tbpLain == null ? null : tbpLain,
    "ttl_tbp": ttlTbp == null ? null : ttlTbp,
    "p_absensi": pAbsensi == null ? null : pAbsensi,
    "p_keterlambatan": pKeterlambatan == null ? null : pKeterlambatan,
    "p_koperasi": pKoperasi == null ? null : pKoperasi,
    "p_asuransi_kesehatan": pAsuransiKesehatan == null ? null : pAsuransiKesehatan,
    "p_bpjs_tk": pBpjsTk == null ? null : pBpjsTk,
    "p_bpjs_kesehatan": pBpjsKesehatan == null ? null : pBpjsKesehatan,
    "p_lain": pLain == null ? null : pLain,
    "ttl_potongan": ttlPotongan == null ? null : ttlPotongan,
    "gaji_diterima": gajiDiterima == null ? null : gajiDiterima,
  };
}
