class PatientLabOrdersResponseModel {
  int? actualDoctorRate;
  dynamic? admissionDate;
  dynamic? admissionNumber;
  dynamic? appointmentDate;
  dynamic? appointmentNo;
  dynamic? appointmentTime;
  String? clinicDescription;
  String? clinicDescriptionEnglish;
  dynamic? clinicDescriptionN;
  int? clinicID;
  String? createdOn;
  num? decimalDoctorRate;
  int? doctorID;
  String? doctorImageURL;
  String? doctorName;
  String? doctorNameEnglish;
  dynamic? doctorNameN;
  int? doctorRate;
  num? doctorStarsRate;
  String? doctorTitle;
  int? gender;
  String? genderDescription;
  String? invoiceNo;
  dynamic? invoiceNoVP;
  String? invoiceType;
  bool? isActiveDoctorProfile;
  bool? isDoctorAllowVedioCall;
  bool? isDrReviewReq;
  bool? isExecludeDoctor;
  bool? isInOutPatient;
  String? isInOutPatientDescription;
  String? isInOutPatientDescriptionN;
  bool? isLiveCareAppointment;
  bool? isRead;
  bool? isSendEmail;
  String? nationalityFlagURL;
  int? noOfPatientsRate;
  String? orderDate;
  String? orderNo;
  dynamic? orderProjectID;
  String? patientID;
  String? projectID;
  String? projectName;
  dynamic? projectNameN;
  String? qR;
  String? setupID;
  // List<String>? speciality;
  int? status;
  String? statusDesc;
  String? strOrderDate;
  List<TestDetails>? testDetails;

  PatientLabOrdersResponseModel(
      {this.actualDoctorRate,
      this.admissionDate,
      this.admissionNumber,
      this.appointmentDate,
      this.appointmentNo,
      this.appointmentTime,
      this.clinicDescription,
      this.clinicDescriptionEnglish,
      this.clinicDescriptionN,
      this.clinicID,
      this.createdOn,
      this.decimalDoctorRate,
      this.doctorID,
      this.doctorImageURL,
      this.doctorName,
      this.doctorNameEnglish,
      this.doctorNameN,
      this.doctorRate,
      this.doctorStarsRate,
      this.doctorTitle,
      this.gender,
      this.genderDescription,
      this.invoiceNo,
      this.invoiceNoVP,
      this.invoiceType,
      this.isActiveDoctorProfile,
      this.isDoctorAllowVedioCall,
      this.isDrReviewReq,
      this.isExecludeDoctor,
      this.isInOutPatient,
      this.isInOutPatientDescription,
      this.isInOutPatientDescriptionN,
      this.isLiveCareAppointment,
      this.isRead,
      this.isSendEmail,
      this.nationalityFlagURL,
      this.noOfPatientsRate,
      this.orderDate,
      this.orderNo,
      this.orderProjectID,
      this.patientID,
      this.projectID,
      this.projectName,
      this.projectNameN,
      this.qR,
      this.setupID,
      // this.speciality,
      this.status,
      this.statusDesc,
      this.strOrderDate,
      this.testDetails});

  PatientLabOrdersResponseModel.fromJson(Map<String, dynamic> json) {
    actualDoctorRate = json['ActualDoctorRate'];
    admissionDate = json['AdmissionDate'];
    admissionNumber = json['AdmissionNumber'];
    appointmentDate = json['AppointmentDate'];
    appointmentNo = json['AppointmentNo'];
    appointmentTime = json['AppointmentTime'];
    clinicDescription = json['ClinicDescription'];
    clinicDescriptionEnglish = json['ClinicDescriptionEnglish'];
    clinicDescriptionN = json['ClinicDescriptionN'];
    clinicID = json['ClinicID'];
    createdOn = json['CreatedOn'];
    decimalDoctorRate = json['DecimalDoctorRate'];
    doctorID = json['DoctorID'];
    doctorImageURL = json['DoctorImageURL'];
    doctorName = json['DoctorName'];
    doctorNameEnglish = json['DoctorNameEnglish'];
    doctorNameN = json['DoctorNameN'];
    doctorRate = json['DoctorRate'];
    doctorStarsRate = json['DoctorStarsRate'];
    doctorTitle = json['DoctorTitle'];
    gender = json['Gender'];
    genderDescription = json['GenderDescription'];
    invoiceNo = json['InvoiceNo'];
    invoiceNoVP = json['InvoiceNo_VP'];
    invoiceType = json['InvoiceType'];
    isActiveDoctorProfile = json['IsActiveDoctorProfile'];
    isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
    isDrReviewReq = json['IsDrReviewReq'];
    isExecludeDoctor = json['IsExecludeDoctor'];
    isInOutPatient = json['IsInOutPatient'];
    isInOutPatientDescription = json['IsInOutPatientDescription'];
    isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
    isLiveCareAppointment = json['IsLiveCareAppointment'];
    isRead = json['IsRead'];
    isSendEmail = json['IsSendEmail'];
    nationalityFlagURL = json['NationalityFlagURL'];
    noOfPatientsRate = json['NoOfPatientsRate'];
    orderDate = json['OrderDate'];
    orderNo = json['OrderNo'];
    orderProjectID = json['OrderProjectID'];
    patientID = json['PatientID'];
    projectID = json['ProjectID'];
    projectName = json['ProjectName'];
    projectNameN = json['ProjectNameN'];
    qR = json['QR'];
    setupID = json['SetupID'];
    // speciality = json['Speciality'].cast<String>();
    status = json['Status'];
    statusDesc = json['StatusDesc'];
    strOrderDate = json['StrOrderDate'];
    if (json['TestDetails'] != dynamic) {
      testDetails = <TestDetails>[];
      json['TestDetails'].forEach((v) {
        testDetails!.add(new TestDetails.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ActualDoctorRate'] = this.actualDoctorRate;
    data['AdmissionDate'] = this.admissionDate;
    data['AdmissionNumber'] = this.admissionNumber;
    data['AppointmentDate'] = this.appointmentDate;
    data['AppointmentNo'] = this.appointmentNo;
    data['AppointmentTime'] = this.appointmentTime;
    data['ClinicDescription'] = this.clinicDescription;
    data['ClinicDescriptionEnglish'] = this.clinicDescriptionEnglish;
    data['ClinicDescriptionN'] = this.clinicDescriptionN;
    data['ClinicID'] = this.clinicID;
    data['CreatedOn'] = this.createdOn;
    data['DecimalDoctorRate'] = this.decimalDoctorRate;
    data['DoctorID'] = this.doctorID;
    data['DoctorImageURL'] = this.doctorImageURL;
    data['DoctorName'] = this.doctorName;
    data['DoctorNameEnglish'] = this.doctorNameEnglish;
    data['DoctorNameN'] = this.doctorNameN;
    data['DoctorRate'] = this.doctorRate;
    data['DoctorStarsRate'] = this.doctorStarsRate;
    data['DoctorTitle'] = this.doctorTitle;
    data['Gender'] = this.gender;
    data['GenderDescription'] = this.genderDescription;
    data['InvoiceNo'] = this.invoiceNo;
    data['InvoiceNo_VP'] = this.invoiceNoVP;
    data['InvoiceType'] = this.invoiceType;
    data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
    data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
    data['IsDrReviewReq'] = this.isDrReviewReq;
    data['IsExecludeDoctor'] = this.isExecludeDoctor;
    data['IsInOutPatient'] = this.isInOutPatient;
    data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
    data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
    data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
    data['IsRead'] = this.isRead;
    data['IsSendEmail'] = this.isSendEmail;
    data['NationalityFlagURL'] = this.nationalityFlagURL;
    data['NoOfPatientsRate'] = this.noOfPatientsRate;
    data['OrderDate'] = this.orderDate;
    data['OrderNo'] = this.orderNo;
    data['OrderProjectID'] = this.orderProjectID;
    data['PatientID'] = this.patientID;
    data['ProjectID'] = this.projectID;
    data['ProjectName'] = this.projectName;
    data['ProjectNameN'] = this.projectNameN;
    data['QR'] = this.qR;
    data['SetupID'] = this.setupID;
    // data['Speciality'] = this.speciality;
    data['Status'] = this.status;
    data['StatusDesc'] = this.statusDesc;
    data['StrOrderDate'] = this.strOrderDate;
    if (this.testDetails != dynamic) {
      data['TestDetails'] = this.testDetails!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TestDetails {
  String? description;
  String? testCode;
  String? testID;

  TestDetails({this.description, this.testCode, this.testID});

  TestDetails.fromJson(Map<String, dynamic> json) {
    description = json['Description'];
    testCode = json['TestCode'];
    testID = json['TestID'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['Description'] = this.description;
    data['TestCode'] = this.testCode;
    data['TestID'] = this.testID;
    return data;
  }
}
