login page changes
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Flutter",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "dart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -1,6 +1,11 @@
|
|||||||
package com.cloud.diplomaticquarterapp
|
package com.cloud.diplomaticquarterapp
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import io.flutter.embedding.android.FlutterFragmentActivity
|
||||||
|
import io.flutter.embedding.engine.FlutterEngine
|
||||||
|
import io.flutter.plugins.GeneratedPluginRegistrant
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
class MainActivity: FlutterFragmentActivity() {
|
||||||
|
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
|
||||||
class MainActivity: FlutterActivity() {
|
GeneratedPluginRegistrant.registerWith(flutterEngine);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
@ -0,0 +1,96 @@
|
|||||||
|
class GetMobileLoginInfoRequest {
|
||||||
|
int patientMobileNumber;
|
||||||
|
String mobileNo;
|
||||||
|
String deviceToken;
|
||||||
|
int projectOutSA;
|
||||||
|
int loginType;
|
||||||
|
String zipCode;
|
||||||
|
bool isRegister;
|
||||||
|
String logInTokenID;
|
||||||
|
int searchType;
|
||||||
|
int patientID;
|
||||||
|
String nationalID;
|
||||||
|
String patientIdentificationID;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
int languageID;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
Null sessionID;
|
||||||
|
bool isDentalAllowedBackend;
|
||||||
|
int deviceTypeID;
|
||||||
|
|
||||||
|
GetMobileLoginInfoRequest(
|
||||||
|
{this.patientMobileNumber,
|
||||||
|
this.mobileNo,
|
||||||
|
this.deviceToken,
|
||||||
|
this.projectOutSA,
|
||||||
|
this.loginType,
|
||||||
|
this.zipCode,
|
||||||
|
this.isRegister,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.searchType,
|
||||||
|
this.patientID,
|
||||||
|
this.nationalID,
|
||||||
|
this.patientIdentificationID,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID});
|
||||||
|
|
||||||
|
GetMobileLoginInfoRequest.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientMobileNumber = json['PatientMobileNumber'];
|
||||||
|
mobileNo = json['MobileNo'];
|
||||||
|
deviceToken = json['DeviceToken'];
|
||||||
|
projectOutSA = json['ProjectOutSA'];
|
||||||
|
loginType = json['LoginType'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
isRegister = json['isRegister'];
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
searchType = json['SearchType'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
nationalID = json['NationalID'];
|
||||||
|
patientIdentificationID = json['PatientIdentificationID'];
|
||||||
|
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'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['PatientMobileNumber'] = this.patientMobileNumber;
|
||||||
|
data['MobileNo'] = this.mobileNo;
|
||||||
|
data['DeviceToken'] = this.deviceToken;
|
||||||
|
data['ProjectOutSA'] = this.projectOutSA;
|
||||||
|
data['LoginType'] = this.loginType;
|
||||||
|
data['ZipCode'] = this.zipCode;
|
||||||
|
data['isRegister'] = this.isRegister;
|
||||||
|
data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
data['SearchType'] = this.searchType;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['NationalID'] = this.nationalID;
|
||||||
|
data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||||
|
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;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,292 @@
|
|||||||
|
class GetMobileLoginInfoResponse {
|
||||||
|
Null date;
|
||||||
|
int languageID;
|
||||||
|
int serviceName;
|
||||||
|
Null time;
|
||||||
|
Null androidLink;
|
||||||
|
Null authenticationTokenID;
|
||||||
|
Null data;
|
||||||
|
bool dataw;
|
||||||
|
int dietType;
|
||||||
|
Null errorCode;
|
||||||
|
Null errorEndUserMessage;
|
||||||
|
Null errorEndUserMessageN;
|
||||||
|
Null errorMessage;
|
||||||
|
int errorType;
|
||||||
|
int foodCategory;
|
||||||
|
Null iOSLink;
|
||||||
|
bool isAuthenticated;
|
||||||
|
int mealOrderStatus;
|
||||||
|
int mealType;
|
||||||
|
int messageStatus;
|
||||||
|
int numberOfResultRecords;
|
||||||
|
Null patientBlodType;
|
||||||
|
Null successMsg;
|
||||||
|
Null successMsgN;
|
||||||
|
Null doctorInformationList;
|
||||||
|
Null getAllPendingRecordsList;
|
||||||
|
Null getAllSharedRecordsByStatusList;
|
||||||
|
Null getResponseFileList;
|
||||||
|
bool isHMGPatient;
|
||||||
|
bool isLoginSuccessfully;
|
||||||
|
bool isNeedUpdateIdintificationNo;
|
||||||
|
bool kioskSendSMS;
|
||||||
|
Null list;
|
||||||
|
Null listAskHabibMobileLoginInfo;
|
||||||
|
Null listAskHabibPatientFile;
|
||||||
|
Null listMergeFiles;
|
||||||
|
List<ListMobileLoginInfo> listMobileLoginInfo;
|
||||||
|
Null listPatientCount;
|
||||||
|
String logInTokenID;
|
||||||
|
Null mohemmPrivilegeList;
|
||||||
|
int pateintID;
|
||||||
|
Null patientBloodType;
|
||||||
|
bool patientHasFile;
|
||||||
|
Null patientMergedIDs;
|
||||||
|
bool patientOutSA;
|
||||||
|
int patientShareRequestID;
|
||||||
|
int patientType;
|
||||||
|
int projectIDOut;
|
||||||
|
Null returnMessage;
|
||||||
|
bool sMSLoginRequired;
|
||||||
|
Null servicePrivilegeList;
|
||||||
|
Null sharePatientName;
|
||||||
|
Null verificationCode;
|
||||||
|
Null email;
|
||||||
|
Null errorList;
|
||||||
|
bool hasFile;
|
||||||
|
bool isActiveCode;
|
||||||
|
bool isMerged;
|
||||||
|
bool isNeedUserAgreement;
|
||||||
|
bool isSMSSent;
|
||||||
|
Null memberList;
|
||||||
|
Null message;
|
||||||
|
int statusCode;
|
||||||
|
|
||||||
|
GetMobileLoginInfoResponse(
|
||||||
|
{this.date,
|
||||||
|
this.languageID,
|
||||||
|
this.serviceName,
|
||||||
|
this.time,
|
||||||
|
this.androidLink,
|
||||||
|
this.authenticationTokenID,
|
||||||
|
this.data,
|
||||||
|
this.dataw,
|
||||||
|
this.dietType,
|
||||||
|
this.errorCode,
|
||||||
|
this.errorEndUserMessage,
|
||||||
|
this.errorEndUserMessageN,
|
||||||
|
this.errorMessage,
|
||||||
|
this.errorType,
|
||||||
|
this.foodCategory,
|
||||||
|
this.iOSLink,
|
||||||
|
this.isAuthenticated,
|
||||||
|
this.mealOrderStatus,
|
||||||
|
this.mealType,
|
||||||
|
this.messageStatus,
|
||||||
|
this.numberOfResultRecords,
|
||||||
|
this.patientBlodType,
|
||||||
|
this.successMsg,
|
||||||
|
this.successMsgN,
|
||||||
|
this.doctorInformationList,
|
||||||
|
this.getAllPendingRecordsList,
|
||||||
|
this.getAllSharedRecordsByStatusList,
|
||||||
|
this.getResponseFileList,
|
||||||
|
this.isHMGPatient,
|
||||||
|
this.isLoginSuccessfully,
|
||||||
|
this.isNeedUpdateIdintificationNo,
|
||||||
|
this.kioskSendSMS,
|
||||||
|
this.list,
|
||||||
|
this.listAskHabibMobileLoginInfo,
|
||||||
|
this.listAskHabibPatientFile,
|
||||||
|
this.listMergeFiles,
|
||||||
|
this.listMobileLoginInfo,
|
||||||
|
this.listPatientCount,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.mohemmPrivilegeList,
|
||||||
|
this.pateintID,
|
||||||
|
this.patientBloodType,
|
||||||
|
this.patientHasFile,
|
||||||
|
this.patientMergedIDs,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.patientShareRequestID,
|
||||||
|
this.patientType,
|
||||||
|
this.projectIDOut,
|
||||||
|
this.returnMessage,
|
||||||
|
this.sMSLoginRequired,
|
||||||
|
this.servicePrivilegeList,
|
||||||
|
this.sharePatientName,
|
||||||
|
this.verificationCode,
|
||||||
|
this.email,
|
||||||
|
this.errorList,
|
||||||
|
this.hasFile,
|
||||||
|
this.isActiveCode,
|
||||||
|
this.isMerged,
|
||||||
|
this.isNeedUserAgreement,
|
||||||
|
this.isSMSSent,
|
||||||
|
this.memberList,
|
||||||
|
this.message,
|
||||||
|
this.statusCode});
|
||||||
|
|
||||||
|
GetMobileLoginInfoResponse.fromJson(Map<String, dynamic> json) {
|
||||||
|
date = json['Date'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
serviceName = json['ServiceName'];
|
||||||
|
time = json['Time'];
|
||||||
|
androidLink = json['AndroidLink'];
|
||||||
|
authenticationTokenID = json['AuthenticationTokenID'];
|
||||||
|
data = json['Data'];
|
||||||
|
dataw = json['Dataw'];
|
||||||
|
dietType = json['DietType'];
|
||||||
|
errorCode = json['ErrorCode'];
|
||||||
|
errorEndUserMessage = json['ErrorEndUserMessage'];
|
||||||
|
errorEndUserMessageN = json['ErrorEndUserMessageN'];
|
||||||
|
errorMessage = json['ErrorMessage'];
|
||||||
|
errorType = json['ErrorType'];
|
||||||
|
foodCategory = json['FoodCategory'];
|
||||||
|
iOSLink = json['IOSLink'];
|
||||||
|
isAuthenticated = json['IsAuthenticated'];
|
||||||
|
mealOrderStatus = json['MealOrderStatus'];
|
||||||
|
mealType = json['MealType'];
|
||||||
|
messageStatus = json['MessageStatus'];
|
||||||
|
numberOfResultRecords = json['NumberOfResultRecords'];
|
||||||
|
patientBlodType = json['PatientBlodType'];
|
||||||
|
successMsg = json['SuccessMsg'];
|
||||||
|
successMsgN = json['SuccessMsgN'];
|
||||||
|
doctorInformationList = json['DoctorInformation_List'];
|
||||||
|
getAllPendingRecordsList = json['GetAllPendingRecordsList'];
|
||||||
|
getAllSharedRecordsByStatusList = json['GetAllSharedRecordsByStatusList'];
|
||||||
|
getResponseFileList = json['GetResponseFileList'];
|
||||||
|
isHMGPatient = json['IsHMGPatient'];
|
||||||
|
isLoginSuccessfully = json['IsLoginSuccessfully'];
|
||||||
|
isNeedUpdateIdintificationNo = json['IsNeedUpdateIdintificationNo'];
|
||||||
|
kioskSendSMS = json['KioskSendSMS'];
|
||||||
|
list = json['List'];
|
||||||
|
listAskHabibMobileLoginInfo = json['List_AskHabibMobileLoginInfo'];
|
||||||
|
listAskHabibPatientFile = json['List_AskHabibPatientFile'];
|
||||||
|
listMergeFiles = json['List_MergeFiles'];
|
||||||
|
if (json['List_MobileLoginInfo'] != null) {
|
||||||
|
listMobileLoginInfo = new List<ListMobileLoginInfo>();
|
||||||
|
json['List_MobileLoginInfo'].forEach((v) {
|
||||||
|
listMobileLoginInfo.add(new ListMobileLoginInfo.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
listPatientCount = json['List_PatientCount'];
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
mohemmPrivilegeList = json['MohemmPrivilege_List'];
|
||||||
|
pateintID = json['PateintID'];
|
||||||
|
patientBloodType = json['PatientBloodType'];
|
||||||
|
patientHasFile = json['PatientHasFile'];
|
||||||
|
patientMergedIDs = json['PatientMergedIDs'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
patientShareRequestID = json['PatientShareRequestID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
projectIDOut = json['ProjectIDOut'];
|
||||||
|
returnMessage = json['ReturnMessage'];
|
||||||
|
sMSLoginRequired = json['SMSLoginRequired'];
|
||||||
|
servicePrivilegeList = json['ServicePrivilege_List'];
|
||||||
|
sharePatientName = json['SharePatientName'];
|
||||||
|
verificationCode = json['VerificationCode'];
|
||||||
|
email = json['email'];
|
||||||
|
errorList = json['errorList'];
|
||||||
|
hasFile = json['hasFile'];
|
||||||
|
isActiveCode = json['isActiveCode'];
|
||||||
|
isMerged = json['isMerged'];
|
||||||
|
isNeedUserAgreement = json['isNeedUserAgreement'];
|
||||||
|
isSMSSent = json['isSMSSent'];
|
||||||
|
memberList = json['memberList'];
|
||||||
|
message = json['message'];
|
||||||
|
statusCode = json['statusCode'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['Date'] = this.date;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['ServiceName'] = this.serviceName;
|
||||||
|
data['Time'] = this.time;
|
||||||
|
data['AndroidLink'] = this.androidLink;
|
||||||
|
data['AuthenticationTokenID'] = this.authenticationTokenID;
|
||||||
|
data['Data'] = this.data;
|
||||||
|
data['Dataw'] = this.dataw;
|
||||||
|
data['DietType'] = this.dietType;
|
||||||
|
data['ErrorCode'] = this.errorCode;
|
||||||
|
data['ErrorEndUserMessage'] = this.errorEndUserMessage;
|
||||||
|
data['ErrorEndUserMessageN'] = this.errorEndUserMessageN;
|
||||||
|
data['ErrorMessage'] = this.errorMessage;
|
||||||
|
data['ErrorType'] = this.errorType;
|
||||||
|
data['FoodCategory'] = this.foodCategory;
|
||||||
|
data['IOSLink'] = this.iOSLink;
|
||||||
|
data['IsAuthenticated'] = this.isAuthenticated;
|
||||||
|
data['MealOrderStatus'] = this.mealOrderStatus;
|
||||||
|
data['MealType'] = this.mealType;
|
||||||
|
data['MessageStatus'] = this.messageStatus;
|
||||||
|
data['NumberOfResultRecords'] = this.numberOfResultRecords;
|
||||||
|
data['PatientBlodType'] = this.patientBlodType;
|
||||||
|
data['SuccessMsg'] = this.successMsg;
|
||||||
|
data['SuccessMsgN'] = this.successMsgN;
|
||||||
|
data['DoctorInformation_List'] = this.doctorInformationList;
|
||||||
|
data['GetAllPendingRecordsList'] = this.getAllPendingRecordsList;
|
||||||
|
data['GetAllSharedRecordsByStatusList'] =
|
||||||
|
this.getAllSharedRecordsByStatusList;
|
||||||
|
data['GetResponseFileList'] = this.getResponseFileList;
|
||||||
|
data['IsHMGPatient'] = this.isHMGPatient;
|
||||||
|
data['IsLoginSuccessfully'] = this.isLoginSuccessfully;
|
||||||
|
data['IsNeedUpdateIdintificationNo'] = this.isNeedUpdateIdintificationNo;
|
||||||
|
data['KioskSendSMS'] = this.kioskSendSMS;
|
||||||
|
data['List'] = this.list;
|
||||||
|
data['List_AskHabibMobileLoginInfo'] = this.listAskHabibMobileLoginInfo;
|
||||||
|
data['List_AskHabibPatientFile'] = this.listAskHabibPatientFile;
|
||||||
|
data['List_MergeFiles'] = this.listMergeFiles;
|
||||||
|
if (this.listMobileLoginInfo != null) {
|
||||||
|
data['List_MobileLoginInfo'] =
|
||||||
|
this.listMobileLoginInfo.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
data['List_PatientCount'] = this.listPatientCount;
|
||||||
|
data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
data['MohemmPrivilege_List'] = this.mohemmPrivilegeList;
|
||||||
|
data['PateintID'] = this.pateintID;
|
||||||
|
data['PatientBloodType'] = this.patientBloodType;
|
||||||
|
data['PatientHasFile'] = this.patientHasFile;
|
||||||
|
data['PatientMergedIDs'] = this.patientMergedIDs;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['PatientShareRequestID'] = this.patientShareRequestID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['ProjectIDOut'] = this.projectIDOut;
|
||||||
|
data['ReturnMessage'] = this.returnMessage;
|
||||||
|
data['SMSLoginRequired'] = this.sMSLoginRequired;
|
||||||
|
data['ServicePrivilege_List'] = this.servicePrivilegeList;
|
||||||
|
data['SharePatientName'] = this.sharePatientName;
|
||||||
|
data['VerificationCode'] = this.verificationCode;
|
||||||
|
data['email'] = this.email;
|
||||||
|
data['errorList'] = this.errorList;
|
||||||
|
data['hasFile'] = this.hasFile;
|
||||||
|
data['isActiveCode'] = this.isActiveCode;
|
||||||
|
data['isMerged'] = this.isMerged;
|
||||||
|
data['isNeedUserAgreement'] = this.isNeedUserAgreement;
|
||||||
|
data['isSMSSent'] = this.isSMSSent;
|
||||||
|
data['memberList'] = this.memberList;
|
||||||
|
data['message'] = this.message;
|
||||||
|
data['statusCode'] = this.statusCode;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ListMobileLoginInfo {
|
||||||
|
int iD;
|
||||||
|
int loginType;
|
||||||
|
|
||||||
|
ListMobileLoginInfo({this.iD, this.loginType});
|
||||||
|
|
||||||
|
ListMobileLoginInfo.fromJson(Map<String, dynamic> json) {
|
||||||
|
iD = json['ID'];
|
||||||
|
loginType = json['LoginType'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ID'] = this.iD;
|
||||||
|
data['LoginType'] = this.loginType;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
class SendActivationRequest {
|
||||||
|
int patientMobileNumber;
|
||||||
|
String mobileNo;
|
||||||
|
String deviceToken;
|
||||||
|
int projectOutSA;
|
||||||
|
int loginType;
|
||||||
|
String zipCode;
|
||||||
|
bool isRegister;
|
||||||
|
String logInTokenID;
|
||||||
|
int searchType;
|
||||||
|
int patientID;
|
||||||
|
String nationalID;
|
||||||
|
String patientIdentificationID;
|
||||||
|
int oTPSendType;
|
||||||
|
int languageID;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
Null sessionID;
|
||||||
|
bool isDentalAllowedBackend;
|
||||||
|
int deviceTypeID;
|
||||||
|
|
||||||
|
SendActivationRequest(
|
||||||
|
{this.patientMobileNumber,
|
||||||
|
this.mobileNo,
|
||||||
|
this.deviceToken,
|
||||||
|
this.projectOutSA,
|
||||||
|
this.loginType,
|
||||||
|
this.zipCode,
|
||||||
|
this.isRegister,
|
||||||
|
this.logInTokenID,
|
||||||
|
this.searchType,
|
||||||
|
this.patientID,
|
||||||
|
this.nationalID,
|
||||||
|
this.patientIdentificationID,
|
||||||
|
this.oTPSendType,
|
||||||
|
this.languageID,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.sessionID,
|
||||||
|
this.isDentalAllowedBackend,
|
||||||
|
this.deviceTypeID});
|
||||||
|
|
||||||
|
SendActivationRequest.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientMobileNumber = json['PatientMobileNumber'];
|
||||||
|
mobileNo = json['MobileNo'];
|
||||||
|
deviceToken = json['DeviceToken'];
|
||||||
|
projectOutSA = json['ProjectOutSA'];
|
||||||
|
loginType = json['LoginType'];
|
||||||
|
zipCode = json['ZipCode'];
|
||||||
|
isRegister = json['isRegister'];
|
||||||
|
logInTokenID = json['LogInTokenID'];
|
||||||
|
searchType = json['SearchType'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
nationalID = json['NationalID'];
|
||||||
|
patientIdentificationID = json['PatientIdentificationID'];
|
||||||
|
oTPSendType = json['OTP_SendType'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isDentalAllowedBackend = json['isDentalAllowedBackend'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['PatientMobileNumber'] = this.patientMobileNumber;
|
||||||
|
data['MobileNo'] = this.mobileNo;
|
||||||
|
data['DeviceToken'] = this.deviceToken;
|
||||||
|
data['ProjectOutSA'] = this.projectOutSA;
|
||||||
|
data['LoginType'] = this.loginType;
|
||||||
|
data['ZipCode'] = this.zipCode;
|
||||||
|
data['isRegister'] = this.isRegister;
|
||||||
|
data['LogInTokenID'] = this.logInTokenID;
|
||||||
|
data['SearchType'] = this.searchType;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['NationalID'] = this.nationalID;
|
||||||
|
data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||||
|
data['OTP_SendType'] = this.oTPSendType;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['generalid'] = this.generalid;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['isDentalAllowedBackend'] = this.isDentalAllowedBackend;
|
||||||
|
data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class DefaultButton extends StatelessWidget {
|
||||||
|
final String text;
|
||||||
|
final Function onPress;
|
||||||
|
final Color textColor;
|
||||||
|
final Color color;
|
||||||
|
DefaultButton(this.text, this.onPress, {this.color, this.textColor});
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container(
|
||||||
|
height: 60,
|
||||||
|
child: RaisedButton(
|
||||||
|
shape:
|
||||||
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
||||||
|
color: color != null ? color : Colors.grey[700],
|
||||||
|
textColor: color != null ? textColor : Colors.white,
|
||||||
|
child: Text(
|
||||||
|
this.text,
|
||||||
|
style: TextStyle(fontSize: SizeConfig.textMultiplier * 2),
|
||||||
|
),
|
||||||
|
onPressed: () => this.onPress()));
|
||||||
|
}
|
||||||
|
}
|
||||||