class PatientModel {
  String? id;
  String? prefix;
  String? name;
  String? suffix;
  String? dob;
  String? titleId;
  String? sexId;
  String? hp;
  String? nik;
  String? nip;
  String? noRM;
  String? jabatan;
  String? kedudukan;
  String? lokasi;
  String? pekerjaan;
  String? address;
  String? statusDelete;

  PatientModel(
      {this.id,
      this.prefix,
      this.name,
      this.suffix,
      this.dob,
      this.titleId,
      this.sexId,
      this.hp,
      this.nik,
      this.nip,
      this.noRM,
      this.jabatan,
      this.kedudukan,
      this.lokasi,
      this.pekerjaan,
      this.statusDelete,
      this.address});

  PatientModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    prefix = json['prefix'];
    name = json['name'];
    suffix = json['suffix'];
    dob = json['dob'];
    titleId = json['title_id'];
    sexId = json['sex_id'];
    hp = json['hp'];
    nik = json['nik'];
    nip = json['nip'];
    noRM = json['noRM'];
    address = json['address'];
    jabatan = json['jabatan'];
    kedudukan = json['kedudukan'];
    lokasi = json['lokasi'];
    pekerjaan = json['pekerjaan'];
    statusDelete = json['status_delete'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['prefix'] = prefix;
    data['name'] = name;
    data['suffix'] = suffix;
    data['dob'] = dob;
    data['title_id'] = titleId;
    data['sex_id'] = sexId;
    data['hp'] = hp;
    data['address'] = address;
    data['nik'] = nik;
    data['nip'] = nip;
    data['noRM'] = noRM;
    data['kedudukan'] = kedudukan;
    data['jabatan'] = jabatan;
    data['lokasi'] = lokasi;
    data['pekerjaan'] = pekerjaan;
    data['status_delete'] = statusDelete;
    return data;
  }
}
