|
|
|
@ -1,20 +1,128 @@
|
|
|
|
|
|
|
|
// import 'dart:convert';
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// class RegistrationDataModelPayload {
|
|
|
|
|
|
|
|
// int? patientMobileNumber;
|
|
|
|
|
|
|
|
// String? zipCode;
|
|
|
|
|
|
|
|
// int? searchType;
|
|
|
|
|
|
|
|
// int? patientId;
|
|
|
|
|
|
|
|
// int? patientIdentificationId;
|
|
|
|
|
|
|
|
// int? otpSendType;
|
|
|
|
|
|
|
|
// int? patientOutSa;
|
|
|
|
|
|
|
|
// bool? isDentalAllowedBackend;
|
|
|
|
|
|
|
|
// String? dob;
|
|
|
|
|
|
|
|
// int? isHijri;
|
|
|
|
|
|
|
|
// bool? forRegister;
|
|
|
|
|
|
|
|
// bool? isRegister;
|
|
|
|
|
|
|
|
// String? healthId;
|
|
|
|
|
|
|
|
// String? emailAddress;
|
|
|
|
|
|
|
|
// String? nationalityCode;
|
|
|
|
|
|
|
|
// GenderTypeEnum? gender;
|
|
|
|
|
|
|
|
// MaritalStatusTypeEnum? maritalStatus;
|
|
|
|
|
|
|
|
// String? fullName;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// RegistrationDataModelPayload({
|
|
|
|
|
|
|
|
// this.patientMobileNumber,
|
|
|
|
|
|
|
|
// this.zipCode,
|
|
|
|
|
|
|
|
// this.searchType,
|
|
|
|
|
|
|
|
// this.patientId,
|
|
|
|
|
|
|
|
// this.patientIdentificationId,
|
|
|
|
|
|
|
|
// this.otpSendType,
|
|
|
|
|
|
|
|
// this.patientOutSa,
|
|
|
|
|
|
|
|
// this.isDentalAllowedBackend,
|
|
|
|
|
|
|
|
// this.dob,
|
|
|
|
|
|
|
|
// this.isHijri,
|
|
|
|
|
|
|
|
// this.forRegister,
|
|
|
|
|
|
|
|
// this.isRegister,
|
|
|
|
|
|
|
|
// this.healthId,
|
|
|
|
|
|
|
|
// this.emailAddress,
|
|
|
|
|
|
|
|
// this.nationalityCode,
|
|
|
|
|
|
|
|
// this.gender,
|
|
|
|
|
|
|
|
// this.maritalStatus,
|
|
|
|
|
|
|
|
// this.fullName,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// factory RegistrationDataModelPayload.fromRawJson(String str) => RegistrationDataModelPayload.fromJson(json.decode(str));
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// String toRawJson() => json.encode(toJson());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// factory RegistrationDataModelPayload.fromJson(Map<String, dynamic> json) => RegistrationDataModelPayload(
|
|
|
|
|
|
|
|
// patientMobileNumber: json["PatientMobileNumber"],
|
|
|
|
|
|
|
|
// zipCode: json["ZipCode"],
|
|
|
|
|
|
|
|
// searchType: json["SearchType"],
|
|
|
|
|
|
|
|
// patientId: json["PatientID"],
|
|
|
|
|
|
|
|
// patientIdentificationId: json["PatientIdentificationID"],
|
|
|
|
|
|
|
|
// otpSendType: json["OTP_SendType"],
|
|
|
|
|
|
|
|
// patientOutSa: json["PatientOutSA"],
|
|
|
|
|
|
|
|
// isDentalAllowedBackend: json["isDentalAllowedBackend"],
|
|
|
|
|
|
|
|
// dob: json["DOB"],
|
|
|
|
|
|
|
|
// isHijri: json["IsHijri"],
|
|
|
|
|
|
|
|
// forRegister: json["forRegister"],
|
|
|
|
|
|
|
|
// isRegister: json["isRegister"],
|
|
|
|
|
|
|
|
// healthId: json["healthId"],
|
|
|
|
|
|
|
|
// emailAddress: json["emailAddress"],
|
|
|
|
|
|
|
|
// nationalityCode: json["nationalityCode"],
|
|
|
|
|
|
|
|
// gender: json["gender"],
|
|
|
|
|
|
|
|
// maritalStatus: json["maritalStatus"],
|
|
|
|
|
|
|
|
// fullName: json["fullName"],
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Map<String, dynamic> toJson() => {
|
|
|
|
|
|
|
|
// "PatientMobileNumber": patientMobileNumber,
|
|
|
|
|
|
|
|
// "ZipCode": zipCode,
|
|
|
|
|
|
|
|
// "SearchType": searchType,
|
|
|
|
|
|
|
|
// "PatientID": patientId,
|
|
|
|
|
|
|
|
// "PatientIdentificationID": patientIdentificationId,
|
|
|
|
|
|
|
|
// "OTP_SendType": otpSendType,
|
|
|
|
|
|
|
|
// "PatientOutSA": patientOutSa,
|
|
|
|
|
|
|
|
// "isDentalAllowedBackend": isDentalAllowedBackend,
|
|
|
|
|
|
|
|
// "DOB": dob,
|
|
|
|
|
|
|
|
// "IsHijri": isHijri,
|
|
|
|
|
|
|
|
// "forRegister": forRegister,
|
|
|
|
|
|
|
|
// "isRegister": isRegister,
|
|
|
|
|
|
|
|
// "healthId": healthId,
|
|
|
|
|
|
|
|
// "emailAddress": emailAddress,
|
|
|
|
|
|
|
|
// "nationalityCode": nationalityCode,
|
|
|
|
|
|
|
|
// "gender": gender,
|
|
|
|
|
|
|
|
// "maritalStatus": maritalStatus,
|
|
|
|
|
|
|
|
// "fullName": fullName,
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class RegistrationDataModelPayload {
|
|
|
|
class RegistrationDataModelPayload {
|
|
|
|
int? patientMobileNumber;
|
|
|
|
int? patientMobileNumber;
|
|
|
|
|
|
|
|
String? mobileNo;
|
|
|
|
|
|
|
|
String? deviceToken;
|
|
|
|
|
|
|
|
bool? projectOutSa;
|
|
|
|
|
|
|
|
int? loginType;
|
|
|
|
String? zipCode;
|
|
|
|
String? zipCode;
|
|
|
|
|
|
|
|
bool? isRegister;
|
|
|
|
|
|
|
|
String? logInTokenId;
|
|
|
|
int? searchType;
|
|
|
|
int? searchType;
|
|
|
|
int? patientId;
|
|
|
|
int? patientId;
|
|
|
|
|
|
|
|
int? nationalId;
|
|
|
|
int? patientIdentificationId;
|
|
|
|
int? patientIdentificationId;
|
|
|
|
int? otpSendType;
|
|
|
|
int? otpSendType;
|
|
|
|
|
|
|
|
String? languageId;
|
|
|
|
|
|
|
|
String? versionId;
|
|
|
|
|
|
|
|
String? channel;
|
|
|
|
|
|
|
|
String? ipAdress;
|
|
|
|
|
|
|
|
String? generalid;
|
|
|
|
int? patientOutSa;
|
|
|
|
int? patientOutSa;
|
|
|
|
bool? isDentalAllowedBackend;
|
|
|
|
bool? isDentalAllowedBackend;
|
|
|
|
|
|
|
|
String? deviceTypeId;
|
|
|
|
|
|
|
|
String? smsSignature;
|
|
|
|
String? dob;
|
|
|
|
String? dob;
|
|
|
|
int? isHijri;
|
|
|
|
int? isHijri;
|
|
|
|
bool? forRegister;
|
|
|
|
String? patientType;
|
|
|
|
bool? isRegister;
|
|
|
|
String? latitude;
|
|
|
|
|
|
|
|
String? longitude;
|
|
|
|
String? healthId;
|
|
|
|
String? healthId;
|
|
|
|
String? emailAddress;
|
|
|
|
String? emailAddress;
|
|
|
|
String? nationalityCode;
|
|
|
|
String? nationalityCode;
|
|
|
|
@ -22,19 +130,35 @@ class RegistrationDataModelPayload {
|
|
|
|
MaritalStatusTypeEnum? maritalStatus;
|
|
|
|
MaritalStatusTypeEnum? maritalStatus;
|
|
|
|
String? fullName;
|
|
|
|
String? fullName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RegistrationDataModelPayload({
|
|
|
|
RegistrationDataModelPayload({
|
|
|
|
this.patientMobileNumber,
|
|
|
|
this.patientMobileNumber,
|
|
|
|
|
|
|
|
this.mobileNo,
|
|
|
|
|
|
|
|
this.deviceToken,
|
|
|
|
|
|
|
|
this.projectOutSa,
|
|
|
|
|
|
|
|
this.loginType,
|
|
|
|
this.zipCode,
|
|
|
|
this.zipCode,
|
|
|
|
|
|
|
|
this.isRegister,
|
|
|
|
|
|
|
|
this.logInTokenId,
|
|
|
|
this.searchType,
|
|
|
|
this.searchType,
|
|
|
|
this.patientId,
|
|
|
|
this.patientId,
|
|
|
|
|
|
|
|
this.nationalId,
|
|
|
|
this.patientIdentificationId,
|
|
|
|
this.patientIdentificationId,
|
|
|
|
this.otpSendType,
|
|
|
|
this.otpSendType,
|
|
|
|
|
|
|
|
this.languageId,
|
|
|
|
|
|
|
|
this.versionId,
|
|
|
|
|
|
|
|
this.channel,
|
|
|
|
|
|
|
|
this.ipAdress,
|
|
|
|
|
|
|
|
this.generalid,
|
|
|
|
this.patientOutSa,
|
|
|
|
this.patientOutSa,
|
|
|
|
this.isDentalAllowedBackend,
|
|
|
|
this.isDentalAllowedBackend,
|
|
|
|
|
|
|
|
this.deviceTypeId,
|
|
|
|
|
|
|
|
this.smsSignature,
|
|
|
|
this.dob,
|
|
|
|
this.dob,
|
|
|
|
this.isHijri,
|
|
|
|
this.isHijri,
|
|
|
|
this.forRegister,
|
|
|
|
this.patientType,
|
|
|
|
this.isRegister,
|
|
|
|
this.latitude,
|
|
|
|
|
|
|
|
this.longitude,
|
|
|
|
this.healthId,
|
|
|
|
this.healthId,
|
|
|
|
this.emailAddress,
|
|
|
|
this.emailAddress,
|
|
|
|
this.nationalityCode,
|
|
|
|
this.nationalityCode,
|
|
|
|
@ -48,44 +172,74 @@ class RegistrationDataModelPayload {
|
|
|
|
String toRawJson() => json.encode(toJson());
|
|
|
|
String toRawJson() => json.encode(toJson());
|
|
|
|
|
|
|
|
|
|
|
|
factory RegistrationDataModelPayload.fromJson(Map<String, dynamic> json) => RegistrationDataModelPayload(
|
|
|
|
factory RegistrationDataModelPayload.fromJson(Map<String, dynamic> json) => RegistrationDataModelPayload(
|
|
|
|
patientMobileNumber: json["PatientMobileNumber"],
|
|
|
|
patientMobileNumber: json["PatientMobileNumber"],
|
|
|
|
zipCode: json["ZipCode"],
|
|
|
|
mobileNo: json["MobileNo"],
|
|
|
|
searchType: json["SearchType"],
|
|
|
|
deviceToken: json["DeviceToken"],
|
|
|
|
patientId: json["PatientID"],
|
|
|
|
projectOutSa: json["ProjectOutSA"],
|
|
|
|
patientIdentificationId: json["PatientIdentificationID"],
|
|
|
|
loginType: json["LoginType"],
|
|
|
|
otpSendType: json["OTP_SendType"],
|
|
|
|
zipCode: json["ZipCode"],
|
|
|
|
patientOutSa: json["PatientOutSA"],
|
|
|
|
isRegister: json["isRegister"],
|
|
|
|
isDentalAllowedBackend: json["isDentalAllowedBackend"],
|
|
|
|
logInTokenId: json["LogInTokenID"],
|
|
|
|
dob: json["DOB"],
|
|
|
|
searchType: json["SearchType"],
|
|
|
|
isHijri: json["IsHijri"],
|
|
|
|
patientId: json["PatientID"],
|
|
|
|
forRegister: json["forRegister"],
|
|
|
|
nationalId: json["NationalID"],
|
|
|
|
isRegister: json["isRegister"],
|
|
|
|
patientIdentificationId: json["PatientIdentificationID"],
|
|
|
|
healthId: json["healthId"],
|
|
|
|
otpSendType: json["OTP_SendType"],
|
|
|
|
emailAddress: json["emailAddress"],
|
|
|
|
languageId: json["LanguageID"],
|
|
|
|
nationalityCode: json["nationalityCode"],
|
|
|
|
versionId: json["VersionID"],
|
|
|
|
gender: json["gender"],
|
|
|
|
channel: json["Channel"],
|
|
|
|
maritalStatus: json["maritalStatus"],
|
|
|
|
ipAdress: json["IPAdress"],
|
|
|
|
fullName: json["fullName"],
|
|
|
|
generalid: json["generalid"],
|
|
|
|
);
|
|
|
|
patientOutSa: json["PatientOutSA"],
|
|
|
|
|
|
|
|
isDentalAllowedBackend: json["isDentalAllowedBackend"],
|
|
|
|
|
|
|
|
deviceTypeId: json["DeviceTypeID"],
|
|
|
|
|
|
|
|
smsSignature: json["SMSSignature"],
|
|
|
|
|
|
|
|
dob: json["DOB"],
|
|
|
|
|
|
|
|
isHijri: json["IsHijri"],
|
|
|
|
|
|
|
|
patientType: json["PatientType"],
|
|
|
|
|
|
|
|
latitude: json["Latitude"],
|
|
|
|
|
|
|
|
longitude: json["Longitude"],
|
|
|
|
|
|
|
|
healthId: json["healthId"],
|
|
|
|
|
|
|
|
emailAddress: json["emailAddress"],
|
|
|
|
|
|
|
|
nationalityCode: json["nationalityCode"],
|
|
|
|
|
|
|
|
gender: json["gender"],
|
|
|
|
|
|
|
|
maritalStatus: json["maritalStatus"],
|
|
|
|
|
|
|
|
fullName: json["fullName"],
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"PatientMobileNumber": patientMobileNumber,
|
|
|
|
"PatientMobileNumber": patientMobileNumber,
|
|
|
|
"ZipCode": zipCode,
|
|
|
|
"MobileNo": mobileNo,
|
|
|
|
"SearchType": searchType,
|
|
|
|
"DeviceToken": deviceToken,
|
|
|
|
"PatientID": patientId,
|
|
|
|
"ProjectOutSA": projectOutSa,
|
|
|
|
"PatientIdentificationID": patientIdentificationId,
|
|
|
|
"LoginType": loginType,
|
|
|
|
"OTP_SendType": otpSendType,
|
|
|
|
"ZipCode": zipCode,
|
|
|
|
"PatientOutSA": patientOutSa,
|
|
|
|
"isRegister": isRegister,
|
|
|
|
"isDentalAllowedBackend": isDentalAllowedBackend,
|
|
|
|
"LogInTokenID": logInTokenId,
|
|
|
|
"DOB": dob,
|
|
|
|
"SearchType": searchType,
|
|
|
|
"IsHijri": isHijri,
|
|
|
|
"PatientID": patientId,
|
|
|
|
"forRegister": forRegister,
|
|
|
|
"NationalID": nationalId,
|
|
|
|
"isRegister": isRegister,
|
|
|
|
"PatientIdentificationID": patientIdentificationId,
|
|
|
|
"healthId": healthId,
|
|
|
|
"OTP_SendType": otpSendType,
|
|
|
|
"emailAddress": emailAddress,
|
|
|
|
"LanguageID": languageId,
|
|
|
|
"nationalityCode": nationalityCode,
|
|
|
|
"VersionID": versionId,
|
|
|
|
"gender": gender,
|
|
|
|
"Channel": channel,
|
|
|
|
"maritalStatus": maritalStatus,
|
|
|
|
"IPAdress": ipAdress,
|
|
|
|
"fullName": fullName,
|
|
|
|
"generalid": generalid,
|
|
|
|
};
|
|
|
|
"PatientOutSA": patientOutSa,
|
|
|
|
|
|
|
|
"isDentalAllowedBackend": isDentalAllowedBackend,
|
|
|
|
|
|
|
|
"DeviceTypeID": deviceTypeId,
|
|
|
|
|
|
|
|
"SMSSignature": smsSignature,
|
|
|
|
|
|
|
|
"DOB": dob,
|
|
|
|
|
|
|
|
"IsHijri": isHijri,
|
|
|
|
|
|
|
|
"PatientType": patientType,
|
|
|
|
|
|
|
|
"Latitude": latitude,
|
|
|
|
|
|
|
|
"Longitude": longitude,
|
|
|
|
|
|
|
|
"healthId": healthId,
|
|
|
|
|
|
|
|
"emailAddress": emailAddress,
|
|
|
|
|
|
|
|
"nationalityCode": nationalityCode,
|
|
|
|
|
|
|
|
"gender": gender,
|
|
|
|
|
|
|
|
"maritalStatus": maritalStatus,
|
|
|
|
|
|
|
|
"fullName": fullName,
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|