first step from models
parent
7af300d455
commit
333d1e3f50
@ -0,0 +1,113 @@
|
|||||||
|
class NewLoginInformationModel {
|
||||||
|
int doctorID;
|
||||||
|
List<ListMemberInformation> listMemberInformation;
|
||||||
|
String logInTokenID;
|
||||||
|
String mobileNumber;
|
||||||
|
Null sELECTDeviceIMEIbyIMEIList;
|
||||||
|
int userID;
|
||||||
|
String zipCode;
|
||||||
|
bool isActiveCode;
|
||||||
|
bool isSMSSent;
|
||||||
|
|
||||||
|
NewLoginInformationModel(
|
||||||
|
{this.doctorID,
|
||||||
|
this.listMemberInformation,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.mobileNumber,
|
||||||
|
this.sELECTDeviceIMEIbyIMEIList,
|
||||||
|
this.userID,
|
||||||
|
this.zipCode,
|
||||||
|
this.isActiveCode,
|
||||||
|
this.isSMSSent});
|
||||||
|
|
||||||
|
NewLoginInformationModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
if (json['List_MemberInformation'] != null) {
|
||||||
|
listMemberInformation = new List<ListMemberInformation>();
|
||||||
|
json['List_MemberInformation'].forEach((v) {
|
||||||
|
listMemberInformation.add(new ListMemberInformation.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
mobileNumber = json['MobileNumber'];
|
||||||
|
sELECTDeviceIMEIbyIMEIList = json['SELECTDeviceIMEIbyIMEI_List'];
|
||||||
|
userID = json['UserID'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
isActiveCode = json['isActiveCode'];
|
||||||
|
isSMSSent = json['isSMSSent'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
if (this.listMemberInformation != null) {
|
||||||
|
data['List_MemberInformation'] =
|
||||||
|
this.listMemberInformation.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
data['MobileNumber'] = this.mobileNumber;
|
||||||
|
data['SELECTDeviceIMEIbyIMEI_List'] = this.sELECTDeviceIMEIbyIMEIList;
|
||||||
|
data['UserID'] = this.userID;
|
||||||
|
data['ZipCode'] = this.zipCode;
|
||||||
|
data['isActiveCode'] = this.isActiveCode;
|
||||||
|
data['isSMSSent'] = this.isSMSSent;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ListMemberInformation {
|
||||||
|
Null setupID;
|
||||||
|
int memberID;
|
||||||
|
String memberName;
|
||||||
|
Null memberNameN;
|
||||||
|
String preferredLang;
|
||||||
|
String pIN;
|
||||||
|
String saltHash;
|
||||||
|
int referenceID;
|
||||||
|
int employeeID;
|
||||||
|
int roleID;
|
||||||
|
int projectid;
|
||||||
|
|
||||||
|
ListMemberInformation(
|
||||||
|
{this.setupID,
|
||||||
|
this.memberID,
|
||||||
|
this.memberName,
|
||||||
|
this.memberNameN,
|
||||||
|
this.preferredLang,
|
||||||
|
this.pIN,
|
||||||
|
this.saltHash,
|
||||||
|
this.referenceID,
|
||||||
|
this.employeeID,
|
||||||
|
this.roleID,
|
||||||
|
this.projectid});
|
||||||
|
|
||||||
|
ListMemberInformation.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
memberID = json['MemberID'];
|
||||||
|
memberName = json['MemberName'];
|
||||||
|
memberNameN = json['MemberNameN'];
|
||||||
|
preferredLang = json['PreferredLang'];
|
||||||
|
pIN = json['PIN'];
|
||||||
|
saltHash = json['SaltHash'];
|
||||||
|
referenceID = json['ReferenceID'];
|
||||||
|
employeeID = json['EmployeeID'];
|
||||||
|
roleID = json['RoleID'];
|
||||||
|
projectid = json['projectid'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['MemberID'] = this.memberID;
|
||||||
|
data['MemberName'] = this.memberName;
|
||||||
|
data['MemberNameN'] = this.memberNameN;
|
||||||
|
data['PreferredLang'] = this.preferredLang;
|
||||||
|
data['PIN'] = this.pIN;
|
||||||
|
data['SaltHash'] = this.saltHash;
|
||||||
|
data['ReferenceID'] = this.referenceID;
|
||||||
|
data['EmployeeID'] = this.employeeID;
|
||||||
|
data['RoleID'] = this.roleID;
|
||||||
|
data['projectid'] = this.projectid;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
class SendActivationCodeForDoctorAppResponseModel {
|
||||||
|
String logInTokenID;
|
||||||
|
String verificationCode;
|
||||||
|
String vidaAuthTokenID;
|
||||||
|
String vidaRefreshTokenID;
|
||||||
|
|
||||||
|
SendActivationCodeForDoctorAppResponseModel(
|
||||||
|
{this.logInTokenID,
|
||||||
|
this.verificationCode,
|
||||||
|
this.vidaAuthTokenID,
|
||||||
|
this.vidaRefreshTokenID});
|
||||||
|
|
||||||
|
SendActivationCodeForDoctorAppResponseModel.fromJson(
|
||||||
|
Map<String, dynamic> json) {
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
verificationCode = json['VerificationCode'];
|
||||||
|
vidaAuthTokenID = json['VidaAuthTokenID'];
|
||||||
|
vidaRefreshTokenID = json['VidaRefreshTokenID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
data['VerificationCode'] = this.verificationCode;
|
||||||
|
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
|
||||||
|
data['VidaRefreshTokenID'] = this.vidaRefreshTokenID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue