models updates -> 3.13.6

merge-update-with-lab-changes
devamirsaleemahmad 2 years ago
parent 971bab465c
commit b3587688b8

@ -60,7 +60,7 @@ class GAnalytics {
setUser(AuthenticatedUser user) async { setUser(AuthenticatedUser user) async {
try { try {
_analytics.setUserProperty(name: 'user_language', value: user.preferredLanguage == '1' ? 'arabic' : 'english'); _analytics.setUserProperty(name: 'user_language', value: user.preferredLanguage == '1' ? 'arabic' : 'english');
_analytics.setUserProperty(name: 'userid', value: Utils.generateMd5Hash(user.emailAddress)); _analytics.setUserProperty(name: 'userid', value: Utils.generateMd5Hash(user.emailAddress!));
_analytics.setUserProperty(name: 'login_status', value: user == null ? 'guest' : 'loggedin'); _analytics.setUserProperty(name: 'login_status', value: user == null ? 'guest' : 'loggedin');
if (await PermissionService.isLocationEnabled()) { if (await PermissionService.isLocationEnabled()) {
final location = await Geolocator.getCurrentPosition(); final location = await Geolocator.getCurrentPosition();

@ -15,26 +15,26 @@ class ClinicsServiceTimingsResponse {
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>();
if (this.patientERGetClinicsServiceTimingsList != null) { if (this.patientERGetClinicsServiceTimingsList != null) {
data['PatientER_GetClinicsServiceTimingsList'] = this.patientERGetClinicsServiceTimingsList.map((v) => v.toJson()).toList(); data['PatientER_GetClinicsServiceTimingsList'] = this.patientERGetClinicsServiceTimingsList!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class PatientERGetClinicsServiceTimingsList { class PatientERGetClinicsServiceTimingsList {
int iD; int? iD;
int serviceID; int? serviceID;
Null shiftID; Null shiftID;
int dayOfWeek; int? dayOfWeek;
String dayOfWeekStr; String? dayOfWeekStr;
Null startTime; Null startTime;
Null endTime; Null endTime;
bool isActive; bool? isActive;
String createdOn; String? createdOn;
String createdBy; String? createdBy;
bool projectOutSA; bool? projectOutSA;
String dayOfWeekStrN; String? dayOfWeekStrN;
List<ShiftTimings> shiftTimings; List<ShiftTimings>? shiftTimings;
PatientERGetClinicsServiceTimingsList( PatientERGetClinicsServiceTimingsList(
{this.iD, {this.iD,
@ -65,9 +65,9 @@ class PatientERGetClinicsServiceTimingsList {
projectOutSA = json['ProjectOutSA']; projectOutSA = json['ProjectOutSA'];
dayOfWeekStrN = json['DayOfWeekStrN']; dayOfWeekStrN = json['DayOfWeekStrN'];
if (json['ShiftTimings'] != null) { if (json['ShiftTimings'] != null) {
shiftTimings = new List<ShiftTimings>(); shiftTimings = [];
json['ShiftTimings'].forEach((v) { json['ShiftTimings'].forEach((v) {
shiftTimings.add(new ShiftTimings.fromJson(v)); shiftTimings!.add(new ShiftTimings.fromJson(v));
}); });
} }
} }
@ -87,16 +87,16 @@ class PatientERGetClinicsServiceTimingsList {
data['ProjectOutSA'] = this.projectOutSA; data['ProjectOutSA'] = this.projectOutSA;
data['DayOfWeekStrN'] = this.dayOfWeekStrN; data['DayOfWeekStrN'] = this.dayOfWeekStrN;
if (this.shiftTimings != null) { if (this.shiftTimings != null) {
data['ShiftTimings'] = this.shiftTimings.map((v) => v.toJson()).toList(); data['ShiftTimings'] = this.shiftTimings!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class ShiftTimings { class ShiftTimings {
String endTime; String? endTime;
int shiftID; int? shiftID;
String startTime; String? startTime;
ShiftTimings({this.endTime, this.shiftID, this.startTime}); ShiftTimings({this.endTime, this.shiftID, this.startTime});

@ -1,5 +1,5 @@
class ERAppointmentFeesResponse { class ERAppointmentFeesResponse {
GetERAppointmentFeesList getERAppointmentFeesList; GetERAppointmentFeesList? getERAppointmentFeesList;
ERAppointmentFeesResponse({this.getERAppointmentFeesList}); ERAppointmentFeesResponse({this.getERAppointmentFeesList});
@ -13,20 +13,20 @@ class ERAppointmentFeesResponse {
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>();
if (this.getERAppointmentFeesList != null) { if (this.getERAppointmentFeesList != null) {
data['GetERAppointmentFeesList'] = this.getERAppointmentFeesList.toJson(); data['GetERAppointmentFeesList'] = this.getERAppointmentFeesList!.toJson();
} }
return data; return data;
} }
} }
class GetERAppointmentFeesList { class GetERAppointmentFeesList {
String amount; String? amount;
String companyName; String? companyName;
bool isInsured; bool? isInsured;
bool isShowInsuranceUpdateModule; bool? isShowInsuranceUpdateModule;
String tax; String? tax;
String total; String? total;
String currency; String? currency;
GetERAppointmentFeesList( GetERAppointmentFeesList(
{this.amount, {this.amount,

@ -1,32 +1,32 @@
class IncomingCallData { class IncomingCallData {
String callerID; String? callerID;
String receiverID; String? receiverID;
String msgID; String? msgID;
String notfID; String? notfID;
String notificationForeground; String? notificationForeground;
String count; String? count;
String message; String? message;
String appointmentNo; String? appointmentNo;
String title; String? title;
String projectID; String? projectID;
String notificationType; String? notificationType;
String background; String? background;
String doctorname; String? doctorname;
String clinicname; String? clinicname;
String speciality; String? speciality;
String appointmentdate; String? appointmentdate;
String appointmenttime; String? appointmenttime;
String type; String? type;
String sessionId; String? sessionId;
String identity; String? identity;
String name; String? name;
String videoUrl; String? videoUrl;
String picture; String? picture;
String token; String? token;
String isCall; String? isCall;
String sound; String? sound;
String server; String? server;
String isWebRTC; String? isWebRTC;
IncomingCallData( IncomingCallData(
{this.msgID, {this.msgID,

@ -1,13 +1,13 @@
class LiveCareClinicsListResponse { class LiveCareClinicsListResponse {
List<PatientERGetClinicsList> patientERGetClinicsList; List<PatientERGetClinicsList>? patientERGetClinicsList;
LiveCareClinicsListResponse({this.patientERGetClinicsList}); LiveCareClinicsListResponse({this.patientERGetClinicsList});
LiveCareClinicsListResponse.fromJson(Map<String, dynamic> json) { LiveCareClinicsListResponse.fromJson(Map<String, dynamic> json) {
if (json['PatientER_GetClinicsList'] != null) { if (json['PatientER_GetClinicsList'] != null) {
patientERGetClinicsList = new List<PatientERGetClinicsList>(); patientERGetClinicsList = [];
json['PatientER_GetClinicsList'].forEach((v) { json['PatientER_GetClinicsList'].forEach((v) {
patientERGetClinicsList.add(new PatientERGetClinicsList.fromJson(v)); patientERGetClinicsList!.add(new PatientERGetClinicsList.fromJson(v));
}); });
} }
} }
@ -15,48 +15,47 @@ class LiveCareClinicsListResponse {
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>();
if (this.patientERGetClinicsList != null) { if (this.patientERGetClinicsList != null) {
data['PatientER_GetClinicsList'] = data['PatientER_GetClinicsList'] = this.patientERGetClinicsList!.map((v) => v.toJson()).toList();
this.patientERGetClinicsList.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class PatientERGetClinicsList { class PatientERGetClinicsList {
int iD; int? iD;
int serviceID; int? serviceID;
String serviceName; String? serviceName;
String serviceNameN; String? serviceNameN;
int clinicID; int? clinicID;
int age; int? age;
bool isCheckAgeBelow; bool? isCheckAgeBelow;
int gender; int? gender;
bool isActive; bool? isActive;
String createdOn; String? createdOn;
String createdBy; String? createdBy;
int isOnline; int? isOnline;
dynamic endTime; dynamic endTime;
bool projectOutSA; bool? projectOutSA;
List<ShiftTimings> shiftTimings; List<ShiftTimings>? shiftTimings;
dynamic startTime; dynamic startTime;
PatientERGetClinicsList( PatientERGetClinicsList(
{this.iD, {this.iD,
this.serviceID, this.serviceID,
this.serviceName, this.serviceName,
this.serviceNameN, this.serviceNameN,
this.clinicID, this.clinicID,
this.age, this.age,
this.isCheckAgeBelow, this.isCheckAgeBelow,
this.gender, this.gender,
this.isActive, this.isActive,
this.createdOn, this.createdOn,
this.createdBy, this.createdBy,
this.isOnline, this.isOnline,
this.endTime, this.endTime,
this.projectOutSA, this.projectOutSA,
this.shiftTimings, this.shiftTimings,
this.startTime}); this.startTime});
PatientERGetClinicsList.fromJson(Map<String, dynamic> json) { PatientERGetClinicsList.fromJson(Map<String, dynamic> json) {
iD = json['ID']; iD = json['ID'];
@ -74,9 +73,9 @@ class PatientERGetClinicsList {
endTime = json['EndTime']; endTime = json['EndTime'];
projectOutSA = json['ProjectOutSA']; projectOutSA = json['ProjectOutSA'];
if (json['ShiftTimings'] != null) { if (json['ShiftTimings'] != null) {
shiftTimings = new List<ShiftTimings>(); shiftTimings = [];
json['ShiftTimings'].forEach((v) { json['ShiftTimings'].forEach((v) {
shiftTimings.add(new ShiftTimings.fromJson(v)); shiftTimings!.add(new ShiftTimings.fromJson(v));
}); });
} }
startTime = json['StartTime']; startTime = json['StartTime'];
@ -99,7 +98,7 @@ class PatientERGetClinicsList {
data['EndTime'] = this.endTime; data['EndTime'] = this.endTime;
data['ProjectOutSA'] = this.projectOutSA; data['ProjectOutSA'] = this.projectOutSA;
if (this.shiftTimings != null) { if (this.shiftTimings != null) {
data['ShiftTimings'] = this.shiftTimings.map((v) => v.toJson()).toList(); data['ShiftTimings'] = this.shiftTimings!.map((v) => v.toJson()).toList();
} }
data['StartTime'] = this.startTime; data['StartTime'] = this.startTime;
return data; return data;
@ -107,9 +106,9 @@ class PatientERGetClinicsList {
} }
class ShiftTimings { class ShiftTimings {
String endTime; String? endTime;
int shiftID; int? shiftID;
String startTime; String? startTime;
ShiftTimings({this.endTime, this.shiftID, this.startTime}); ShiftTimings({this.endTime, this.shiftID, this.startTime});

@ -1,13 +1,13 @@
class LiveCareScheduleClinicsListResponse { class LiveCareScheduleClinicsListResponse {
List<ClinicsHaveScheduleList> clinicsHaveScheduleList; List<ClinicsHaveScheduleList>? clinicsHaveScheduleList;
LiveCareScheduleClinicsListResponse({this.clinicsHaveScheduleList}); LiveCareScheduleClinicsListResponse({this.clinicsHaveScheduleList});
LiveCareScheduleClinicsListResponse.fromJson(Map<String, dynamic> json) { LiveCareScheduleClinicsListResponse.fromJson(Map<String, dynamic> json) {
if (json['ClinicsHaveScheduleList'] != null) { if (json['ClinicsHaveScheduleList'] != null) {
clinicsHaveScheduleList = new List<ClinicsHaveScheduleList>(); clinicsHaveScheduleList = [];
json['ClinicsHaveScheduleList'].forEach((v) { json['ClinicsHaveScheduleList'].forEach((v) {
clinicsHaveScheduleList.add(new ClinicsHaveScheduleList.fromJson(v)); clinicsHaveScheduleList!.add(new ClinicsHaveScheduleList.fromJson(v));
}); });
} }
} }
@ -16,20 +16,20 @@ class LiveCareScheduleClinicsListResponse {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.clinicsHaveScheduleList != null) { if (this.clinicsHaveScheduleList != null) {
data['ClinicsHaveScheduleList'] = data['ClinicsHaveScheduleList'] =
this.clinicsHaveScheduleList.map((v) => v.toJson()).toList(); this.clinicsHaveScheduleList!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class ClinicsHaveScheduleList { class ClinicsHaveScheduleList {
int clinicID; int? clinicID;
int serviceID; int? serviceID;
int projectID; int? projectID;
String clinicDesc; String? clinicDesc;
String clinicDescN; String? clinicDescN;
String projectDesc; String? projectDesc;
String projectDescN; String? projectDescN;
ClinicsHaveScheduleList( ClinicsHaveScheduleList(
{this.clinicID, {this.clinicID,

@ -1,24 +1,24 @@
class insertVIDARequest { class insertVIDARequest {
int patientID; int? patientID;
int acceptedBy; int? acceptedBy;
int appointmentNo; int? appointmentNo;
String deviceToken; String? deviceToken;
double latitude; double? latitude;
double longitude; double? longitude;
int serviceID; int? serviceID;
int projectID; int? projectID;
int clinicID; int? clinicID;
String deviceType; String? deviceType;
String voipToken; String? voipToken;
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;
insertVIDARequest( insertVIDARequest(
{this.patientID, {this.patientID,

@ -2,11 +2,11 @@ import 'package:diplomaticquarterapp/models/LiveCare/room_validators.dart';
import 'package:diplomaticquarterapp/models/LiveCare/twilio_enums.dart'; import 'package:diplomaticquarterapp/models/LiveCare/twilio_enums.dart';
class RoomModel with RoomValidators { class RoomModel with RoomValidators {
final String name; final String? name;
final bool isLoading; final bool? isLoading;
final bool isSubmitted; final bool isSubmitted;
final String token; final String? token;
final String identity; final String? identity;
final TwilioRoomType type; final TwilioRoomType type;
RoomModel({ RoomModel({
@ -34,7 +34,7 @@ class RoomModel with RoomValidators {
} }
String get nameErrorText { String get nameErrorText {
return isSubmitted && !nameValidator.isValid(name) ? invalidNameErrorText : null; return isSubmitted && !nameValidator.isValid(name!) ? invalidNameErrorText : "";
} }
String get typeText { String get typeText {
@ -42,16 +42,16 @@ class RoomModel with RoomValidators {
} }
bool get canSubmit { bool get canSubmit {
return nameValidator.isValid(name); return nameValidator.isValid(name!);
} }
RoomModel copyWith({ RoomModel copyWith({
String name, String? name,
bool isLoading, bool? isLoading,
bool isSubmitted, bool? isSubmitted,
String token, String? token,
String identity, String? identity,
TwilioRoomType type, TwilioRoomType? type,
}) { }) {
return RoomModel( return RoomModel(
name: name ?? this.name, name: name ?? this.name,

@ -1,13 +1,13 @@
class DentalInvoiceDetailResponse { class DentalInvoiceDetailResponse {
List<ListEInvoiceForDental> listEInvoiceForDental; List<ListEInvoiceForDental>? listEInvoiceForDental;
DentalInvoiceDetailResponse({this.listEInvoiceForDental}); DentalInvoiceDetailResponse({this.listEInvoiceForDental});
DentalInvoiceDetailResponse.fromJson(Map<String, dynamic> json) { DentalInvoiceDetailResponse.fromJson(Map<String, dynamic> json) {
if (json['List_eInvoiceForDental'] != null) { if (json['List_eInvoiceForDental'] != null) {
listEInvoiceForDental = new List<ListEInvoiceForDental>(); listEInvoiceForDental = [];
json['List_eInvoiceForDental'].forEach((v) { json['List_eInvoiceForDental'].forEach((v) {
listEInvoiceForDental.add(new ListEInvoiceForDental.fromJson(v)); listEInvoiceForDental!.add(new ListEInvoiceForDental.fromJson(v));
}); });
} }
} }
@ -15,23 +15,22 @@ class DentalInvoiceDetailResponse {
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>();
if (this.listEInvoiceForDental != null) { if (this.listEInvoiceForDental != null) {
data['List_eInvoiceForDental'] = data['List_eInvoiceForDental'] = this.listEInvoiceForDental!.map((v) => v.toJson()).toList();
this.listEInvoiceForDental.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class ListEInvoiceForDental { class ListEInvoiceForDental {
int projectID; int? projectID;
int doctorID; int? doctorID;
dynamic grandTotal; dynamic grandTotal;
dynamic quantity; dynamic quantity;
dynamic total; dynamic total;
dynamic discount; dynamic discount;
dynamic subTotal; dynamic subTotal;
int invoiceNo; int? invoiceNo;
String createdOn; String? createdOn;
dynamic procedureID; dynamic procedureID;
dynamic procedureName; dynamic procedureName;
dynamic procedureNameN; dynamic procedureNameN;
@ -47,94 +46,94 @@ class ListEInvoiceForDental {
dynamic companyVATAmount; dynamic companyVATAmount;
dynamic totalVATAmount; dynamic totalVATAmount;
dynamic price; dynamic price;
int patientID; int? patientID;
String patientName; String? patientName;
dynamic patientNameN; dynamic patientNameN;
String nationalityID; String? nationalityID;
String doctorName; String? doctorName;
dynamic doctorNameN; dynamic doctorNameN;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
dynamic clinicDescriptionN; dynamic clinicDescriptionN;
String appointmentDate; String? appointmentDate;
int appointmentNo; int? appointmentNo;
String insuranceID; String? insuranceID;
int companyID; int? companyID;
String companyName; String? companyName;
dynamic companyNameN; dynamic companyNameN;
String companyAddress; String? companyAddress;
dynamic companyAddressN; dynamic companyAddressN;
String companyGroupAddress; String? companyGroupAddress;
String groupName; String? groupName;
dynamic groupNameN; dynamic groupNameN;
String patientAddress; String? patientAddress;
String vATNo; String? vATNo;
String paymentDate; String? paymentDate;
String projectName; String? projectName;
dynamic totalDiscount; dynamic totalDiscount;
dynamic totalPatientShareWithQuantity; dynamic totalPatientShareWithQuantity;
String legalName; String? legalName;
dynamic legalNameN; dynamic legalNameN;
dynamic advanceAdjustment; dynamic advanceAdjustment;
String doctorImageURL; String? doctorImageURL;
List<ListConsultation> listConsultation; List<ListConsultation>? listConsultation;
ListEInvoiceForDental( ListEInvoiceForDental(
{this.projectID, {this.projectID,
this.doctorID, this.doctorID,
this.grandTotal, this.grandTotal,
this.quantity, this.quantity,
this.total, this.total,
this.discount, this.discount,
this.subTotal, this.subTotal,
this.invoiceNo, this.invoiceNo,
this.createdOn, this.createdOn,
this.procedureID, this.procedureID,
this.procedureName, this.procedureName,
this.procedureNameN, this.procedureNameN,
this.procedurePrice, this.procedurePrice,
this.patientShare, this.patientShare,
this.companyShare, this.companyShare,
this.totalPatientShare, this.totalPatientShare,
this.totalCompanyShare, this.totalCompanyShare,
this.totalShare, this.totalShare,
this.discountAmount, this.discountAmount,
this.vATPercentage, this.vATPercentage,
this.patientVATAmount, this.patientVATAmount,
this.companyVATAmount, this.companyVATAmount,
this.totalVATAmount, this.totalVATAmount,
this.price, this.price,
this.patientID, this.patientID,
this.patientName, this.patientName,
this.patientNameN, this.patientNameN,
this.nationalityID, this.nationalityID,
this.doctorName, this.doctorName,
this.doctorNameN, this.doctorNameN,
this.clinicID, this.clinicID,
this.clinicDescription, this.clinicDescription,
this.clinicDescriptionN, this.clinicDescriptionN,
this.appointmentDate, this.appointmentDate,
this.appointmentNo, this.appointmentNo,
this.insuranceID, this.insuranceID,
this.companyID, this.companyID,
this.companyName, this.companyName,
this.companyNameN, this.companyNameN,
this.companyAddress, this.companyAddress,
this.companyAddressN, this.companyAddressN,
this.companyGroupAddress, this.companyGroupAddress,
this.groupName, this.groupName,
this.groupNameN, this.groupNameN,
this.patientAddress, this.patientAddress,
this.vATNo, this.vATNo,
this.paymentDate, this.paymentDate,
this.projectName, this.projectName,
this.totalDiscount, this.totalDiscount,
this.totalPatientShareWithQuantity, this.totalPatientShareWithQuantity,
this.legalName, this.legalName,
this.legalNameN, this.legalNameN,
this.advanceAdjustment, this.advanceAdjustment,
this.doctorImageURL, this.doctorImageURL,
this.listConsultation}); this.listConsultation});
ListEInvoiceForDental.fromJson(Map<String, dynamic> json) { ListEInvoiceForDental.fromJson(Map<String, dynamic> json) {
projectID = json['ProjectID']; projectID = json['ProjectID'];
@ -192,9 +191,9 @@ class ListEInvoiceForDental {
advanceAdjustment = json['AdvanceAdjustment']; advanceAdjustment = json['AdvanceAdjustment'];
doctorImageURL = json['DoctorImageURL']; doctorImageURL = json['DoctorImageURL'];
if (json['listConsultation'] != null) { if (json['listConsultation'] != null) {
listConsultation = new List<ListConsultation>(); listConsultation =[];
json['listConsultation'].forEach((v) { json['listConsultation'].forEach((v) {
listConsultation.add(new ListConsultation.fromJson(v)); listConsultation!.add(new ListConsultation.fromJson(v));
}); });
} }
} }
@ -256,8 +255,7 @@ class ListEInvoiceForDental {
data['AdvanceAdjustment'] = this.advanceAdjustment; data['AdvanceAdjustment'] = this.advanceAdjustment;
data['DoctorImageURL'] = this.doctorImageURL; data['DoctorImageURL'] = this.doctorImageURL;
if (this.listConsultation != null) { if (this.listConsultation != null) {
data['listConsultation'] = data['listConsultation'] = this.listConsultation!.map((v) => v.toJson()).toList();
this.listConsultation.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
@ -273,8 +271,8 @@ class ListConsultation {
dynamic subTotal; dynamic subTotal;
dynamic invoiceNo; dynamic invoiceNo;
dynamic createdOn; dynamic createdOn;
String procedureID; String? procedureID;
String procedureName; String? procedureName;
dynamic procedureNameN; dynamic procedureNameN;
dynamic procedurePrice; dynamic procedurePrice;
dynamic patientShare; dynamic patientShare;
@ -309,7 +307,7 @@ class ListConsultation {
dynamic groupName; dynamic groupName;
dynamic groupNameN; dynamic groupNameN;
dynamic patientAddress; dynamic patientAddress;
String vATNo; String? vATNo;
dynamic paymentDate; dynamic paymentDate;
dynamic projectName; dynamic projectName;
dynamic totalDiscount; dynamic totalDiscount;
@ -320,58 +318,58 @@ class ListConsultation {
ListConsultation( ListConsultation(
{this.projectID, {this.projectID,
this.doctorID, this.doctorID,
this.grandTotal, this.grandTotal,
this.quantity, this.quantity,
this.total, this.total,
this.discount, this.discount,
this.subTotal, this.subTotal,
this.invoiceNo, this.invoiceNo,
this.createdOn, this.createdOn,
this.procedureID, this.procedureID,
this.procedureName, this.procedureName,
this.procedureNameN, this.procedureNameN,
this.procedurePrice, this.procedurePrice,
this.patientShare, this.patientShare,
this.companyShare, this.companyShare,
this.totalPatientShare, this.totalPatientShare,
this.totalCompanyShare, this.totalCompanyShare,
this.totalShare, this.totalShare,
this.discountAmount, this.discountAmount,
this.vATPercentage, this.vATPercentage,
this.patientVATAmount, this.patientVATAmount,
this.companyVATAmount, this.companyVATAmount,
this.totalVATAmount, this.totalVATAmount,
this.price, this.price,
this.patientID, this.patientID,
this.patientName, this.patientName,
this.patientNameN, this.patientNameN,
this.nationalityID, this.nationalityID,
this.doctorName, this.doctorName,
this.doctorNameN, this.doctorNameN,
this.clinicID, this.clinicID,
this.clinicDescription, this.clinicDescription,
this.clinicDescriptionN, this.clinicDescriptionN,
this.appointmentDate, this.appointmentDate,
this.appointmentNo, this.appointmentNo,
this.insuranceID, this.insuranceID,
this.companyID, this.companyID,
this.companyName, this.companyName,
this.companyNameN, this.companyNameN,
this.companyAddress, this.companyAddress,
this.companyAddressN, this.companyAddressN,
this.companyGroupAddress, this.companyGroupAddress,
this.groupName, this.groupName,
this.groupNameN, this.groupNameN,
this.patientAddress, this.patientAddress,
this.vATNo, this.vATNo,
this.paymentDate, this.paymentDate,
this.projectName, this.projectName,
this.totalDiscount, this.totalDiscount,
this.totalPatientShareWithQuantity, this.totalPatientShareWithQuantity,
this.legalName, this.legalName,
this.legalNameN, this.legalNameN,
this.advanceAdjustment}); this.advanceAdjustment});
ListConsultation.fromJson(Map<String, dynamic> json) { ListConsultation.fromJson(Map<String, dynamic> json) {
projectID = json['ProjectID']; projectID = json['ProjectID'];

@ -1,13 +1,13 @@
class GetDentalAppointmentsResponse { class GetDentalAppointmentsResponse {
List<ListDentalAppointments> listDentalAppointments; List<ListDentalAppointments>? listDentalAppointments;
GetDentalAppointmentsResponse({this.listDentalAppointments}); GetDentalAppointmentsResponse({this.listDentalAppointments});
GetDentalAppointmentsResponse.fromJson(Map<String, dynamic> json) { GetDentalAppointmentsResponse.fromJson(Map<String, dynamic> json) {
if (json['List_DentalAppointments'] != null) { if (json['List_DentalAppointments'] != null) {
listDentalAppointments = new List<ListDentalAppointments>(); listDentalAppointments = [];
json['List_DentalAppointments'].forEach((v) { json['List_DentalAppointments'].forEach((v) {
listDentalAppointments.add(new ListDentalAppointments.fromJson(v)); listDentalAppointments!.add(new ListDentalAppointments.fromJson(v));
}); });
} }
} }
@ -16,32 +16,32 @@ class GetDentalAppointmentsResponse {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.listDentalAppointments != null) { if (this.listDentalAppointments != null) {
data['List_DentalAppointments'] = data['List_DentalAppointments'] =
this.listDentalAppointments.map((v) => v.toJson()).toList(); this.listDentalAppointments!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class ListDentalAppointments { class ListDentalAppointments {
String setupId; String? setupId;
int projectID; int? projectID;
int patientID; int? patientID;
int appointmentNo; int? appointmentNo;
String appointmentDate; String? appointmentDate;
dynamic appointmentDateN; dynamic appointmentDateN;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
int invoiceNo; int? invoiceNo;
int status; int? status;
String arrivedOn; String? arrivedOn;
dynamic doctorName; dynamic doctorName;
String doctorNameN; String? doctorNameN;
String clinicName; String? clinicName;
dynamic decimalDoctorRate; dynamic decimalDoctorRate;
String doctorImageURL; String? doctorImageURL;
dynamic doctorRate; dynamic doctorRate;
int patientNumber; int? patientNumber;
String projectName; String? projectName;
ListDentalAppointments( ListDentalAppointments(
{this.setupId, {this.setupId,

@ -19,13 +19,13 @@ class ShoppingCart {
this.shoppingCarts, this.shoppingCarts,
}); });
int itemCount; int? itemCount;
int quantityCount; int? quantityCount;
double subtotal; double? subtotal;
double subtotalWithVat; double? subtotalWithVat;
double subtotalVatAmount; double? subtotalVatAmount;
int subtotalVatRate; int? subtotalVatRate;
List<ShoppingCartElement> shoppingCarts; List<ShoppingCartElement>? shoppingCarts;
factory ShoppingCart.fromJson(Map<String, dynamic> json) => ShoppingCart( factory ShoppingCart.fromJson(Map<String, dynamic> json) => ShoppingCart(
itemCount: json["item_count"], itemCount: json["item_count"],
@ -73,27 +73,27 @@ class ShoppingCartElement {
this.customer, this.customer,
}); });
int languageId; int? languageId;
String id; String ?id;
List<dynamic> productAttributes; List<dynamic>? productAttributes;
int customerEnteredPrice; int? customerEnteredPrice;
int quantity; int? quantity;
dynamic discountAmountInclTax; dynamic discountAmountInclTax;
String subtotal; String? subtotal;
String subtotalWithVat; String? subtotalWithVat;
String subtotalVatAmount; String? subtotalVatAmount;
String subtotalVatRate; String? subtotalVatRate;
String currency; String? currency;
String currencyn; String? currencyn;
dynamic rentalStartDateUtc; dynamic rentalStartDateUtc;
dynamic rentalEndDateUtc; dynamic rentalEndDateUtc;
DateTime createdOnUtc; DateTime? createdOnUtc;
DateTime updatedOnUtc; DateTime? updatedOnUtc;
String shoppingCartType; String? shoppingCartType;
int productId; int? productId;
Product product; Product? product;
int customerId; int? customerId;
Customer customer; Customer? customer;
factory ShoppingCartElement.fromJson(Map<String, dynamic> json) => ShoppingCartElement( factory ShoppingCartElement.fromJson(Map<String, dynamic> json) => ShoppingCartElement(
languageId: json["language_id"], languageId: json["language_id"],
@ -122,7 +122,7 @@ class ShoppingCartElement {
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
"language_id": languageId, "language_id": languageId,
"id": id, "id": id,
"product_attributes": List<dynamic>.from(productAttributes.map((x) => x)), "product_attributes": List<dynamic>.from(productAttributes!.map((x) => x)),
"customer_entered_price": customerEnteredPrice, "customer_entered_price": customerEnteredPrice,
"quantity": quantity, "quantity": quantity,
"discount_amount_incl_tax": discountAmountInclTax, "discount_amount_incl_tax": discountAmountInclTax,
@ -134,13 +134,13 @@ class ShoppingCartElement {
"currencyn": currencyn, "currencyn": currencyn,
"rental_start_date_utc": rentalStartDateUtc, "rental_start_date_utc": rentalStartDateUtc,
"rental_end_date_utc": rentalEndDateUtc, "rental_end_date_utc": rentalEndDateUtc,
"created_on_utc": createdOnUtc.toIso8601String(), "created_on_utc": createdOnUtc!.toIso8601String(),
"updated_on_utc": updatedOnUtc.toIso8601String(), "updated_on_utc": updatedOnUtc!.toIso8601String(),
"shopping_cart_type": shoppingCartType, "shopping_cart_type": shoppingCartType,
"product_id": productId, "product_id": productId,
"product": product.toJson(), "product": product!.toJson(),
"customer_id": customerId, "customer_id": customerId,
"customer": customer.toJson(), "customer": customer!.toJson(),
}; };
} }
@ -170,28 +170,28 @@ class Customer {
this.roleIds, this.roleIds,
}); });
Address billingAddress; Address? billingAddress;
Address shippingAddress; Address? shippingAddress;
List<Address> addresses; List<Address>? addresses;
String id; String? id;
String username; String? username;
String email; String? email;
dynamic firstName; dynamic firstName;
dynamic lastName; dynamic lastName;
dynamic languageId; dynamic languageId;
dynamic adminComment; dynamic adminComment;
bool isTaxExempt; bool? isTaxExempt;
bool hasShoppingCartItems; bool? hasShoppingCartItems;
bool active; bool? active;
bool deleted; bool? deleted;
bool isSystemAccount; bool? isSystemAccount;
dynamic systemName; dynamic systemName;
String lastIpAddress; String?lastIpAddress;
DateTime createdOnUtc; DateTime? createdOnUtc;
DateTime lastLoginDateUtc; DateTime? lastLoginDateUtc;
DateTime lastActivityDateUtc; DateTime? lastActivityDateUtc;
int registeredInStoreId; int? registeredInStoreId;
List<dynamic> roleIds; List<dynamic>? roleIds;
factory Customer.fromJson(Map<String, dynamic> json) => Customer( factory Customer.fromJson(Map<String, dynamic> json) => Customer(
billingAddress: Address.fromJson(json["billing_address"]), billingAddress: Address.fromJson(json["billing_address"]),
@ -219,9 +219,9 @@ class Customer {
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
"billing_address": billingAddress.toJson(), "billing_address": billingAddress!.toJson(),
"shipping_address": shippingAddress.toJson(), "shipping_address": shippingAddress!.toJson(),
"addresses": List<dynamic>.from(addresses.map((x) => x.toJson())), "addresses": List<dynamic>.from(addresses!.map((x) => x.toJson())),
"id": id, "id": id,
"username": username, "username": username,
"email": email, "email": email,
@ -236,11 +236,11 @@ class Customer {
"is_system_account": isSystemAccount, "is_system_account": isSystemAccount,
"system_name": systemName, "system_name": systemName,
"last_ip_address": lastIpAddress, "last_ip_address": lastIpAddress,
"created_on_utc": createdOnUtc.toIso8601String(), "created_on_utc": createdOnUtc!.toIso8601String(),
"last_login_date_utc": lastLoginDateUtc.toIso8601String(), "last_login_date_utc": lastLoginDateUtc!.toIso8601String(),
"last_activity_date_utc": lastActivityDateUtc.toIso8601String(), "last_activity_date_utc": lastActivityDateUtc!.toIso8601String(),
"registered_in_store_id": registeredInStoreId, "registered_in_store_id": registeredInStoreId,
"role_ids": List<dynamic>.from(roleIds.map((x) => x)), "role_ids": List<dynamic>.from(roleIds!.map((x) => x)),
}; };
} }
@ -266,24 +266,24 @@ class Address {
this.latLong, this.latLong,
}); });
String id; String? id;
FirstName firstName; FirstName? firstName;
LastName lastName; LastName? lastName;
Email email; Email? email;
dynamic company; dynamic company;
int countryId; int? countryId;
Country country; Country? country;
dynamic stateProvinceId; dynamic stateProvinceId;
City city; City? city;
String address1; String? address1;
String address2; String? address2;
String zipPostalCode; String? zipPostalCode;
String phoneNumber; String? phoneNumber;
dynamic faxNumber; dynamic faxNumber;
String customerAttributes; String? customerAttributes;
DateTime createdOnUtc; DateTime? createdOnUtc;
dynamic province; dynamic province;
String latLong; String? latLong;
factory Address.fromJson(Map<String, dynamic> json) => Address( factory Address.fromJson(Map<String, dynamic> json) => Address(
id: json["id"], id: json["id"],
@ -322,7 +322,7 @@ class Address {
"phone_number": phoneNumber, "phone_number": phoneNumber,
"fax_number": faxNumber, "fax_number": faxNumber,
"customer_attributes": customerAttributes, "customer_attributes": customerAttributes,
"created_on_utc": createdOnUtc.toIso8601String(), "created_on_utc": createdOnUtc!.toIso8601String(),
"province": province, "province": province,
"lat_long": latLong, "lat_long": latLong,
}; };
@ -480,117 +480,117 @@ class Product {
this.seName, this.seName,
}); });
String id; String? id;
bool visibleIndividually; bool? visibleIndividually;
String name; String? name;
String namen; String? namen;
List<LocalizedName> localizedNames; List<LocalizedName>? localizedNames;
String shortDescription; String? shortDescription;
String shortDescriptionn; String? shortDescriptionn;
String fullDescription; String? fullDescription;
String fullDescriptionn; String? fullDescriptionn;
bool markasNew; bool? markasNew;
bool showOnHomePage; bool? showOnHomePage;
String metaKeywords; String? metaKeywords;
String metaDescription; String? metaDescription;
String metaTitle; String? metaTitle;
bool allowCustomerReviews; bool? allowCustomerReviews;
int approvedRatingSum; int? approvedRatingSum;
int notApprovedRatingSum; int? notApprovedRatingSum;
int approvedTotalReviews; int? approvedTotalReviews;
int notApprovedTotalReviews; int? notApprovedTotalReviews;
String sku; String? sku;
bool isRx; bool? isRx;
bool prescriptionRequired; bool? prescriptionRequired;
dynamic rxMessage; dynamic rxMessage;
dynamic rxMessagen; dynamic rxMessagen;
dynamic manufacturerPartNumber; dynamic manufacturerPartNumber;
dynamic gtin; dynamic gtin;
bool isGiftCard; bool? isGiftCard;
bool requireOtherProducts; bool? requireOtherProducts;
bool automaticallyAddRequiredProducts; bool? automaticallyAddRequiredProducts;
bool isDownload; bool? isDownload;
bool unlimitedDownloads; bool? unlimitedDownloads;
int maxNumberOfDownloads; int? maxNumberOfDownloads;
dynamic downloadExpirationDays; dynamic downloadExpirationDays;
bool hasSampleDownload; bool? hasSampleDownload;
bool hasUserAgreement; bool? hasUserAgreement;
bool isRecurring; bool? isRecurring;
int recurringCycleLength; int? recurringCycleLength;
int recurringTotalCycles; int? recurringTotalCycles;
bool isRental; bool? isRental;
int rentalPriceLength; int? rentalPriceLength;
bool isShipEnabled; bool? isShipEnabled;
bool isFreeShipping; bool? isFreeShipping;
bool shipSeparately; bool? shipSeparately;
int additionalShippingCharge; int? additionalShippingCharge;
bool isTaxExempt; bool? isTaxExempt;
bool isTelecommunicationsOrBroadcastingOrElectronicServices; bool? isTelecommunicationsOrBroadcastingOrElectronicServices;
bool useMultipleWarehouses; bool? useMultipleWarehouses;
int manageInventoryMethodId; int? manageInventoryMethodId;
int stockQuantity; int? stockQuantity;
String stockAvailability; String? stockAvailability;
String stockAvailabilityn; String? stockAvailabilityn;
bool displayStockAvailability; bool? displayStockAvailability;
bool displayStockQuantity; bool? displayStockQuantity;
int minStockQuantity; int? minStockQuantity;
int notifyAdminForQuantityBelow; int? notifyAdminForQuantityBelow;
bool allowBackInStockSubscriptions; bool? allowBackInStockSubscriptions;
int orderMinimumQuantity; int? orderMinimumQuantity;
int orderMaximumQuantity; int? orderMaximumQuantity;
dynamic allowedQuantities; dynamic allowedQuantities;
bool allowAddingOnlyExistingAttributeCombinations; bool? allowAddingOnlyExistingAttributeCombinations;
bool disableBuyButton; bool? disableBuyButton;
bool disableWishlistButton; bool? disableWishlistButton;
bool availableForPreOrder; bool? availableForPreOrder;
dynamic preOrderAvailabilityStartDateTimeUtc; dynamic preOrderAvailabilityStartDateTimeUtc;
bool callForPrice; bool? callForPrice;
double price; double? price;
int oldPrice; int? oldPrice;
double productCost; double? productCost;
dynamic specialPrice; dynamic specialPrice;
dynamic specialPriceStartDateTimeUtc; dynamic specialPriceStartDateTimeUtc;
dynamic specialPriceEndDateTimeUtc; dynamic specialPriceEndDateTimeUtc;
bool customerEntersPrice; bool? customerEntersPrice;
int minimumCustomerEnteredPrice; int? minimumCustomerEnteredPrice;
int maximumCustomerEnteredPrice; int? maximumCustomerEnteredPrice;
bool basepriceEnabled; bool? basepriceEnabled;
int basepriceAmount; int? basepriceAmount;
int basepriceBaseAmount; int? basepriceBaseAmount;
bool hasTierPrices; bool? hasTierPrices;
bool hasDiscountsApplied; bool? hasDiscountsApplied;
dynamic discountName; dynamic discountName;
dynamic discountNamen; dynamic discountNamen;
dynamic discountDescription; dynamic discountDescription;
dynamic discountDescriptionn; dynamic discountDescriptionn;
dynamic discountPercentage; dynamic discountPercentage;
String currency; String? currency;
String currencyn; String? currencyn;
double weight; double? weight;
int length; int? length;
int width; int? width;
int height; int? height;
dynamic availableStartDateTimeUtc; dynamic availableStartDateTimeUtc;
dynamic availableEndDateTimeUtc; dynamic availableEndDateTimeUtc;
int displayOrder; int? displayOrder;
bool published; bool? published;
bool deleted; bool? deleted;
DateTime createdOnUtc; DateTime? createdOnUtc;
DateTime updatedOnUtc; DateTime? updatedOnUtc;
String productType; String? productType;
int parentGroupedProductId; int? parentGroupedProductId;
List<dynamic> roleIds; List<dynamic>? roleIds;
List<dynamic> discountIds; List<dynamic>? discountIds;
List<dynamic> storeIds; List<dynamic>? storeIds;
List<int> manufacturerIds; List<int>? manufacturerIds;
List<dynamic> reviews; List<dynamic>? reviews;
List<Image> images; List<Image>? images;
List<dynamic> attributes; List<dynamic>? attributes;
List<Specification> specifications; List<Specification>? specifications;
List<dynamic> associatedProductIds; List<dynamic>? associatedProductIds;
List<dynamic> tags; List<dynamic>? tags;
int vendorId; int? vendorId;
String seName; String? seName;
factory Product.fromJson(Map<String, dynamic> json) => Product( factory Product.fromJson(Map<String, dynamic> json) => Product(
id: json["id"], id: json["id"],
@ -711,7 +711,7 @@ class Product {
"visible_individually": visibleIndividually, "visible_individually": visibleIndividually,
"name": name, "name": name,
"namen": namen, "namen": namen,
"localized_names": List<dynamic>.from(localizedNames.map((x) => x.toJson())), "localized_names": List<dynamic>.from(localizedNames!.map((x) => x.toJson())),
"short_description": shortDescription, "short_description": shortDescription,
"short_descriptionn": shortDescriptionn, "short_descriptionn": shortDescriptionn,
"full_description": fullDescription, "full_description": fullDescription,
@ -802,20 +802,20 @@ class Product {
"display_order": displayOrder, "display_order": displayOrder,
"published": published, "published": published,
"deleted": deleted, "deleted": deleted,
"created_on_utc": createdOnUtc.toIso8601String(), "created_on_utc": createdOnUtc!.toIso8601String(),
"updated_on_utc": updatedOnUtc.toIso8601String(), "updated_on_utc": updatedOnUtc!.toIso8601String(),
"product_type": productType, "product_type": productType,
"parent_grouped_product_id": parentGroupedProductId, "parent_grouped_product_id": parentGroupedProductId,
"role_ids": List<dynamic>.from(roleIds.map((x) => x)), "role_ids": List<dynamic>.from(roleIds!.map((x) => x)),
"discount_ids": List<dynamic>.from(discountIds.map((x) => x)), "discount_ids": List<dynamic>.from(discountIds!.map((x) => x)),
"store_ids": List<dynamic>.from(storeIds.map((x) => x)), "store_ids": List<dynamic>.from(storeIds!.map((x) => x)),
"manufacturer_ids": List<dynamic>.from(manufacturerIds.map((x) => x)), "manufacturer_ids": List<dynamic>.from(manufacturerIds!.map((x) => x)),
"reviews": List<dynamic>.from(reviews.map((x) => x)), "reviews": List<dynamic>.from(reviews!.map((x) => x)),
"images": List<dynamic>.from(images.map((x) => x.toJson())), "images": List<dynamic>.from(images!.map((x) => x.toJson())),
"attributes": List<dynamic>.from(attributes.map((x) => x)), "attributes": List<dynamic>.from(attributes!.map((x) => x)),
"specifications": List<dynamic>.from(specifications.map((x) => x.toJson())), "specifications": List<dynamic>.from(specifications!.map((x) => x.toJson())),
"associated_product_ids": List<dynamic>.from(associatedProductIds.map((x) => x)), "associated_product_ids": List<dynamic>.from(associatedProductIds!.map((x) => x)),
"tags": List<dynamic>.from(tags.map((x) => x)), "tags": List<dynamic>.from(tags!.map((x) => x)),
"vendor_id": vendorId, "vendor_id": vendorId,
"se_name": seName, "se_name": seName,
}; };
@ -830,11 +830,11 @@ class Image {
this.attachment, this.attachment,
}); });
int id; int? id;
int position; int? position;
String src; String? src;
String thumb; String? thumb;
String attachment; String? attachment;
factory Image.fromJson(Map<String, dynamic> json) => Image( factory Image.fromJson(Map<String, dynamic> json) => Image(
id: json["id"], id: json["id"],
@ -859,8 +859,8 @@ class LocalizedName {
this.localizedName, this.localizedName,
}); });
int languageId; int? languageId;
String localizedName; String? localizedName;
factory LocalizedName.fromJson(Map<String, dynamic> json) => LocalizedName( factory LocalizedName.fromJson(Map<String, dynamic> json) => LocalizedName(
languageId: json["language_id"], languageId: json["language_id"],
@ -883,12 +883,12 @@ class Specification {
this.nameN, this.nameN,
}); });
int id; int? id;
int displayOrder; int? displayOrder;
String defaultValue; String? defaultValue;
String defaultValuen; String? defaultValuen;
String name; String? name;
String nameN; String? nameN;
factory Specification.fromJson(Map<String, dynamic> json) => Specification( factory Specification.fromJson(Map<String, dynamic> json) => Specification(
id: json["id"], id: json["id"],
@ -910,15 +910,15 @@ class Specification {
} }
class EnumValues<T> { class EnumValues<T> {
Map<String, T> map; Map<String, T>? map;
Map<T, String> reverseMap; Map<T, String>? reverseMap;
EnumValues(this.map); EnumValues(this.map);
Map<T, String> get reverse { Map<T, String> get reverse {
if (reverseMap == null) { if (reverseMap == null) {
reverseMap = map.map((k, v) => new MapEntry(v, k)); reverseMap = map!.map((k, v) => new MapEntry(v, k));
} }
return reverseMap; return reverseMap!;
} }
} }

Loading…
Cancel
Save