models updates -> 3.13.6

merge-update-with-lab-changes
devamirsaleemahmad 2 years ago
parent 3523daa9fa
commit 2a4059fd66

@ -1,44 +1,44 @@
class InsuranceCardDetailsModel { class InsuranceCardDetailsModel {
int approvalLimit; int? approvalLimit;
int companyGroupID; int? companyGroupID;
String companyName; String? companyName;
String companyRemarks; String? companyRemarks;
String dOB; String? dOB;
int deductible; int? deductible;
String effectiveFrom; String? effectiveFrom;
String effectiveTo; String? effectiveTo;
String eligabilityFailureReason; String? eligabilityFailureReason;
bool isMemberEligible; bool? isMemberEligible;
String memberID; String? memberID;
String memberName; String? memberName;
String memberStatus; String? memberStatus;
dynamic message; dynamic message;
String nationalId; String? nationalId;
String policyNumber; String? policyNumber;
String responseMessage; String? responseMessage;
String room; String? room;
String subCategory; String? subCategory;
InsuranceCardDetailsModel( InsuranceCardDetailsModel(
{this.approvalLimit, {this.approvalLimit,
this.companyGroupID, this.companyGroupID,
this.companyName, this.companyName,
this.companyRemarks, this.companyRemarks,
this.dOB, this.dOB,
this.deductible, this.deductible,
this.effectiveFrom, this.effectiveFrom,
this.effectiveTo, this.effectiveTo,
this.eligabilityFailureReason, this.eligabilityFailureReason,
this.isMemberEligible, this.isMemberEligible,
this.memberID, this.memberID,
this.memberName, this.memberName,
this.memberStatus, this.memberStatus,
this.message, this.message,
this.nationalId, this.nationalId,
this.policyNumber, this.policyNumber,
this.responseMessage, this.responseMessage,
this.room, this.room,
this.subCategory}); this.subCategory});
InsuranceCardDetailsModel.fromJson(Map<String, dynamic> json) { InsuranceCardDetailsModel.fromJson(Map<String, dynamic> json) {
approvalLimit = json['ApprovalLimit']; approvalLimit = json['ApprovalLimit'];

@ -1,20 +1,20 @@
class RequestInsuranceApprovalModel { class RequestInsuranceApprovalModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int eXuldAPPNO; int? eXuldAPPNO;
int projectID; int? projectID;
int appointmentNo; int? appointmentNo;
RequestInsuranceApprovalModel( RequestInsuranceApprovalModel(
{this.versionID, {this.versionID,

@ -1,18 +1,18 @@
class InsuranceManualUpdateRequest { class InsuranceManualUpdateRequest {
String setupID; String? setupID;
String patientIdentificationID; String? patientIdentificationID;
int projectID; int? projectID;
String mobileNo; String? mobileNo;
int activityId; int? activityId;
String component; String? component;
bool enableLogging; bool? enableLogging;
String insuranceCompanyName; String? insuranceCompanyName;
String cardHolderName; String? cardHolderName;
String memberShipNo; String? memberShipNo;
String policyNo; String? policyNo;
String schemeClass; String? schemeClass;
int requestType; int? requestType;
int patientID; int? patientID;
InsuranceManualUpdateRequest( InsuranceManualUpdateRequest(
{this.setupID, {this.setupID,

@ -1,5 +1,3 @@
class InsuranceCardModel { class InsuranceCardModel {
double? versionID; double? versionID;
int? channel; int? channel;
@ -8,46 +6,45 @@ class InsuranceCardModel {
String? generalid; String? generalid;
int? patientOutSA; int? patientOutSA;
String? sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
String groupName; String? groupName;
String companyName; String? companyName;
int companyID; int? companyID;
String subCategoryDesc; String? subCategoryDesc;
int subCategoryID; int? subCategoryID;
String patientCardID; String? patientCardID;
String insurancePolicyNumber; String? insurancePolicyNumber;
bool isActive; bool? isActive;
String cardValidTo; String? cardValidTo;
InsuranceCardModel({ InsuranceCardModel(
this.insurancePolicyNumber, {this.insurancePolicyNumber,
this.subCategoryDesc, this.subCategoryDesc,
this.subCategoryID, this.subCategoryID,
this.versionID, this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType, this.patientType,
this.groupName, this.groupName,
this.companyName, this.companyName,
this.companyID, this.companyID,
this.patientCardID, this.patientCardID,
this.isActive, this.isActive,
this.cardValidTo this.cardValidTo});
});
InsuranceCardModel.fromJson(Map<String, dynamic> json) { InsuranceCardModel.fromJson(Map<String, dynamic> json) {
isActive = json['IsActive']; isActive = json['IsActive'];

@ -1,20 +1,20 @@
class InsuranceUpdateModel { class InsuranceUpdateModel {
int patientID; int? patientID;
int patientType; int? patientType;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
String createdOn; String? createdOn;
String statusDescription; String? statusDescription;
int appointmentNo; int? appointmentNo;
InsuranceUpdateModel( InsuranceUpdateModel(
{this.patientID, {this.patientID,

@ -1,23 +1,23 @@
class LabOrderResult { class LabOrderResult {
String description; String? description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int gender; int? gender;
int lineItemNo; int? lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
dynamic notes; dynamic notes;
String packageID; String? packageID;
int patientID; int? patientID;
String projectID; String? projectID;
String referanceRange; String? referanceRange;
String resultValue; String? resultValue;
String sampleCollectedOn; String? sampleCollectedOn;
String sampleReceivedOn; String? sampleReceivedOn;
String setupID; String? setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String testCode; String? testCode;
String uOM; String? uOM;
String verifiedOn; String? verifiedOn;
String verifiedOnDateTime; String? verifiedOnDateTime;
LabOrderResult( LabOrderResult(
{this.description, {this.description,

@ -1,36 +1,36 @@
class LabResultList { class LabResultList {
String filterName = ""; String? filterName = "";
List<LabResult> patientLabResultList = []; List<LabResult>? patientLabResultList = [];
LabResultList({this.filterName, LabResult lab}) { LabResultList({this.filterName, LabResult? lab}) {
patientLabResultList.add(lab); patientLabResultList!.add(lab!);
} }
} }
class LabResult { class LabResult {
String description; String? description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int gender; int? gender;
bool isCertificateAllowed; bool? isCertificateAllowed;
int lineItemNo; int? lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
dynamic notes; dynamic notes;
int orderLineItemNo; int? orderLineItemNo;
int orderNo; int? orderNo;
String packageID; String? packageID;
int patientID; int? patientID;
String projectID; String? projectID;
String referanceRange; String? referanceRange;
String resultValue; String? resultValue;
int resultValueBasedLineItemNo; int? resultValueBasedLineItemNo;
String resultValueFlag; String? resultValueFlag;
String sampleCollectedOn; String? sampleCollectedOn;
String sampleReceivedOn; String? sampleReceivedOn;
String setupID; String? setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String testCode; String? testCode;
String uOM; String? uOM;
String verifiedOn; String? verifiedOn;
dynamic verifiedOnDateTime; dynamic verifiedOnDateTime;
LabResult( LabResult(

@ -1,41 +1,41 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class PatientLabOrders { class PatientLabOrders {
int actualDoctorRate; int? actualDoctorRate;
String clinicDescription; String? clinicDescription;
String clinicDescriptionEnglish; String? clinicDescriptionEnglish;
Null clinicDescriptionN; Null clinicDescriptionN;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String doctorNameEnglish; String? doctorNameEnglish;
Null doctorNameN; Null doctorNameN;
int doctorRate; int? doctorRate;
String doctorTitle; String ?doctorTitle;
int gender; int? gender;
String genderDescription; String? genderDescription;
String invoiceNo; String? invoiceNo;
String invoiceNo_VP; String? invoiceNo_VP;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isExecludeDoctor; bool? isExecludeDoctor;
bool isInOutPatient; bool? isInOutPatient;
String isInOutPatientDescription; String? isInOutPatientDescription;
String isInOutPatientDescriptionN; String? isInOutPatientDescriptionN;
bool isRead; bool? isRead;
String nationalityFlagURL; String? nationalityFlagURL;
int noOfPatientsRate; int? noOfPatientsRate;
DateTime orderDate; DateTime? orderDate;
String orderNo; String? orderNo;
String patientID; String? patientID;
String projectID; String? projectID;
String projectName; String? projectName;
Null projectNameN; Null projectNameN;
String qR; String? qR;
String setupID; String? setupID;
List<String> speciality; List<String>? speciality;
bool isLiveCareAppointment; bool? isLiveCareAppointment;
PatientLabOrders( PatientLabOrders(
{this.actualDoctorRate, {this.actualDoctorRate,
this.clinicDescription, this.clinicDescription,
@ -152,11 +152,11 @@ class PatientLabOrders {
} }
class PatientLabOrdersList { class PatientLabOrdersList {
String filterName = ""; String? filterName = "";
List<PatientLabOrders> patientLabOrdersList = List(); List<PatientLabOrders> patientLabOrdersList = [];
PatientLabOrdersList( PatientLabOrdersList(
{this.filterName, PatientLabOrders patientDoctorAppointment}) { {this.filterName, PatientLabOrders? patientDoctorAppointment}) {
patientLabOrdersList.add(patientDoctorAppointment); patientLabOrdersList.add(patientDoctorAppointment!);
} }
} }

@ -1,8 +1,8 @@
class PatientLabSpecialResult { class PatientLabSpecialResult {
String invoiceNo; String? invoiceNo;
String moduleID; String? moduleID;
String resultData; String? resultData;
String resultDataHTML; String? resultDataHTML;
dynamic resultDataTxt; dynamic resultDataTxt;
PatientLabSpecialResult( PatientLabSpecialResult(

@ -1,17 +1,17 @@
class RequestPatientLabOrders { class RequestPatientLabOrders {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
RequestPatientLabOrders( RequestPatientLabOrders(
{this.versionID, {this.versionID,

@ -1,23 +1,23 @@
class RequestPatientLabSpecialResult { class RequestPatientLabSpecialResult {
String invoiceNo; String? invoiceNo;
String invoiceNoVP; String? invoiceNoVP;
String orderNo; String? orderNo;
String setupID; String? setupID;
String projectID; String? projectID;
int clinicID; int? clinicID;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
RequestPatientLabSpecialResult( RequestPatientLabSpecialResult(
{this.invoiceNo, {this.invoiceNo,

@ -1,33 +1,33 @@
class RequestSendLabReportEmail { class RequestSendLabReportEmail {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
String to; String? to;
String dateofBirth; String? dateofBirth;
String patientIditificationNum; String? patientIditificationNum;
String patientMobileNumber; String? patientMobileNumber;
String patientName; String? patientName;
String setupID; String? setupID;
String projectName; String? projectName;
String clinicName; String? clinicName;
String doctorName; String? doctorName;
String projectID; String? projectID;
String invoiceNo; String? invoiceNo;
String invoiceNoVP; String? invoiceNoVP;
String orderDate; String? orderDate;
String orderNo; String? orderNo;
bool isDownload; bool? isDownload;
int doctorID; int? doctorID;
RequestSendLabReportEmail( RequestSendLabReportEmail(
{this.versionID, {this.versionID,

@ -2,16 +2,16 @@ import 'package:diplomaticquarterapp/core/model/blooddonation/get_all_cities.dar
import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart'; import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
class AdvanceModel { class AdvanceModel {
String fileNumber; String? fileNumber;
String amount; String? amount;
HospitalsModel hospitalsModel; HospitalsModel? hospitalsModel;
String email; String? email;
String note; String? note;
String depositorName; String? depositorName;
String mobileNumber; String? mobileNumber;
String patientName; String? patientName;
int projectID; int? projectID;
CitiesModel citiessModel; CitiesModel? citiessModel;
AdvanceModel( AdvanceModel(
{this.amount, {this.amount,

@ -1,8 +1,8 @@
class PatientAdvanceBalanceAmount { class PatientAdvanceBalanceAmount {
num distanceInKilometers; num? distanceInKilometers;
dynamic patientAdvanceBalanceAmount; dynamic patientAdvanceBalanceAmount;
String projectDescription; String? projectDescription;
int projectID; int? projectID;
PatientAdvanceBalanceAmount( PatientAdvanceBalanceAmount(
{this.distanceInKilometers, {this.distanceInKilometers,

@ -1,9 +1,9 @@
class PatientInfo { class PatientInfo {
String fullName; String? fullName;
String mobileNumber; String? mobileNumber;
int patientID; int? patientID;
int projectID; int? projectID;
String zipCode; String? zipCode;
PatientInfo( PatientInfo(
{this.fullName, {this.fullName,

@ -1,10 +1,10 @@
class PatientInfoAndMobileNumber { class PatientInfoAndMobileNumber {
String setupID; String? setupID;
int projectID; int? projectID;
int mainAccountID; int? mainAccountID;
int patientType; int? patientType;
int patientID; int? patientID;
String firstName; String? firstName;
Null middleName; Null middleName;
Null lastName; Null lastName;
Null firstNameN; Null firstNameN;
@ -14,29 +14,29 @@ class PatientInfoAndMobileNumber {
Null dateofBirth; Null dateofBirth;
Null dateofBirthN; Null dateofBirthN;
Null nationalityID; Null nationalityID;
String mobileNumber; String? mobileNumber;
String emailAddress; String? emailAddress;
Null zipCode; Null zipCode;
PatientInfoAndMobileNumber( PatientInfoAndMobileNumber(
{this.setupID, {this.setupID,
this.projectID, this.projectID,
this.mainAccountID, this.mainAccountID,
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.gender, this.gender,
this.dateofBirth, this.dateofBirth,
this.dateofBirthN, this.dateofBirthN,
this.nationalityID, this.nationalityID,
this.mobileNumber, this.mobileNumber,
this.emailAddress, this.emailAddress,
this.zipCode}); this.zipCode});
PatientInfoAndMobileNumber.fromJson(Map<String, dynamic> json) { PatientInfoAndMobileNumber.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];

@ -1,30 +1,21 @@
class TamaraInstallmentDetails { class TamaraInstallmentDetails {
String name; String? name;
String description; String? description;
MinLimit minLimit; MinLimit? minLimit;
MinLimit maxLimit; MinLimit? maxLimit;
List<SupportedInstalments> supportedInstalments; List<SupportedInstalments>? supportedInstalments;
TamaraInstallmentDetails( TamaraInstallmentDetails({this.name, this.description, this.minLimit, this.maxLimit, this.supportedInstalments});
{this.name,
this.description,
this.minLimit,
this.maxLimit,
this.supportedInstalments});
TamaraInstallmentDetails.fromJson(Map<String, dynamic> json) { TamaraInstallmentDetails.fromJson(Map<String, dynamic> json) {
name = json['name']; name = json['name'];
description = json['description']; description = json['description'];
minLimit = json['minLimit'] != null minLimit = json['minLimit'] != null ? new MinLimit.fromJson(json['minLimit']) : null;
? new MinLimit.fromJson(json['minLimit']) maxLimit = json['maxLimit'] != null ? new MinLimit.fromJson(json['maxLimit']) : null;
: null;
maxLimit = json['maxLimit'] != null
? new MinLimit.fromJson(json['maxLimit'])
: null;
if (json['supportedInstalments'] != null) { if (json['supportedInstalments'] != null) {
supportedInstalments = <SupportedInstalments>[]; supportedInstalments = <SupportedInstalments>[];
json['supportedInstalments'].forEach((v) { json['supportedInstalments'].forEach((v) {
supportedInstalments.add(new SupportedInstalments.fromJson(v)); supportedInstalments!.add(new SupportedInstalments.fromJson(v));
}); });
} }
} }
@ -34,22 +25,21 @@ class TamaraInstallmentDetails {
data['name'] = this.name; data['name'] = this.name;
data['description'] = this.description; data['description'] = this.description;
if (this.minLimit != null) { if (this.minLimit != null) {
data['minLimit'] = this.minLimit.toJson(); data['minLimit'] = this.minLimit!.toJson();
} }
if (this.maxLimit != null) { if (this.maxLimit != null) {
data['maxLimit'] = this.maxLimit.toJson(); data['maxLimit'] = this.maxLimit!.toJson();
} }
if (this.supportedInstalments != null) { if (this.supportedInstalments != null) {
data['supportedInstalments'] = data['supportedInstalments'] = this.supportedInstalments!.map((v) => v.toJson()).toList();
this.supportedInstalments.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class MinLimit { class MinLimit {
String currency; String? currency;
int amount; int? amount;
MinLimit({this.currency, this.amount}); MinLimit({this.currency, this.amount});
@ -67,30 +57,26 @@ class MinLimit {
} }
class SupportedInstalments { class SupportedInstalments {
int instalments; int? instalments;
MinLimit minLimit; MinLimit? minLimit;
MinLimit maxLimit; MinLimit? maxLimit;
SupportedInstalments({this.instalments, this.minLimit, this.maxLimit}); SupportedInstalments({this.instalments, this.minLimit, this.maxLimit});
SupportedInstalments.fromJson(Map<String, dynamic> json) { SupportedInstalments.fromJson(Map<String, dynamic> json) {
instalments = json['instalments']; instalments = json['instalments'];
minLimit = json['minLimit'] != null minLimit = json['minLimit'] != null ? new MinLimit.fromJson(json['minLimit']) : null;
? new MinLimit.fromJson(json['minLimit']) maxLimit = json['maxLimit'] != null ? new MinLimit.fromJson(json['maxLimit']) : null;
: null;
maxLimit = json['maxLimit'] != null
? new MinLimit.fromJson(json['maxLimit'])
: null;
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['instalments'] = this.instalments; data['instalments'] = this.instalments;
if (this.minLimit != null) { if (this.minLimit != null) {
data['minLimit'] = this.minLimit.toJson(); data['minLimit'] = this.minLimit!.toJson();
} }
if (this.maxLimit != null) { if (this.maxLimit != null) {
data['maxLimit'] = this.maxLimit.toJson(); data['maxLimit'] = this.maxLimit!.toJson();
} }
return data; return data;
} }

@ -1,23 +1,23 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class BloodPressureResult { class BloodPressureResult {
int patientID; int? patientID;
int lineItemNo; int? lineItemNo;
DateTime bloodPressureDate; DateTime? bloodPressureDate;
int measuredArm; int? measuredArm;
int systolicePressure; int? systolicePressure;
int diastolicPressure; int? diastolicPressure;
dynamic remark; dynamic remark;
bool isActive; bool? isActive;
int chartYear; int? chartYear;
String chartMonth; String? chartMonth;
dynamic yearSystolicePressureAverageResult; dynamic yearSystolicePressureAverageResult;
dynamic monthSystolicePressureResult; dynamic monthSystolicePressureResult;
dynamic weekSystolicePressureResult; dynamic weekSystolicePressureResult;
int yearDiastolicPressureAverageResult; int? yearDiastolicPressureAverageResult;
dynamic monthDiastolicPressureResult; dynamic monthDiastolicPressureResult;
dynamic weekDiastolicPressureResult; dynamic weekDiastolicPressureResult;
String measuredArmDesc; String? measuredArmDesc;
dynamic weekDesc; dynamic weekDesc;
BloodPressureResult( BloodPressureResult(

@ -7,9 +7,9 @@ class MonthBloodPressureResultAverage {
dynamic weektwoDiastolicPressureAverageResult; dynamic weektwoDiastolicPressureAverageResult;
dynamic weekoneSystolicePressureAverageResult; dynamic weekoneSystolicePressureAverageResult;
dynamic weekoneDiastolicPressureAverageResult; dynamic weekoneDiastolicPressureAverageResult;
String weekDesc; String? weekDesc;
int weekDiastolicPressureAverageResult; int? weekDiastolicPressureAverageResult;
int weekSystolicePressureAverageResult; int? weekSystolicePressureAverageResult;
MonthBloodPressureResultAverage( MonthBloodPressureResultAverage(
{this.weekfourSystolicePressureAverageResult, {this.weekfourSystolicePressureAverageResult,

@ -1,9 +1,9 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class WeekBloodPressureResultAverage { class WeekBloodPressureResultAverage {
int dailySystolicePressureAverageResult; int? dailySystolicePressureAverageResult;
int dailyDiastolicPressureAverageResult; int? dailyDiastolicPressureAverageResult;
DateTime bloodPressureDate; DateTime? bloodPressureDate;
WeekBloodPressureResultAverage( WeekBloodPressureResultAverage(
{this.dailySystolicePressureAverageResult, {this.dailySystolicePressureAverageResult,

@ -1,12 +1,12 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class YearBloodPressureResultAverage { class YearBloodPressureResultAverage {
int monthSystolicePressureAverageResult; int? monthSystolicePressureAverageResult;
int monthDiastolicPressureAverageResult; int? monthDiastolicPressureAverageResult;
dynamic monthNumber; dynamic monthNumber;
String monthName; String? monthName;
String yearName; String? yearName;
DateTime date; DateTime? date;
YearBloodPressureResultAverage( YearBloodPressureResultAverage(
{this.monthSystolicePressureAverageResult, {this.monthSystolicePressureAverageResult,
@ -23,7 +23,7 @@ class YearBloodPressureResultAverage {
monthNumber = json['monthNumber']; monthNumber = json['monthNumber'];
monthName = json['monthName']; monthName = json['monthName'];
yearName = json['yearName']; yearName = json['yearName'];
date = DateUtil.getMonthDateTime(monthName,yearName); date = DateUtil.getMonthDateTime(monthName!,yearName);
} }

@ -1,26 +1,26 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class DiabtecPatientResult { class DiabtecPatientResult {
String chartMonth; String? chartMonth;
var chartYear; var chartYear;
DateTime dateChart; DateTime? dateChart;
var description; var description;
var descriptionN; var descriptionN;
int diabtecAvarage; int? diabtecAvarage;
bool isActive; bool? isActive;
int lineItemNo; int? lineItemNo;
var listMonth; var listMonth;
var listWeek; var listWeek;
int measured; int? measured;
String measuredDesc; String? measuredDesc;
var monthAverageResult; var monthAverageResult;
int patientID; int? patientID;
var remark; var remark;
var resultDesc; var resultDesc;
dynamic resultValue; dynamic resultValue;
String unit; String? unit;
var weekAverageResult; var weekAverageResult;
String weekDesc; String? weekDesc;
var yearAverageResult; var yearAverageResult;
DiabtecPatientResult( DiabtecPatientResult(
@ -74,7 +74,7 @@ class DiabtecPatientResult {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['ChartMonth'] = this.chartMonth; data['ChartMonth'] = this.chartMonth;
data['ChartYear'] = this.chartYear; data['ChartYear'] = this.chartYear;
data['DateChart'] = DateUtil.convertDateToString(this.dateChart); data['DateChart'] = DateUtil.convertDateToString(this.dateChart!);
data['Description'] = this.description; data['Description'] = this.description;
data['DescriptionN'] = this.descriptionN; data['DescriptionN'] = this.descriptionN;
data['DiabtecAvarage'] = this.diabtecAvarage; data['DiabtecAvarage'] = this.diabtecAvarage;

@ -4,7 +4,7 @@ class MonthDiabtectResultAverage {
var weektwoAverageResult; var weektwoAverageResult;
var weekoneAverageResult; var weekoneAverageResult;
dynamic weekAverageResult; dynamic weekAverageResult;
String weekDesc; String? weekDesc;
MonthDiabtectResultAverage( MonthDiabtectResultAverage(
{this.weekfourAverageResult, {this.weekfourAverageResult,

@ -2,7 +2,7 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class WeekDiabtectResultAverage { class WeekDiabtectResultAverage {
dynamic dailyAverageResult; dynamic dailyAverageResult;
DateTime dateChart; DateTime? dateChart;
WeekDiabtectResultAverage({this.dailyAverageResult, this.dateChart}); WeekDiabtectResultAverage({this.dailyAverageResult, this.dateChart});
@ -14,7 +14,7 @@ class WeekDiabtectResultAverage {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['DailyAverageResult'] = this.dailyAverageResult; data['DailyAverageResult'] = this.dailyAverageResult;
data['DateChart'] = DateUtil.convertDateToString(this.dateChart); data['DateChart'] = DateUtil.convertDateToString(this.dateChart!);
return data; return data;
} }
} }

@ -3,9 +3,9 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class YearDiabtecResultAverage { class YearDiabtecResultAverage {
dynamic monthAverageResult; dynamic monthAverageResult;
var monthNumber; var monthNumber;
String monthName; String? monthName;
String yearName; String? yearName;
DateTime date; DateTime? date;
YearDiabtecResultAverage( YearDiabtecResultAverage(
{this.monthAverageResult, {this.monthAverageResult,
@ -19,7 +19,7 @@ class YearDiabtecResultAverage {
monthNumber = json['monthNumber']; monthNumber = json['monthNumber'];
monthName = json['monthName']; monthName = json['monthName'];
yearName = json['yearName']; yearName = json['yearName'];
date = DateUtil.getMonthDateTime(monthName,yearName); date = DateUtil.getMonthDateTime(monthName!,yearName);
} catch (e) { } catch (e) {
print(e); print(e);
} }

@ -1,5 +1,5 @@
class WeekChartDate { class WeekChartDate {
final DateTime x; final DateTime? x;
final dynamic y; final dynamic y;
WeekChartDate({this.x, this.y}); WeekChartDate({this.x, this.y});

@ -4,7 +4,7 @@ class MonthWeightMeasurementResultAverage {
dynamic weektwoAverageResult; dynamic weektwoAverageResult;
dynamic weekoneAverageResult; dynamic weekoneAverageResult;
dynamic weekAverageResult; dynamic weekAverageResult;
String weekDesc; String? weekDesc;
MonthWeightMeasurementResultAverage( MonthWeightMeasurementResultAverage(
{this.weekfourAverageResult, {this.weekfourAverageResult,

@ -2,7 +2,7 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class WeekWeightMeasurementResultAverage { class WeekWeightMeasurementResultAverage {
dynamic dailyAverageResult; dynamic dailyAverageResult;
DateTime weightDate; DateTime? weightDate;
WeekWeightMeasurementResultAverage( WeekWeightMeasurementResultAverage(
{this.dailyAverageResult, this.weightDate}); {this.dailyAverageResult, this.weightDate});

@ -1,17 +1,17 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class WeightMeasurementResult { class WeightMeasurementResult {
int patientID; int? patientID;
int lineItemNo; int? lineItemNo;
int weightMeasured; int? weightMeasured;
DateTime weightDate; DateTime? weightDate;
dynamic remark; dynamic remark;
bool isActive; bool? isActive;
int measured; int? measured;
dynamic unit; dynamic unit;
int chartYear; int? chartYear;
dynamic chartMonth; dynamic chartMonth;
double yearAverageResult; double? yearAverageResult;
dynamic monthAverageResult; dynamic monthAverageResult;
dynamic weekAverageResult; dynamic weekAverageResult;
dynamic weekDesc; dynamic weekDesc;

@ -2,10 +2,10 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class YearWeightMeasurementResultAverage { class YearWeightMeasurementResultAverage {
dynamic monthAverageResult; dynamic monthAverageResult;
int monthNumber; int? monthNumber;
String monthName; String? monthName;
String yearName; String? yearName;
DateTime date; DateTime? date;
YearWeightMeasurementResultAverage( YearWeightMeasurementResultAverage(
{this.monthAverageResult, {this.monthAverageResult,
@ -18,7 +18,7 @@ class YearWeightMeasurementResultAverage {
monthNumber = json['monthNumber']; monthNumber = json['monthNumber'];
monthName = json['monthName']; monthName = json['monthName'];
yearName = json['yearName']; yearName = json['yearName'];
date = DateUtil.getMonthDateTime(monthName,yearName); date = DateUtil.getMonthDateTime(monthName!,yearName);
} }

@ -1,7 +1,7 @@
class GetNotificationsRequestModel { class GetNotificationsRequestModel {
int notificationStatusID; int? notificationStatusID;
int pagingSize; int? pagingSize;
int currentPage; int? currentPage;
GetNotificationsRequestModel( GetNotificationsRequestModel(
{this.notificationStatusID, this.pagingSize, this.currentPage}); {this.notificationStatusID, this.pagingSize, this.currentPage});

@ -1,25 +1,25 @@
class GetNotificationsResponseModel { class GetNotificationsResponseModel {
int id; int? id;
int recordId; int? recordId;
int patientID; int? patientID;
bool projectOutSA; bool? projectOutSA;
String deviceType; String? deviceType;
String deviceToken; String? deviceToken;
String message; String? message;
String messageType; String? messageType;
String messageTypeData; String? messageTypeData;
dynamic videoURL; dynamic videoURL;
bool isQueue; bool? isQueue;
String isQueueOn; String? isQueueOn;
String createdOn; String? createdOn;
String createdBy; String? createdBy;
String notificationType; String? notificationType;
bool isSent; bool? isSent;
String isSentOn; String? isSentOn;
bool isRead; bool? isRead;
String isReadOn; String? isReadOn;
int channelID; int? channelID;
int projectID; int? projectID;
GetNotificationsResponseModel( GetNotificationsResponseModel(
{this.id, {this.id,

@ -1,5 +1,5 @@
class MarkMessageAsReadRequestModel { class MarkMessageAsReadRequestModel {
int notificationPoolID; int? notificationPoolID;
MarkMessageAsReadRequestModel({this.notificationPoolID}); MarkMessageAsReadRequestModel({this.notificationPoolID});

@ -1,10 +1,10 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
class AddProductToCartRequestModel { class AddProductToCartRequestModel {
int quantity; int? quantity;
int product_id; int? product_id;
String shopping_cart_type; String? shopping_cart_type;
int customer_id; int? customer_id;
AddProductToCartRequestModel({@required this.product_id, this.customer_id, this.shopping_cart_type = "ShoppingCart", this.quantity = 1}); AddProductToCartRequestModel({@required this.product_id, this.customer_id, this.shopping_cart_type = "ShoppingCart", this.quantity = 1});
@ -21,6 +21,6 @@ class AddProductToCartRequestModel {
} }
class UpdateProductToCartRequestModel extends AddProductToCartRequestModel{ class UpdateProductToCartRequestModel extends AddProductToCartRequestModel{
UpdateProductToCartRequestModel({@required int product_id, @required int customer_id, String shopping_cart_type = "ShoppingCart", int quantity = 1}) UpdateProductToCartRequestModel({required int product_id, required int customer_id, String shopping_cart_type = "ShoppingCart", int quantity = 1})
: super(customer_id: customer_id, product_id: product_id, quantity: quantity, shopping_cart_type: shopping_cart_type); : super(customer_id: customer_id, product_id: product_id, quantity: quantity, shopping_cart_type: shopping_cart_type);
} }

@ -4,13 +4,13 @@ import 'package:flutter/cupertino.dart';
class PackagesCustomerRequestModel { class PackagesCustomerRequestModel {
String username; String? username;
String first_name; String? first_name;
String last_name; String? last_name;
String email; String? email;
String phone; String? phone;
String national_id; String? national_id;
String date_of_birth; String? date_of_birth;
PackagesCustomerRequestModel.fromUser(AuthenticatedUser user){ PackagesCustomerRequestModel.fromUser(AuthenticatedUser user){

@ -1,16 +1,16 @@
class OffersCategoriesRequestModel { class OffersCategoriesRequestModel {
final int limit; final int? limit;
final int page; final int? page;
final int sinceId; final int? sinceId;
OffersCategoriesRequestModel({this.limit, this.page, this.sinceId}); OffersCategoriesRequestModel({this.limit, this.page, this.sinceId});
Map<String, String> toFlatMap() { Map<String, String> toFlatMap() {
return { return {
if(limit != null && limit > 0) if(limit != null && limit! > 0)
"limit": limit.toString(), "limit": limit.toString(),
if(page != null && page > 0) if(page != null && page! > 0)
"page": page.toString(), "page": page.toString(),
}; };
} }

@ -1,25 +1,25 @@
class OffersProductsRequestModel { class OffersProductsRequestModel {
final int categoryId; final int? categoryId;
final int storeId; final int? storeId;
final int limit; final int? limit;
// final int page; // final int page;
int sinceId; int? sinceId;
OffersProductsRequestModel({this.categoryId, this.limit = 50, this.storeId}); OffersProductsRequestModel({this.categoryId, this.limit = 50, this.storeId});
Map<String, String> toFlatMap() { Map<String, String> toFlatMap() {
return { return {
if(limit != null && limit > 0) if(limit != null && limit! > 0)
"limit": limit.toString(), "limit": limit.toString(),
// if(page != null && page > 0) // if(page != null && page > 0)
// "page": page.toString(), // "page": page.toString(),
if(categoryId != null && categoryId > 0) if(categoryId != null && categoryId! > 0)
"categoryId": categoryId.toString(), "categoryId": categoryId.toString(),
if(storeId != null && storeId > 0) if(storeId != null && storeId! > 0)
"store_id": storeId.toString(), "store_id": storeId.toString(),
"sinceId": sinceId != null ? sinceId.toString() : "0", "sinceId": sinceId != null ? sinceId.toString() : "0",

@ -1,21 +1,21 @@
class OfferProjectsResponseModel { class OfferProjectsResponseModel {
OfferProjectsResponseModel({ OfferProjectsResponseModel({
this.project,}); this.project,});
OfferProjectsResponseModel.fromJson(dynamic json) { OfferProjectsResponseModel.fromJson(dynamic json) {
if (json['stores'] != null) { if (json['stores'] != null) {
project = []; project = [];
json['stores'].forEach((v) { json['stores'].forEach((v) {
project.add(OfferProject.fromJson(v)); project!.add(OfferProject.fromJson(v));
}); });
} }
} }
List<OfferProject> project; List<OfferProject>? project;
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final map = <String, dynamic>{}; final map = <String, dynamic>{};
if (project != null) { if (project != null) {
map['stores'] = project.map((v) => v.toJson()).toList(); map['stores'] = project!.map((v) => v.toJson()).toList();
} }
return map; return map;
} }
@ -31,8 +31,8 @@ class OfferProject {
name = json['name']; name = json['name'];
id = json['id']; id = json['id'];
} }
String name; String? name;
int id; int? id;
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final map = <String, dynamic>{}; final map = <String, dynamic>{};

Loading…
Cancel
Save