Merge branch 'dev_aamir' of http://34.17.52.180/Haroon6138/HMG_Patient_App_New into dev_sultan
commit
61d10068ca
@ -1,292 +1,321 @@
|
|||||||
import 'package:hmg_patient_app_new/core/utils/date_util.dart';
|
import 'dart:convert';
|
||||||
|
|
||||||
class AuthenticatedUser {
|
class AuthenticatedUser {
|
||||||
String? setupID;
|
String? setupId;
|
||||||
int? patientType;
|
int? patientType;
|
||||||
int? patientID;
|
int? patientId;
|
||||||
String? firstName;
|
String? firstName;
|
||||||
String? middleName;
|
String? middleName;
|
||||||
String? lastName;
|
String? lastName;
|
||||||
String? firstNameN;
|
String? firstNameN;
|
||||||
String? middleNameN;
|
String? middleNameN;
|
||||||
String? lastNameN;
|
String? lastNameN;
|
||||||
int? relationshipID;
|
int? relationshipId;
|
||||||
int? gender;
|
int? gender;
|
||||||
String? dateofBirth;
|
String? dateofBirth;
|
||||||
DateTime? dateofBirthDataTime;
|
|
||||||
dynamic dateofBirthN;
|
dynamic dateofBirthN;
|
||||||
String? nationalityID;
|
String? nationalityId;
|
||||||
dynamic phoneResi;
|
String? phoneResi;
|
||||||
dynamic phoneOffice;
|
String? phoneOffice;
|
||||||
String? mobileNumber;
|
String? mobileNumber;
|
||||||
dynamic faxNumber;
|
String? faxNumber;
|
||||||
String? emailAddress;
|
String? emailAddress;
|
||||||
dynamic bloodGroup;
|
dynamic bloodGroup;
|
||||||
dynamic rHFactor;
|
dynamic rhFactor;
|
||||||
bool? isEmailAlertRequired;
|
bool? isEmailAlertRequired;
|
||||||
bool? isSMSAlertRequired;
|
bool? isSmsAlertRequired;
|
||||||
String? preferredLanguage;
|
String? preferredLanguage;
|
||||||
bool? isPrivilegedMember;
|
bool? isPrivilegedMember;
|
||||||
dynamic memberID;
|
dynamic memberId;
|
||||||
dynamic expiryDate;
|
dynamic expiryDate;
|
||||||
dynamic isHmgEmployee;
|
dynamic isHmgEmployee;
|
||||||
dynamic employeeID;
|
dynamic employeeId;
|
||||||
dynamic emergencyContactName;
|
String? emergencyContactName;
|
||||||
dynamic emergencyContactNo;
|
String? emergencyContactNo;
|
||||||
int? patientPayType;
|
int? patientPayType;
|
||||||
dynamic dHCCPatientRefID;
|
dynamic dhccPatientRefId;
|
||||||
bool? isPatientDummy;
|
bool? isPatientDummy;
|
||||||
int? status;
|
int? status;
|
||||||
dynamic isStatusCleared;
|
dynamic isStatusCleared;
|
||||||
int? patientIdentificationType;
|
int? patientIdentificationType;
|
||||||
String? patientIdentificationNo;
|
String? patientIdentificationNo;
|
||||||
int? projectID;
|
int? projectId;
|
||||||
int? infoSourceID;
|
int? infoSourceId;
|
||||||
dynamic address;
|
dynamic address;
|
||||||
int? age;
|
int? age;
|
||||||
String? ageDesc;
|
String? ageDesc;
|
||||||
int? areaID;
|
int? areaId;
|
||||||
|
int? crsVerificationStatus;
|
||||||
|
String? crsVerificationStatusDesc;
|
||||||
|
String? crsVerificationStatusDescN;
|
||||||
int? createdBy;
|
int? createdBy;
|
||||||
String? genderDescription;
|
String? genderDescription;
|
||||||
dynamic iR;
|
String? healthIdFromNhicViaVida;
|
||||||
dynamic iSOCityID;
|
dynamic ir;
|
||||||
dynamic iSOCountryID;
|
dynamic isoCityId;
|
||||||
|
dynamic isoCountryId;
|
||||||
|
bool? isVerfiedFromNhic;
|
||||||
List<ListPrivilege>? listPrivilege;
|
List<ListPrivilege>? listPrivilege;
|
||||||
dynamic marital;
|
dynamic marital;
|
||||||
int? outSA;
|
dynamic occupationId;
|
||||||
dynamic pOBox;
|
int? outSa;
|
||||||
|
dynamic poBox;
|
||||||
bool? receiveHealthSummaryReport;
|
bool? receiveHealthSummaryReport;
|
||||||
int? sourceType;
|
int? sourceType;
|
||||||
dynamic strDateofBirth;
|
dynamic strDateofBirth;
|
||||||
dynamic tempAddress;
|
dynamic tempAddress;
|
||||||
dynamic zipCode;
|
dynamic zipCode;
|
||||||
dynamic isFamily;
|
dynamic eHealthIdField;
|
||||||
dynamic cRSVerificationStatus;
|
dynamic authenticatedUserPatientPayType;
|
||||||
// dynamic patientPayType;
|
dynamic authenticatedUserPatientType;
|
||||||
// dynamic patientType;
|
dynamic authenticatedUserStatus;
|
||||||
// dynamic status;
|
|
||||||
|
|
||||||
AuthenticatedUser(
|
AuthenticatedUser({
|
||||||
{this.setupID,
|
this.setupId,
|
||||||
this.patientType,
|
this.patientType,
|
||||||
this.patientID,
|
this.patientId,
|
||||||
this.firstName,
|
this.firstName,
|
||||||
this.middleName,
|
this.middleName,
|
||||||
this.lastName,
|
this.lastName,
|
||||||
this.firstNameN,
|
this.firstNameN,
|
||||||
this.middleNameN,
|
this.middleNameN,
|
||||||
this.lastNameN,
|
this.lastNameN,
|
||||||
this.relationshipID,
|
this.relationshipId,
|
||||||
this.gender,
|
this.gender,
|
||||||
this.dateofBirth,
|
this.dateofBirth,
|
||||||
this.dateofBirthN,
|
this.dateofBirthN,
|
||||||
this.nationalityID,
|
this.nationalityId,
|
||||||
this.phoneResi,
|
this.phoneResi,
|
||||||
this.phoneOffice,
|
this.phoneOffice,
|
||||||
this.mobileNumber,
|
this.mobileNumber,
|
||||||
this.faxNumber,
|
this.faxNumber,
|
||||||
this.emailAddress,
|
this.emailAddress,
|
||||||
this.bloodGroup,
|
this.bloodGroup,
|
||||||
this.rHFactor,
|
this.rhFactor,
|
||||||
this.isEmailAlertRequired,
|
this.isEmailAlertRequired,
|
||||||
this.isSMSAlertRequired,
|
this.isSmsAlertRequired,
|
||||||
this.preferredLanguage,
|
this.preferredLanguage,
|
||||||
this.isPrivilegedMember,
|
this.isPrivilegedMember,
|
||||||
this.memberID,
|
this.memberId,
|
||||||
this.expiryDate,
|
this.expiryDate,
|
||||||
this.isHmgEmployee,
|
this.isHmgEmployee,
|
||||||
this.employeeID,
|
this.employeeId,
|
||||||
this.emergencyContactName,
|
this.emergencyContactName,
|
||||||
this.emergencyContactNo,
|
this.emergencyContactNo,
|
||||||
this.patientPayType,
|
this.patientPayType,
|
||||||
this.dHCCPatientRefID,
|
this.dhccPatientRefId,
|
||||||
this.isPatientDummy,
|
this.isPatientDummy,
|
||||||
this.status,
|
this.status,
|
||||||
this.isStatusCleared,
|
this.isStatusCleared,
|
||||||
this.patientIdentificationType,
|
this.patientIdentificationType,
|
||||||
this.patientIdentificationNo,
|
this.patientIdentificationNo,
|
||||||
this.projectID,
|
this.projectId,
|
||||||
this.infoSourceID,
|
this.infoSourceId,
|
||||||
this.address,
|
this.address,
|
||||||
this.age,
|
this.age,
|
||||||
this.ageDesc,
|
this.ageDesc,
|
||||||
this.areaID,
|
this.areaId,
|
||||||
this.createdBy,
|
this.crsVerificationStatus,
|
||||||
this.genderDescription,
|
this.crsVerificationStatusDesc,
|
||||||
this.iR,
|
this.crsVerificationStatusDescN,
|
||||||
this.iSOCityID,
|
this.createdBy,
|
||||||
this.iSOCountryID,
|
this.genderDescription,
|
||||||
this.listPrivilege,
|
this.healthIdFromNhicViaVida,
|
||||||
this.marital,
|
this.ir,
|
||||||
this.outSA,
|
this.isoCityId,
|
||||||
this.pOBox,
|
this.isoCountryId,
|
||||||
this.receiveHealthSummaryReport,
|
this.isVerfiedFromNhic,
|
||||||
this.sourceType,
|
this.listPrivilege,
|
||||||
this.strDateofBirth,
|
this.marital,
|
||||||
this.tempAddress,
|
this.occupationId,
|
||||||
this.zipCode,
|
this.outSa,
|
||||||
this.isFamily,
|
this.poBox,
|
||||||
this.cRSVerificationStatus});
|
this.receiveHealthSummaryReport,
|
||||||
|
this.sourceType,
|
||||||
|
this.strDateofBirth,
|
||||||
|
this.tempAddress,
|
||||||
|
this.zipCode,
|
||||||
|
this.eHealthIdField,
|
||||||
|
this.authenticatedUserPatientPayType,
|
||||||
|
this.authenticatedUserPatientType,
|
||||||
|
this.authenticatedUserStatus,
|
||||||
|
});
|
||||||
|
|
||||||
AuthenticatedUser.fromJson(Map<String, dynamic> json) {
|
factory AuthenticatedUser.fromRawJson(String str) => AuthenticatedUser.fromJson(json.decode(str));
|
||||||
setupID = json['SetupID'];
|
|
||||||
patientType = json['PatientType'];
|
|
||||||
patientID = json['PatientID'];
|
|
||||||
firstName = json['FirstName'];
|
|
||||||
middleName = json['MiddleName'];
|
|
||||||
lastName = json['LastName'];
|
|
||||||
firstNameN = json['FirstNameN'];
|
|
||||||
middleNameN = json['MiddleNameN'];
|
|
||||||
lastNameN = json['LastNameN'];
|
|
||||||
relationshipID = json['RelationshipID'];
|
|
||||||
gender = json['Gender'];
|
|
||||||
dateofBirth = json['DateofBirth'];
|
|
||||||
dateofBirthDataTime = DateUtil.convertStringToDate(json['DateofBirth']);
|
|
||||||
dateofBirthN = json['DateofBirthN'];
|
|
||||||
nationalityID = json['NationalityID'];
|
|
||||||
phoneResi = json['PhoneResi'];
|
|
||||||
phoneOffice = json['PhoneOffice'];
|
|
||||||
mobileNumber = json['MobileNumber'];
|
|
||||||
faxNumber = json['FaxNumber'];
|
|
||||||
emailAddress = json['EmailAddress'];
|
|
||||||
bloodGroup = json['BloodGroup'];
|
|
||||||
rHFactor = json['RHFactor'];
|
|
||||||
isEmailAlertRequired = json['IsEmailAlertRequired'];
|
|
||||||
isSMSAlertRequired = json['IsSMSAlertRequired'];
|
|
||||||
preferredLanguage = json['PreferredLanguage'];
|
|
||||||
isPrivilegedMember = json['IsPrivilegedMember'];
|
|
||||||
memberID = json['MemberID'];
|
|
||||||
expiryDate = json['ExpiryDate'];
|
|
||||||
isHmgEmployee = json['IsHmgEmployee'];
|
|
||||||
employeeID = json['EmployeeID'];
|
|
||||||
emergencyContactName = json['EmergencyContactName'];
|
|
||||||
emergencyContactNo = json['EmergencyContactNo'];
|
|
||||||
patientPayType = json['PatientPayType'];
|
|
||||||
dHCCPatientRefID = json['DHCCPatientRefID'];
|
|
||||||
isPatientDummy = json['IsPatientDummy'];
|
|
||||||
status = json['Status'];
|
|
||||||
isStatusCleared = json['IsStatusCleared'];
|
|
||||||
patientIdentificationType = json['PatientIdentificationType'];
|
|
||||||
patientIdentificationNo = json['PatientIdentificationNo'];
|
|
||||||
projectID = json['ProjectID'];
|
|
||||||
infoSourceID = json['InfoSourceID'];
|
|
||||||
address = json['Address'];
|
|
||||||
age = json['Age'];
|
|
||||||
ageDesc = json['AgeDesc'];
|
|
||||||
areaID = json['AreaID'];
|
|
||||||
createdBy = json['CreatedBy'];
|
|
||||||
genderDescription = json['GenderDescription'];
|
|
||||||
iR = json['IR'];
|
|
||||||
iSOCityID = json['ISOCityID'];
|
|
||||||
iSOCountryID = json['ISOCountryID'];
|
|
||||||
if (json['ListPrivilege'] != null) {
|
|
||||||
listPrivilege = [];
|
|
||||||
json['ListPrivilege'].forEach((v) {
|
|
||||||
listPrivilege!.add(new ListPrivilege.fromJson(v));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
marital = json['Marital'];
|
|
||||||
outSA = json['OutSA'];
|
|
||||||
pOBox = json['POBox'];
|
|
||||||
receiveHealthSummaryReport = json['ReceiveHealthSummaryReport'];
|
|
||||||
sourceType = json['SourceType'];
|
|
||||||
strDateofBirth = json['StrDateofBirth'];
|
|
||||||
tempAddress = json['TempAddress'];
|
|
||||||
zipCode = json['ZipCode'];
|
|
||||||
isFamily = json['IsFamily'];
|
|
||||||
cRSVerificationStatus = json['CRSVerificationStatus'];
|
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
String toRawJson() => json.encode(toJson());
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
||||||
data['SetupID'] = this.setupID;
|
factory AuthenticatedUser.fromJson(Map<String, dynamic> json) => AuthenticatedUser(
|
||||||
data['PatientType'] = this.patientType;
|
setupId: json["SetupID"],
|
||||||
data['PatientID'] = this.patientID;
|
patientType: json["PatientType"],
|
||||||
data['FirstName'] = this.firstName;
|
patientId: json["PatientID"],
|
||||||
data['MiddleName'] = this.middleName;
|
firstName: json["FirstName"],
|
||||||
data['LastName'] = this.lastName;
|
middleName: json["MiddleName"],
|
||||||
data['FirstNameN'] = this.firstNameN;
|
lastName: json["LastName"],
|
||||||
data['MiddleNameN'] = this.middleNameN;
|
firstNameN: json["FirstNameN"],
|
||||||
data['LastNameN'] = this.lastNameN;
|
middleNameN: json["MiddleNameN"],
|
||||||
data['RelationshipID'] = this.relationshipID;
|
lastNameN: json["LastNameN"],
|
||||||
data['Gender'] = this.gender;
|
relationshipId: json["RelationshipID"],
|
||||||
data['DateofBirth'] = this.dateofBirth;
|
gender: json["Gender"],
|
||||||
data['DateofBirthN'] = this.dateofBirthN;
|
dateofBirth: json["DateofBirth"],
|
||||||
data['NationalityID'] = this.nationalityID;
|
dateofBirthN: json["DateofBirthN"],
|
||||||
data['PhoneResi'] = this.phoneResi;
|
nationalityId: json["NationalityID"],
|
||||||
data['PhoneOffice'] = this.phoneOffice;
|
phoneResi: json["PhoneResi"],
|
||||||
data['MobileNumber'] = this.mobileNumber;
|
phoneOffice: json["PhoneOffice"],
|
||||||
data['FaxNumber'] = this.faxNumber;
|
mobileNumber: json["MobileNumber"],
|
||||||
data['EmailAddress'] = this.emailAddress;
|
faxNumber: json["FaxNumber"],
|
||||||
data['BloodGroup'] = this.bloodGroup;
|
emailAddress: json["EmailAddress"],
|
||||||
data['RHFactor'] = this.rHFactor;
|
bloodGroup: json["BloodGroup"],
|
||||||
data['IsEmailAlertRequired'] = this.isEmailAlertRequired;
|
rhFactor: json["RHFactor"],
|
||||||
data['IsSMSAlertRequired'] = this.isSMSAlertRequired;
|
isEmailAlertRequired: json["IsEmailAlertRequired"],
|
||||||
data['PreferredLanguage'] = this.preferredLanguage;
|
isSmsAlertRequired: json["IsSMSAlertRequired"],
|
||||||
data['IsPrivilegedMember'] = this.isPrivilegedMember;
|
preferredLanguage: json["PreferredLanguage"],
|
||||||
data['MemberID'] = this.memberID;
|
isPrivilegedMember: json["IsPrivilegedMember"],
|
||||||
data['ExpiryDate'] = this.expiryDate;
|
memberId: json["MemberID"],
|
||||||
data['IsHmgEmployee'] = this.isHmgEmployee;
|
expiryDate: json["ExpiryDate"],
|
||||||
data['EmployeeID'] = this.employeeID;
|
isHmgEmployee: json["IsHmgEmployee"],
|
||||||
data['EmergencyContactName'] = this.emergencyContactName;
|
employeeId: json["EmployeeID"],
|
||||||
data['EmergencyContactNo'] = this.emergencyContactNo;
|
emergencyContactName: json["EmergencyContactName"],
|
||||||
data['PatientPayType'] = this.patientPayType;
|
emergencyContactNo: json["EmergencyContactNo"],
|
||||||
data['DHCCPatientRefID'] = this.dHCCPatientRefID;
|
patientPayType: json["PatientPayType"],
|
||||||
data['IsPatientDummy'] = this.isPatientDummy;
|
dhccPatientRefId: json["DHCCPatientRefID"],
|
||||||
data['Status'] = this.status;
|
isPatientDummy: json["IsPatientDummy"],
|
||||||
data['IsStatusCleared'] = this.isStatusCleared;
|
status: json["Status"],
|
||||||
data['PatientIdentificationType'] = this.patientIdentificationType;
|
isStatusCleared: json["IsStatusCleared"],
|
||||||
data['PatientIdentificationNo'] = this.patientIdentificationNo;
|
patientIdentificationType: json["PatientIdentificationType"],
|
||||||
data['ProjectID'] = this.projectID;
|
patientIdentificationNo: json["PatientIdentificationNo"],
|
||||||
data['InfoSourceID'] = this.infoSourceID;
|
projectId: json["ProjectID"],
|
||||||
data['Address'] = this.address;
|
infoSourceId: json["InfoSourceID"],
|
||||||
data['Age'] = this.age;
|
address: json["Address"],
|
||||||
data['AgeDesc'] = this.ageDesc;
|
age: json["Age"],
|
||||||
data['AreaID'] = this.areaID;
|
ageDesc: json["AgeDesc"],
|
||||||
data['CreatedBy'] = this.createdBy;
|
areaId: json["AreaID"],
|
||||||
data['GenderDescription'] = this.genderDescription;
|
crsVerificationStatus: json["CRSVerificationStatus"],
|
||||||
data['IR'] = this.iR;
|
crsVerificationStatusDesc: json["CRSVerificationStatusDesc"],
|
||||||
data['ISOCityID'] = this.iSOCityID;
|
crsVerificationStatusDescN: json["CRSVerificationStatusDescN"],
|
||||||
data['ISOCountryID'] = this.iSOCountryID;
|
createdBy: json["CreatedBy"],
|
||||||
if (this.listPrivilege != null) {
|
genderDescription: json["GenderDescription"],
|
||||||
data['ListPrivilege'] =
|
healthIdFromNhicViaVida: json["HealthIDFromNHICViaVida"],
|
||||||
this.listPrivilege!.map((v) => v.toJson()).toList();
|
ir: json["IR"],
|
||||||
}
|
isoCityId: json["ISOCityID"],
|
||||||
data['Marital'] = this.marital;
|
isoCountryId: json["ISOCountryID"],
|
||||||
data['OutSA'] = this.outSA;
|
isVerfiedFromNhic: json["IsVerfiedFromNHIC"],
|
||||||
data['POBox'] = this.pOBox;
|
listPrivilege: json["ListPrivilege"] == null ? [] : List<ListPrivilege>.from(json["ListPrivilege"]!.map((x) => ListPrivilege.fromJson(x))),
|
||||||
data['ReceiveHealthSummaryReport'] = this.receiveHealthSummaryReport;
|
marital: json["Marital"],
|
||||||
data['SourceType'] = this.sourceType;
|
occupationId: json["OccupationID"],
|
||||||
data['StrDateofBirth'] = this.strDateofBirth;
|
outSa: json["OutSA"],
|
||||||
data['TempAddress'] = this.tempAddress;
|
poBox: json["POBox"],
|
||||||
data['ZipCode'] = this.zipCode;
|
receiveHealthSummaryReport: json["ReceiveHealthSummaryReport"],
|
||||||
data['IsFamily'] = this.isFamily;
|
sourceType: json["SourceType"],
|
||||||
data['CRSVerificationStatus'] = this.cRSVerificationStatus;
|
strDateofBirth: json["StrDateofBirth"],
|
||||||
return data;
|
tempAddress: json["TempAddress"],
|
||||||
}
|
zipCode: json["ZipCode"],
|
||||||
|
eHealthIdField: json["eHealthIDField"],
|
||||||
|
authenticatedUserPatientPayType: json["patientPayType"],
|
||||||
|
authenticatedUserPatientType: json["patientType"],
|
||||||
|
authenticatedUserStatus: json["status"],
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() => {
|
||||||
|
"SetupID": setupId,
|
||||||
|
"PatientType": patientType,
|
||||||
|
"PatientID": patientId,
|
||||||
|
"FirstName": firstName,
|
||||||
|
"MiddleName": middleName,
|
||||||
|
"LastName": lastName,
|
||||||
|
"FirstNameN": firstNameN,
|
||||||
|
"MiddleNameN": middleNameN,
|
||||||
|
"LastNameN": lastNameN,
|
||||||
|
"RelationshipID": relationshipId,
|
||||||
|
"Gender": gender,
|
||||||
|
"DateofBirth": dateofBirth,
|
||||||
|
"DateofBirthN": dateofBirthN,
|
||||||
|
"NationalityID": nationalityId,
|
||||||
|
"PhoneResi": phoneResi,
|
||||||
|
"PhoneOffice": phoneOffice,
|
||||||
|
"MobileNumber": mobileNumber,
|
||||||
|
"FaxNumber": faxNumber,
|
||||||
|
"EmailAddress": emailAddress,
|
||||||
|
"BloodGroup": bloodGroup,
|
||||||
|
"RHFactor": rhFactor,
|
||||||
|
"IsEmailAlertRequired": isEmailAlertRequired,
|
||||||
|
"IsSMSAlertRequired": isSmsAlertRequired,
|
||||||
|
"PreferredLanguage": preferredLanguage,
|
||||||
|
"IsPrivilegedMember": isPrivilegedMember,
|
||||||
|
"MemberID": memberId,
|
||||||
|
"ExpiryDate": expiryDate,
|
||||||
|
"IsHmgEmployee": isHmgEmployee,
|
||||||
|
"EmployeeID": employeeId,
|
||||||
|
"EmergencyContactName": emergencyContactName,
|
||||||
|
"EmergencyContactNo": emergencyContactNo,
|
||||||
|
"PatientPayType": patientPayType,
|
||||||
|
"DHCCPatientRefID": dhccPatientRefId,
|
||||||
|
"IsPatientDummy": isPatientDummy,
|
||||||
|
"Status": status,
|
||||||
|
"IsStatusCleared": isStatusCleared,
|
||||||
|
"PatientIdentificationType": patientIdentificationType,
|
||||||
|
"PatientIdentificationNo": patientIdentificationNo,
|
||||||
|
"ProjectID": projectId,
|
||||||
|
"InfoSourceID": infoSourceId,
|
||||||
|
"Address": address,
|
||||||
|
"Age": age,
|
||||||
|
"AgeDesc": ageDesc,
|
||||||
|
"AreaID": areaId,
|
||||||
|
"CRSVerificationStatus": crsVerificationStatus,
|
||||||
|
"CRSVerificationStatusDesc": crsVerificationStatusDesc,
|
||||||
|
"CRSVerificationStatusDescN": crsVerificationStatusDescN,
|
||||||
|
"CreatedBy": createdBy,
|
||||||
|
"GenderDescription": genderDescription,
|
||||||
|
"HealthIDFromNHICViaVida": healthIdFromNhicViaVida,
|
||||||
|
"IR": ir,
|
||||||
|
"ISOCityID": isoCityId,
|
||||||
|
"ISOCountryID": isoCountryId,
|
||||||
|
"IsVerfiedFromNHIC": isVerfiedFromNhic,
|
||||||
|
"ListPrivilege": listPrivilege == null ? [] : List<dynamic>.from(listPrivilege!.map((x) => x.toJson())),
|
||||||
|
"Marital": marital,
|
||||||
|
"OccupationID": occupationId,
|
||||||
|
"OutSA": outSa,
|
||||||
|
"POBox": poBox,
|
||||||
|
"ReceiveHealthSummaryReport": receiveHealthSummaryReport,
|
||||||
|
"SourceType": sourceType,
|
||||||
|
"StrDateofBirth": strDateofBirth,
|
||||||
|
"TempAddress": tempAddress,
|
||||||
|
"ZipCode": zipCode,
|
||||||
|
"eHealthIDField": eHealthIdField,
|
||||||
|
"patientPayType": authenticatedUserPatientPayType,
|
||||||
|
"patientType": authenticatedUserPatientType,
|
||||||
|
"status": authenticatedUserStatus,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
class ListPrivilege {
|
class ListPrivilege {
|
||||||
int? iD;
|
int? id;
|
||||||
String? serviceName;
|
String? serviceName;
|
||||||
bool? previlege;
|
bool? previlege;
|
||||||
dynamic region;
|
dynamic region;
|
||||||
|
|
||||||
ListPrivilege({this.iD, this.serviceName, this.previlege, this.region});
|
ListPrivilege({
|
||||||
|
this.id,
|
||||||
|
this.serviceName,
|
||||||
|
this.previlege,
|
||||||
|
this.region,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory ListPrivilege.fromRawJson(String str) => ListPrivilege.fromJson(json.decode(str));
|
||||||
|
|
||||||
|
String toRawJson() => json.encode(toJson());
|
||||||
|
|
||||||
ListPrivilege.fromJson(Map<String, dynamic> json) {
|
factory ListPrivilege.fromJson(Map<String, dynamic> json) => ListPrivilege(
|
||||||
iD = json['ID'];
|
id: json["ID"],
|
||||||
serviceName = json['ServiceName'];
|
serviceName: json["ServiceName"],
|
||||||
previlege = json['Previlege'];
|
previlege: json["Previlege"],
|
||||||
region = json['Region'];
|
region: json["Region"],
|
||||||
}
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() => {
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
"ID": id,
|
||||||
data['ID'] = this.iD;
|
"ServiceName": serviceName,
|
||||||
data['ServiceName'] = this.serviceName;
|
"Previlege": previlege,
|
||||||
data['Previlege'] = this.previlege;
|
"Region": region,
|
||||||
data['Region'] = this.region;
|
};
|
||||||
return data;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,73 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
class CommonAuthanticatedRequest {
|
||||||
|
String? sessionId;
|
||||||
|
double? versionId;
|
||||||
|
int? channel;
|
||||||
|
int? languageId;
|
||||||
|
String? ipAdress;
|
||||||
|
String? generalid;
|
||||||
|
double? latitude;
|
||||||
|
double? longitude;
|
||||||
|
int? deviceTypeId;
|
||||||
|
int? patientType;
|
||||||
|
int? patientTypeId;
|
||||||
|
String? tokenId;
|
||||||
|
int? patientId;
|
||||||
|
int? patientOutSa;
|
||||||
|
|
||||||
|
CommonAuthanticatedRequest({
|
||||||
|
this.sessionId,
|
||||||
|
this.versionId,
|
||||||
|
this.channel,
|
||||||
|
this.languageId,
|
||||||
|
this.ipAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.latitude,
|
||||||
|
this.longitude,
|
||||||
|
this.deviceTypeId,
|
||||||
|
this.patientType,
|
||||||
|
this.patientTypeId,
|
||||||
|
this.tokenId,
|
||||||
|
this.patientId,
|
||||||
|
this.patientOutSa,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory CommonAuthanticatedRequest.fromRawJson(String str) => CommonAuthanticatedRequest.fromJson(json.decode(str));
|
||||||
|
|
||||||
|
String toRawJson() => json.encode(toJson());
|
||||||
|
|
||||||
|
factory CommonAuthanticatedRequest.fromJson(Map<String, dynamic> json) => CommonAuthanticatedRequest(
|
||||||
|
sessionId: json["SessionID"],
|
||||||
|
versionId: json["VersionID"]?.toDouble(),
|
||||||
|
channel: json["Channel"],
|
||||||
|
languageId: json["LanguageID"],
|
||||||
|
ipAdress: json["IPAdress"],
|
||||||
|
generalid: json["generalid"],
|
||||||
|
latitude: json["Latitude"],
|
||||||
|
longitude: json["Longitude"],
|
||||||
|
deviceTypeId: json["DeviceTypeID"],
|
||||||
|
patientType: json["PatientType"],
|
||||||
|
patientTypeId: json["PatientTypeID"],
|
||||||
|
tokenId: json["TokenID"],
|
||||||
|
patientId: json["PatientID"],
|
||||||
|
patientOutSa: json["PatientOutSA"],
|
||||||
|
);
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() => {
|
||||||
|
"SessionID": sessionId,
|
||||||
|
"VersionID": versionId,
|
||||||
|
"Channel": channel,
|
||||||
|
"LanguageID": languageId,
|
||||||
|
"IPAdress": ipAdress,
|
||||||
|
"generalid": generalid,
|
||||||
|
"Latitude": latitude,
|
||||||
|
"Longitude": longitude,
|
||||||
|
"DeviceTypeID": deviceTypeId,
|
||||||
|
"PatientType": patientType,
|
||||||
|
"PatientTypeID": patientTypeId,
|
||||||
|
"TokenID": tokenId,
|
||||||
|
"PatientID": patientId,
|
||||||
|
"PatientOutSA": patientOutSa,
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -1,14 +1,17 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hmg_patient_app_new/presentation/authentication/login.dart';
|
import 'package:hmg_patient_app_new/presentation/authentication/login.dart';
|
||||||
|
import 'package:hmg_patient_app_new/presentation/home/landing_page.dart';
|
||||||
import 'package:hmg_patient_app_new/splashPage.dart';
|
import 'package:hmg_patient_app_new/splashPage.dart';
|
||||||
|
|
||||||
class AppRoutes {
|
class AppRoutes {
|
||||||
static const String initialRoute = '/initialRoute';
|
static const String initialRoute = '/initialRoute';
|
||||||
static const String loginScreen = '/loginScreen';
|
static const String loginScreen = '/loginScreen';
|
||||||
static const String registerNewScreen = '/registerNewScreen';
|
static const String registerNewScreen = '/registerNewScreen';
|
||||||
|
static const String landingScreen = '/landingScreen';
|
||||||
|
|
||||||
static Map<String, WidgetBuilder> get routes => {
|
static Map<String, WidgetBuilder> get routes => {
|
||||||
initialRoute: (context) => SplashPage(),
|
initialRoute: (context) => SplashPage(),
|
||||||
loginScreen: (context) => LoginScreen(),
|
loginScreen: (context) => LoginScreen(),
|
||||||
|
landingScreen: (context) => LandingPage(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue