class GetDiagnosisForInPatientResponseModel {
  String? iCDCode10ID;
  int? diagnosisTypeID;
  int? conditionID;
  bool? complexDiagnosis;
  String? asciiDesc;
  int? createdBy;
  String? createdOn;
  int? editedBy;
  String? editedOn;
  String? createdByName;
  String? editedByName;

  GetDiagnosisForInPatientResponseModel(
      {this.iCDCode10ID,
      this.diagnosisTypeID,
      this.conditionID,
      this.complexDiagnosis,
      this.asciiDesc,
      this.createdBy,
      this.createdOn,
      this.editedBy,
      this.editedOn,
      this.createdByName});

  GetDiagnosisForInPatientResponseModel.fromJson(Map<String, dynamic> json) {
    iCDCode10ID = json['ICDCode10ID'];
    diagnosisTypeID = json['DiagnosisTypeID'];
    conditionID = json['ConditionID'];
    complexDiagnosis = json['ComplexDiagnosis'];
    asciiDesc = json['Ascii_Desc'];
    createdBy = json['CreatedBy'];
    createdOn = json['CreatedOn'];
    editedBy = json['EditedBy'];
    editedOn = json['EditedOn'];
    createdByName = json['CreatedByName'];
    editedByName = json['EditedByName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ICDCode10ID'] = this.iCDCode10ID;
    data['DiagnosisTypeID'] = this.diagnosisTypeID;
    data['ConditionID'] = this.conditionID;
    data['ComplexDiagnosis'] = this.complexDiagnosis;
    data['Ascii_Desc'] = this.asciiDesc;
    data['CreatedBy'] = this.createdBy;
    data['CreatedOn'] = this.createdOn;
    data['EditedBy'] = this.editedBy;
    data['EditedOn'] = this.editedOn;
    return data;
  }
   /*
   *
   * String? iCDCode10ID;
  int? diagnosisTypeID;
  int? conditionID;
  bool? complexDiagnosis;
  String? asciiDesc;
  int? createdBy;
  String? createdOn;
  int? editedBy;
  String? editedOn;
  String? createdByName;
  String? editedByName;
*/

   GetDiagnosisForInPatientResponseModel.fromJsonForVidaPlus(json) {
    iCDCode10ID = json['selectedIcdCode'];
    diagnosisTypeID = json['DiagnosisTypeID'];
    conditionID = json['ConditionID'];
    complexDiagnosis = json['ComplexDiagnosis'];
    asciiDesc = json['selectedDisease'];
    createdBy = json['CreatedBy'];
    createdOn = json['createdOn'];
    editedBy = json['EditedBy'];
    editedOn = json['EditedOn'];
    createdByName =json['createdByName'] == null ?  json['createdBy'] : json['createdByName'] ;
    editedByName = json['EditedByName'];
  }
}
