class MedicalReportModel {
  String? reportData;
  String? setupID;
  int? projectID;
  String? projectName;
  String? projectNameN;
  int? patientID;
  String? invoiceNo;
  int? status;
  String? verifiedOn;
  dynamic verifiedBy;
  String? editedOn;
  int? editedBy;
  int? lineItemNo;
  String? createdOn;
  int? templateID;
  int? doctorID;
  int? doctorGender;
  String? doctorGenderDescription;
  String? doctorGenderDescriptionN;
  String? doctorImageURL;
  String? doctorName;
  String? doctorNameN;
  int? clinicID;
  String? clinicName;
  String? clinicNameN;
  String? reportDataHtml;
  int? summaryId;

  MedicalReportModel(
      {this.reportData,
      this.setupID,
      this.projectID,
      this.projectName,
      this.projectNameN,
      this.patientID,
      this.invoiceNo,
      this.status,
      this.verifiedOn,
      this.verifiedBy,
      this.editedOn,
      this.editedBy,
      this.lineItemNo,
      this.createdOn,
      this.templateID,
      this.doctorID,
      this.doctorGender,
      this.doctorGenderDescription,
      this.doctorGenderDescriptionN,
      this.doctorImageURL,
      this.doctorName,
      this.doctorNameN,
      this.clinicID,
      this.clinicName,
      this.clinicNameN,
      this.reportDataHtml});

  MedicalReportModel.fromJson(Map<String, dynamic> json) {
    reportData = json['ReportData'];
    setupID = json['SetupID'];
    projectID = json['ProjectID'];
    projectName = json['ProjectName'];
    projectNameN = json['ProjectNameN'];
    patientID = json['PatientID'];
    invoiceNo = json['InvoiceNo'];
    status = json['Status'];
    verifiedOn = json['VerifiedOn'];
    verifiedBy = json['VerifiedBy'];
    editedOn = json['EditedOn'];
    editedBy = json['EditedBy'];
    lineItemNo = json['LineItemNo'];
    createdOn = json['CreatedOn'];
    templateID = json['TemplateID'];
    doctorID = json['DoctorID'];
    doctorGender = json['DoctorGender'];
    doctorGenderDescription = json['DoctorGenderDescription'];
    doctorGenderDescriptionN = json['DoctorGenderDescriptionN'];
    doctorImageURL = json['DoctorImageURL'];
    doctorName = json['DoctorName'];
    doctorNameN = json['DoctorNameN'];
    clinicID = json['ClinicID'];
    clinicName = json['ClinicName'];
    clinicNameN = json['ClinicNameN'];
    reportDataHtml = json['ReportDataHtml'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ReportData'] = this.reportData;
    data['SetupID'] = this.setupID;
    data['ProjectID'] = this.projectID;
    data['ProjectName'] = this.projectName;
    data['ProjectNameN'] = this.projectNameN;
    data['PatientID'] = this.patientID;
    data['InvoiceNo'] = this.invoiceNo;
    data['Status'] = this.status;
    data['VerifiedOn'] = this.verifiedOn;
    data['VerifiedBy'] = this.verifiedBy;
    data['EditedOn'] = this.editedOn;
    data['EditedBy'] = this.editedBy;
    data['LineItemNo'] = this.lineItemNo;
    data['CreatedOn'] = this.createdOn;
    data['TemplateID'] = this.templateID;
    data['DoctorID'] = this.doctorID;
    data['DoctorGender'] = this.doctorGender;
    data['DoctorGenderDescription'] = this.doctorGenderDescription;
    data['DoctorGenderDescriptionN'] = this.doctorGenderDescriptionN;
    data['DoctorImageURL'] = this.doctorImageURL;
    data['DoctorName'] = this.doctorName;
    data['DoctorNameN'] = this.doctorNameN;
    data['ClinicID'] = this.clinicID;
    data['ClinicName'] = this.clinicName;
    data['ClinicNameN'] = this.clinicNameN;
    data['ReportDataHtml'] = this.reportDataHtml;
    return data;
  }

  ///handling this to change the status of vida 4 to make it as vida 3 so ui does not handle these things
  ///https://cloudsolutions-sa.atlassian.net/browse/V4-38664?focusedCommentId=469446
   MedicalReportModel.fromJsonForVidaPlus(Map<String, dynamic> json) {
    if(json['Status'] == 1){
      json['Status'] = 0;
    }else{
      json['Status'] = 1;
    }
    reportData = json['ReportData'];
    setupID = json['SetupID'];
    projectID = json['ProjectID'];
    projectName = json['ProjectName'];
    projectNameN = json['ProjectNameN'];
    patientID = json['PatientID'];
    invoiceNo = json['InvoiceNo']??"0";
    status = json['Status'];
    verifiedOn = json['VerifiedOn'];
    verifiedBy = json['VerifiedBy'];
    editedOn = json['EditedOn'];
    editedBy = json['EditedBy'];
    lineItemNo = json['LineItemNo']??0;
    createdOn = json['CreatedOn'];
    templateID = json['TemplateID'];
    doctorID = json['DoctorID'];
    doctorGender = json['DoctorGender'];
    doctorGenderDescription = json['DoctorGenderDescription'];
    doctorGenderDescriptionN = json['DoctorGenderDescriptionN'];
    doctorImageURL = json['DoctorImageURL'];
    doctorName = json['DoctorName'];
    doctorNameN = json['DoctorNameN'];
    clinicID = json['ClinicID'];
    clinicName = json['ClinicName'];
    clinicNameN = json['ClinicNameN'];
    reportDataHtml = json['ReportDataHtml'];
    summaryId = json['summaryID'];
   }
}
