LogIn function refactoring
parent
acaaca314e
commit
d3bb85129c
@ -1,20 +1,60 @@
|
||||
class UserModel {
|
||||
String UserID;
|
||||
String Password;
|
||||
int ProjectID;
|
||||
int LanguageID;
|
||||
String IPAdress;
|
||||
double VersionID;
|
||||
int Channel;
|
||||
String SessionID;
|
||||
String userID;
|
||||
String password;
|
||||
int projectID;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String sessionID;
|
||||
String tokenID;
|
||||
String stamp;
|
||||
bool isLoginForDoctorApp;
|
||||
int patientOutSA;
|
||||
|
||||
UserModel(
|
||||
{this.UserID,
|
||||
this.Password,
|
||||
this.ProjectID,
|
||||
this.LanguageID,
|
||||
this.IPAdress,
|
||||
this.VersionID,
|
||||
this.Channel,
|
||||
this.SessionID});
|
||||
{this.userID,
|
||||
this.password,
|
||||
this.projectID,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.sessionID,
|
||||
this.tokenID,
|
||||
this.stamp,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA});
|
||||
|
||||
UserModel.fromJson(Map<String, dynamic> json) {
|
||||
userID = json['UserID'];
|
||||
password = json['Password'];
|
||||
projectID = json['ProjectID'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
sessionID = json['SessionID'];
|
||||
tokenID = json['TokenID'];
|
||||
stamp = json['stamp'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['UserID'] = this.userID;
|
||||
data['Password'] = this.password;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['stamp'] = this.stamp;
|
||||
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue