import 'dart:convert';

DataPengalamanKerjaRespon dataPengalamanKerjaResponFromJson(String str) => DataPengalamanKerjaRespon.fromJson(json.decode(str));

String dataPengalamanKerjaResponToJson(DataPengalamanKerjaRespon data) => json.encode(data.toJson());

class DataPengalamanKerjaRespon {
  bool? success;
  String? message;
  List<DataDatapengalamankerja>? dataDatapengalamankerja;

  DataPengalamanKerjaRespon(
      {this.success, this.message, this.dataDatapengalamankerja});

  DataPengalamanKerjaRespon.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    if (json['data_datapengalamankerja'] != null) {
      dataDatapengalamankerja = <DataDatapengalamankerja>[];
      json['data_datapengalamankerja'].forEach((v) {
        dataDatapengalamankerja!.add(new DataDatapengalamankerja.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    if (this.dataDatapengalamankerja != null) {
      data['data_datapengalamankerja'] =
          this.dataDatapengalamankerja!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class DataDatapengalamankerja {
  String? idRiwayatPekerjaan;
  String? idKaryawan;
  String? title;
  String? idCompany;
  String? namaPerusahaan;
  String? jenisPerusahaan;
  String? jabatan;
  String? kota;
  String? provinsi;
  String? alamatPerusahaan;
  String? tglMasuk;
  String? tglKeluar;
  String? alasanBerhenti;
  String? file;
  String? statusPengajuan;
  String? colorStatusPengajuan;
  bool? buttonRevisi;
  String? ketRevisi;


  DataDatapengalamankerja(
      {this.idRiwayatPekerjaan,
        this.idKaryawan,
        this.title,
        this.idCompany,
        this.namaPerusahaan,
        this.jenisPerusahaan,
        this.jabatan,
        this.kota,
        this.provinsi,
        this.alamatPerusahaan,
        this.tglMasuk,
        this.tglKeluar,
        this.alasanBerhenti,
        this.file,
        this.statusPengajuan,
        this.colorStatusPengajuan,
        this.buttonRevisi,
        this.ketRevisi,

      });

  DataDatapengalamankerja.fromJson(Map<String, dynamic> json) {
    idRiwayatPekerjaan = json['id_riwayat_pekerjaan'];
    idKaryawan = json['id_karyawan'];
    title = json['title'];
    idCompany = json['id_company'];
    namaPerusahaan = json['nama_perusahaan'];
    jenisPerusahaan = json['jenis_perusahaan'];
    jabatan = json['jabatan'];
    kota = json['kota'];
    provinsi = json['provinsi'];
    alamatPerusahaan = json['alamat_perusahaan'];
    tglMasuk = json['tgl_masuk'];
    tglKeluar = json['tgl_keluar'];
    alasanBerhenti = json['alasan_berhenti'];
    file = json['file'];
    statusPengajuan = json['status_pengajuan'];
    colorStatusPengajuan = json['color_status_pengajuan'];
    buttonRevisi = json['button_revisi'];
    ketRevisi = json['ket_revisi'];
    file = json['file'];

  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id_riwayat_pekerjaan'] = this.idRiwayatPekerjaan;
    data['id_karyawan'] = this.idKaryawan;
    data['title'] = this.title;
    data['id_company'] = this.idCompany;
    data['nama_perusahaan'] = this.namaPerusahaan;
    data['jenis_perusahaan'] = this.jenisPerusahaan;
    data['jabatan'] = this.jabatan;
    data['kota'] = this.kota;
    data['provinsi'] = this.provinsi;
    data['alamat_perusahaan'] = this.alamatPerusahaan;
    data['tgl_masuk'] = this.tglMasuk;
    data['tgl_keluar'] = this.tglKeluar;
    data['alasan_berhenti'] = this.alasanBerhenti;
    data['file'] = this.file;
    data['status_pengajuan'] = this.statusPengajuan;
    data['color_status_pengajuan'] = this.colorStatusPengajuan;
    data['button_revisi'] = this.buttonRevisi;
    data['ket_revisi'] = this.ketRevisi;
    return data;
  }
}
