class PatientSearchRequestModel {
  int? doctorID;
  String? firstName;
  String? middleName;
  String? lastName;
  String? patientMobileNumber;
  String? patientIdentificationID;
  int? patientID;
  String? from;
  String? to;
  int? searchType;
  int? projectID;
  String? mobileNo;
  String? identificationNo;
  int? nursingStationID;
  int? clinicID = 0;
  int? loginDoctorID;
  int? pageIndex;
  int? pageSize;


  PatientSearchRequestModel(
      {this.doctorID,
      this.firstName = "0",
      this.middleName = "0",
      this.lastName = "0",
      this.patientMobileNumber = "0",
      this.patientIdentificationID = "0",
      this.patientID = 0,
      this.searchType = 1,
      this.mobileNo = "",
      this.identificationNo = "",
      this.from = "",
      this.to = "",
      this.clinicID = 0,
      this.nursingStationID = 0,
      this.projectID,
        this.loginDoctorID,
      this.pageIndex = 0 ,
      this.pageSize = 10
      });

  PatientSearchRequestModel.fromJson(Map<String, dynamic> json) {
    doctorID = json['DoctorID'];
    firstName = json['FirstName'];
    middleName = json['MiddleName'];
    lastName = json['LastName'];
    patientMobileNumber = json['PatientMobileNumber'];
    patientIdentificationID = json['PatientIdentificationID'];
    patientID = json['PatientID'];
    from = json['From'];
    to = json['To'];
    searchType = json['SearchType'];
    mobileNo = json['MobileNo'];
    identificationNo = json['IdentificationNo'];
    nursingStationID = json['NursingStationID'];
    clinicID = json['ClinicID'];
    projectID = json['ProjectID'];
    loginDoctorID = json['LoginDoctorID'];
    pageIndex = json['PageIndex'];
    pageSize = json['PageSize'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['DoctorID'] = this.doctorID;
    data['MemberID'] = this.doctorID;
    data['FirstName'] = this.firstName;
    data['MiddleName'] = this.middleName;
    data['LastName'] = this.lastName;
    data['PatientMobileNumber'] = this.patientMobileNumber;
    data['PatientIdentificationID'] = this.patientIdentificationID;
    data['PatientID'] = this.patientID;
    data['From'] = this.from;
    data['To'] = this.to;
    data['SearchType'] = this.searchType;
    data['MobileNo'] = this.mobileNo;
    data['IdentificationNo'] = this.identificationNo;
    data['NursingStationID'] = this.nursingStationID;
    data['ClinicID'] = this.clinicID;
    data['ProjectID'] = this.projectID;
    data['LoginDoctorID'] = this.loginDoctorID;
    data['PageIndex'] = this.pageIndex;
    data['PageSize'] = this.pageSize;
    return data;
  }

  void transformDataForVidaPlus(){
    this.firstName = "";
    this.middleName = "";
    this.lastName = "";
    this.patientMobileNumber = "";
    this.patientIdentificationID = "";
    this.pageIndex = 0 ;
    this.pageSize = 10;
    // this.clinicID = null;
  }
}
