|  |  |  | @ -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 'package:hmg_patient_app_new/core/enums.dart'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | class RegistrationDataModelPayload { | 
		
	
		
			
				|  |  |  |  |   int? patientMobileNumber; | 
		
	
		
			
				|  |  |  |  |   String? mobileNo; | 
		
	
		
			
				|  |  |  |  |   String? deviceToken; | 
		
	
		
			
				|  |  |  |  |   bool? projectOutSa; | 
		
	
		
			
				|  |  |  |  |   int? loginType; | 
		
	
		
			
				|  |  |  |  |   String? zipCode; | 
		
	
		
			
				|  |  |  |  |   bool? isRegister; | 
		
	
		
			
				|  |  |  |  |   String? logInTokenId; | 
		
	
		
			
				|  |  |  |  |   int? searchType; | 
		
	
		
			
				|  |  |  |  |   int? patientId; | 
		
	
		
			
				|  |  |  |  |   int? nationalId; | 
		
	
		
			
				|  |  |  |  |   int? patientIdentificationId; | 
		
	
		
			
				|  |  |  |  |   int? otpSendType; | 
		
	
		
			
				|  |  |  |  |   String? languageId; | 
		
	
		
			
				|  |  |  |  |   String? versionId; | 
		
	
		
			
				|  |  |  |  |   String? channel; | 
		
	
		
			
				|  |  |  |  |   String? ipAdress; | 
		
	
		
			
				|  |  |  |  |   String? generalid; | 
		
	
		
			
				|  |  |  |  |   int? patientOutSa; | 
		
	
		
			
				|  |  |  |  |   bool? isDentalAllowedBackend; | 
		
	
		
			
				|  |  |  |  |   String? deviceTypeId; | 
		
	
		
			
				|  |  |  |  |   String? smsSignature; | 
		
	
		
			
				|  |  |  |  |   String? dob; | 
		
	
		
			
				|  |  |  |  |   int? isHijri; | 
		
	
		
			
				|  |  |  |  |   bool? forRegister; | 
		
	
		
			
				|  |  |  |  |   bool? isRegister; | 
		
	
		
			
				|  |  |  |  |   String? patientType; | 
		
	
		
			
				|  |  |  |  |   String? latitude; | 
		
	
		
			
				|  |  |  |  |   String? longitude; | 
		
	
		
			
				|  |  |  |  |   String? healthId; | 
		
	
		
			
				|  |  |  |  |   String? emailAddress; | 
		
	
		
			
				|  |  |  |  |   String? nationalityCode; | 
		
	
	
		
			
				
					|  |  |  | @ -22,19 +130,35 @@ class RegistrationDataModelPayload { | 
		
	
		
			
				|  |  |  |  |   MaritalStatusTypeEnum? maritalStatus; | 
		
	
		
			
				|  |  |  |  |   String? fullName; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   RegistrationDataModelPayload({ | 
		
	
		
			
				|  |  |  |  |     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.isDentalAllowedBackend, | 
		
	
		
			
				|  |  |  |  |     this.deviceTypeId, | 
		
	
		
			
				|  |  |  |  |     this.smsSignature, | 
		
	
		
			
				|  |  |  |  |     this.dob, | 
		
	
		
			
				|  |  |  |  |     this.isHijri, | 
		
	
		
			
				|  |  |  |  |     this.forRegister, | 
		
	
		
			
				|  |  |  |  |     this.isRegister, | 
		
	
		
			
				|  |  |  |  |     this.patientType, | 
		
	
		
			
				|  |  |  |  |     this.latitude, | 
		
	
		
			
				|  |  |  |  |     this.longitude, | 
		
	
		
			
				|  |  |  |  |     this.healthId, | 
		
	
		
			
				|  |  |  |  |     this.emailAddress, | 
		
	
		
			
				|  |  |  |  |     this.nationalityCode, | 
		
	
	
		
			
				
					|  |  |  | @ -48,44 +172,74 @@ class RegistrationDataModelPayload { | 
		
	
		
			
				|  |  |  |  |   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"], | 
		
	
		
			
				|  |  |  |  |       ); | 
		
	
		
			
				|  |  |  |  |     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"], | 
		
	
		
			
				|  |  |  |  |     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() => { | 
		
	
		
			
				|  |  |  |  |         "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, | 
		
	
		
			
				|  |  |  |  |       }; | 
		
	
		
			
				|  |  |  |  |     "PatientMobileNumber": patientMobileNumber, | 
		
	
		
			
				|  |  |  |  |     "MobileNo": mobileNo, | 
		
	
		
			
				|  |  |  |  |     "DeviceToken": deviceToken, | 
		
	
		
			
				|  |  |  |  |     "ProjectOutSA": projectOutSa, | 
		
	
		
			
				|  |  |  |  |     "LoginType": loginType, | 
		
	
		
			
				|  |  |  |  |     "ZipCode": zipCode, | 
		
	
		
			
				|  |  |  |  |     "isRegister": isRegister, | 
		
	
		
			
				|  |  |  |  |     "LogInTokenID": logInTokenId, | 
		
	
		
			
				|  |  |  |  |     "SearchType": searchType, | 
		
	
		
			
				|  |  |  |  |     "PatientID": patientId, | 
		
	
		
			
				|  |  |  |  |     "NationalID": nationalId, | 
		
	
		
			
				|  |  |  |  |     "PatientIdentificationID": patientIdentificationId, | 
		
	
		
			
				|  |  |  |  |     "OTP_SendType": otpSendType, | 
		
	
		
			
				|  |  |  |  |     "LanguageID": languageId, | 
		
	
		
			
				|  |  |  |  |     "VersionID": versionId, | 
		
	
		
			
				|  |  |  |  |     "Channel": channel, | 
		
	
		
			
				|  |  |  |  |     "IPAdress": ipAdress, | 
		
	
		
			
				|  |  |  |  |     "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, | 
		
	
		
			
				|  |  |  |  |   }; | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					|  |  |  | 
 |