Merge branch 'elham' into 'master'
change client to AppClient See merge request Cloud_Solution/doctor_app_flutter!63merge-requests/64/head
commit
e93c764620
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
*@author: Elham Rababah
|
||||||
|
*@Date:17/5/2020
|
||||||
|
*@param:
|
||||||
|
*@return:
|
||||||
|
*@desc: Clinic Model
|
||||||
|
*/
|
||||||
|
class ClinicModel {
|
||||||
|
Null setupID;
|
||||||
|
int projectID;
|
||||||
|
int doctorID;
|
||||||
|
int clinicID;
|
||||||
|
bool isActive;
|
||||||
|
String clinicName;
|
||||||
|
|
||||||
|
ClinicModel(
|
||||||
|
{this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.doctorID,
|
||||||
|
this.clinicID,
|
||||||
|
this.isActive,
|
||||||
|
this.clinicName});
|
||||||
|
|
||||||
|
ClinicModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
isActive = json['IsActive'];
|
||||||
|
clinicName = json['ClinicName'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['IsActive'] = this.isActive;
|
||||||
|
data['ClinicName'] = this.clinicName;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
*@author: Elham Rababah
|
||||||
|
*@Date:17/5/2020
|
||||||
|
*@param:
|
||||||
|
*@return:
|
||||||
|
*@desc: ProfileReqModel
|
||||||
|
*/
|
||||||
|
class ProfileReqModel {
|
||||||
|
int projectID;
|
||||||
|
int clinicID;
|
||||||
|
int doctorID;
|
||||||
|
bool isRegistered;
|
||||||
|
bool license;
|
||||||
|
int languageID;
|
||||||
|
String stamp;
|
||||||
|
String iPAdress;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String tokenID;
|
||||||
|
String sessionID;
|
||||||
|
bool isLoginForDoctorApp;
|
||||||
|
|
||||||
|
ProfileReqModel(
|
||||||
|
{this.projectID,
|
||||||
|
this.clinicID,
|
||||||
|
this.doctorID,
|
||||||
|
this.isRegistered =true,
|
||||||
|
this.license,
|
||||||
|
this.languageID,
|
||||||
|
this.stamp = '2020-04-26T09:32:18.317Z',
|
||||||
|
this.iPAdress='11.11.11.11',
|
||||||
|
this.versionID=1.2,
|
||||||
|
this.channel=9,
|
||||||
|
this.sessionID='E2bsEeYEJo',
|
||||||
|
this.tokenID,
|
||||||
|
this.isLoginForDoctorApp = true});
|
||||||
|
|
||||||
|
ProfileReqModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
doctorID = json['doctorID'];
|
||||||
|
isRegistered = json['IsRegistered'];
|
||||||
|
license = json['License'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
stamp = json['stamp'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['doctorID'] = this.doctorID;
|
||||||
|
data['IsRegistered'] = this.isRegistered;
|
||||||
|
data['License'] = this.license;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['stamp'] = this.stamp;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue