class Allergy { int patientID; int allergyDiseaseType; int allergyDiseaseID; String description; dynamic descriptionN; dynamic remarks; dynamic avgDoctorRatingList; dynamic doctorRatingDetailsList; dynamic notesDoctorRatingList; Allergy( {this.patientID, this.allergyDiseaseType, this.allergyDiseaseID, this.description, this.descriptionN, this.remarks, this.avgDoctorRatingList, this.doctorRatingDetailsList, this.notesDoctorRatingList}); Allergy.fromJson(Map json) { patientID = json['PatientID']; allergyDiseaseType = json['AllergyDiseaseType']; allergyDiseaseID = json['AllergyDiseaseID']; description = json['Description']; descriptionN = json['DescriptionN']; remarks = json['Remarks']; avgDoctorRatingList = json['AvgDoctorRatingList']; doctorRatingDetailsList = json['DoctorRatingDetailsList']; notesDoctorRatingList = json['NotesDoctorRatingList']; } Map toJson() { final Map data = new Map(); data['PatientID'] = this.patientID; data['AllergyDiseaseType'] = this.allergyDiseaseType; data['AllergyDiseaseID'] = this.allergyDiseaseID; data['Description'] = this.description; data['DescriptionN'] = this.descriptionN; data['Remarks'] = this.remarks; data['AvgDoctorRatingList'] = this.avgDoctorRatingList; data['DoctorRatingDetailsList'] = this.doctorRatingDetailsList; data['NotesDoctorRatingList'] = this.notesDoctorRatingList; return data; } }