first step from refactor soap
parent
e935014776
commit
1ca7b28590
@ -1,60 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -1,20 +1,3 @@
|
||||
// final List<Countries> countries = [
|
||||
// new Countries(
|
||||
// name: "Saudi Arabia", name_ar: "المملكة العربية السعودية", code: '966'),
|
||||
// new Countries(
|
||||
// name: "United Arab Emirates",
|
||||
// name_ar: "الإمارات العربية المتحدة",
|
||||
// code: '971'),
|
||||
// ];
|
||||
|
||||
// class Countries {
|
||||
// final String name;
|
||||
// final String name_ar;
|
||||
// final String code;
|
||||
|
||||
// Countries({this.name, this.name_ar, this.code});
|
||||
// }
|
||||
|
||||
class Countries {
|
||||
String name;
|
||||
String nameAr;
|
||||
@ -1,64 +0,0 @@
|
||||
class RequestPatientLabOrders {
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
String sessionID;
|
||||
bool isDentalAllowedBackend;
|
||||
int deviceTypeID;
|
||||
int patientID;
|
||||
String tokenID;
|
||||
int patientTypeID;
|
||||
int patientType;
|
||||
|
||||
RequestPatientLabOrders(
|
||||
{this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.sessionID,
|
||||
this.isDentalAllowedBackend,
|
||||
this.deviceTypeID,
|
||||
this.patientID,
|
||||
this.tokenID,
|
||||
this.patientTypeID,
|
||||
this.patientType});
|
||||
|
||||
RequestPatientLabOrders.fromJson(Map<String, dynamic> json) {
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
sessionID = json['SessionID'];
|
||||
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
patientID = json['PatientID'];
|
||||
tokenID = json['TokenID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
patientType = json['PatientType'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['PatientType'] = this.patientType;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue