class AllergyModel {
  int allergyDiseaseId;
  String allergyDiseaseName;
  int allergyDiseaseType;
  int appointmentNo;
  int createdBy;
  String createdByName;
  String createdOn;
  int episodeID;
  bool isChecked;
  bool isUpdatedByNurse;
  int severity;
  String severityName;

  AllergyModel(
      {this.allergyDiseaseId,
        this.allergyDiseaseName,
        this.allergyDiseaseType,
        this.appointmentNo,
        this.createdBy,
        this.createdByName,
        this.createdOn,
        this.episodeID,
        this.isChecked,
        this.isUpdatedByNurse,
        this.severity,
        this.severityName});

  AllergyModel.fromJson(Map<String, dynamic> json) {
    allergyDiseaseId = json['allergyDiseaseId'];
    allergyDiseaseName = json['allergyDiseaseName'];
    allergyDiseaseType = json['allergyDiseaseType'];
    appointmentNo = json['appointmentNo'];
    createdBy = json['createdBy'];
    createdByName = json['createdByName'];
    createdOn = json['createdOn'];
    episodeID = json['episodeID'];
    isChecked = json['isChecked'];
    isUpdatedByNurse = json['isUpdatedByNurse'];
    severity = json['severity'];
    severityName = json['severityName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['allergyDiseaseId'] = this.allergyDiseaseId;
    data['allergyDiseaseName'] = this.allergyDiseaseName;
    data['allergyDiseaseType'] = this.allergyDiseaseType;
    data['appointmentNo'] = this.appointmentNo;
    data['createdBy'] = this.createdBy;
    data['createdByName'] = this.createdByName;
    data['createdOn'] = this.createdOn;
    data['episodeID'] = this.episodeID;
    data['isChecked'] = this.isChecked;
    data['isUpdatedByNurse'] = this.isUpdatedByNurse;
    data['severity'] = this.severity;
    data['severityName'] = this.severityName;
    return data;
  }
}
