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.
72 lines
1.9 KiB
Dart
72 lines
1.9 KiB
Dart
/*
|
|
*@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;
|
|
}
|
|
}
|