You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
Dart
49 lines
1.5 KiB
Dart
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<String, dynamic> 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<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
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;
|
|
}
|
|
}
|