class FavoriteDiseaseDetails {
  String? categoryCode;
  int? categoryId;
  String? chapterCode;
  String? codeRange;
  String? createdBy;
  String? diseaseType;
  String? diseases;
  String? diseasesCode;
  int? diseasesId;
  int? favoritesId;
  int? hospitalGroupId;
  int? hospitalId;
  int? icdId;
  String? icdSubVersion;
  String? icdType;
  String? icdVersion;
  bool? isDeleted;
  String? parentDiseasesCode;
  String? problemCode;
  String? problemDescription;
  int? problemMasterId;
  int? problemMasterRevisionId;
  String? problemName;
  String? problemType;
  String? rowVersion;
  String? sectionCode;
  int? specificationId;

  FavoriteDiseaseDetails.fromJson(Map<String, dynamic> json) {
    categoryCode = json['CategoryCode'];
    categoryId = json['CategoryId'];
    chapterCode = json['ChapterCode'];
    codeRange = json['CodeRange'];
    createdBy = json['CreatedBy'];
    diseaseType = json['DiseaseType'];
    diseases = json['Diseases'];
    diseasesCode = json['DiseasesCode'];
    diseasesId = json['DiseasesId'];
    favoritesId = json['FavoritesId'];
    hospitalGroupId = json['HospitalGroupID'];
    hospitalId = json['HospitalID'];
    icdId = json['IcdId'];
    icdSubVersion = json['IcdSubVersion'];
    icdType = json['IcdType'];
    icdVersion = json['IcdVersion'];
    isDeleted = json['IsDeleted'];
    parentDiseasesCode = json['ParentDiseasesCode'];
    problemCode = json['ProblemCode'];
    problemDescription = json['ProblemDescription'];
    problemMasterId = json['ProblemMasterID'];
    problemMasterRevisionId = json['ProblemMasterRevisionID'];
    problemName = json['ProblemName'];
    problemType = json['ProblemType'];
    rowVersion = json['RowVersion'];
    sectionCode = json['SectionCode'];
    specificationId = json['SpecificationId'];
  }

  // toJson method
  Map<String, dynamic> toJson() {
    return {
      'CategoryCode': categoryCode,
      'CategoryId': categoryId,
      'ChapterCode': chapterCode,
      'CodeRange': codeRange,
      'CreatedBy': createdBy,
      'DiseaseType': diseaseType,
      'Diseases': diseases,
      'DiseasesCode': diseasesCode,
      'DiseasesId': diseasesId,
      'FavoritesId': favoritesId,
      'HospitalGroupID': hospitalGroupId,
      'HospitalID': hospitalId,
      'IcdId': icdId,
      'IcdSubVersion': icdSubVersion,
      'IcdType': icdType,
      'IcdVersion': icdVersion,
      'IsDeleted': isDeleted,
      'ParentDiseasesCode': parentDiseasesCode,
      'ProblemCode': problemCode,
      'ProblemDescription': problemDescription,
      'ProblemMasterID': problemMasterId,
      'ProblemMasterRevisionID': problemMasterRevisionId,
      'ProblemName': problemName,
      'ProblemType': problemType,
      'RowVersion': rowVersion,
      'SectionCode': sectionCode,
      'SpecificationId': specificationId,
    };
  }
}