fix: Firebase analytics issue and handled data connect

This commit is contained in:
dhinesh-m24
2026-02-02 16:44:16 +05:30
parent cb25b33d04
commit fa208f2838
196 changed files with 19919 additions and 31464 deletions

View File

@@ -1,16 +1,16 @@
# Basic Usage
```dart
ExampleConnector.instance.createFaqData(createFaqDataVariables).execute();
ExampleConnector.instance.updateFaqData(updateFaqDataVariables).execute();
ExampleConnector.instance.deleteFaqData(deleteFaqDataVariables).execute();
ExampleConnector.instance.createStaffAvailability(createStaffAvailabilityVariables).execute();
ExampleConnector.instance.updateStaffAvailability(updateStaffAvailabilityVariables).execute();
ExampleConnector.instance.deleteStaffAvailability(deleteStaffAvailabilityVariables).execute();
ExampleConnector.instance.listStaffAvailabilityStats(listStaffAvailabilityStatsVariables).execute();
ExampleConnector.instance.getStaffAvailabilityStatsByStaffId(getStaffAvailabilityStatsByStaffIdVariables).execute();
ExampleConnector.instance.filterStaffAvailabilityStats(filterStaffAvailabilityStatsVariables).execute();
ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute();
ExampleConnector.instance.getStaffCourseById(getStaffCourseByIdVariables).execute();
ExampleConnector.instance.listStaffCoursesByStaffId(listStaffCoursesByStaffIdVariables).execute();
ExampleConnector.instance.listStaffCoursesByCourseId(listStaffCoursesByCourseIdVariables).execute();
ExampleConnector.instance.getStaffCourseByStaffAndCourse(getStaffCourseByStaffAndCourseVariables).execute();
ExampleConnector.instance.createOrder(createOrderVariables).execute();
ExampleConnector.instance.updateOrder(updateOrderVariables).execute();
ExampleConnector.instance.deleteOrder(deleteOrderVariables).execute();
ExampleConnector.instance.createRole(createRoleVariables).execute();
ExampleConnector.instance.updateRole(updateRoleVariables).execute();
ExampleConnector.instance.deleteRole(deleteRoleVariables).execute();
```
@@ -23,8 +23,8 @@ Optional fields can be discovered based on classes that have `Optional` object t
This is an example of a mutation with an optional field:
```dart
await ExampleConnector.instance.updateWorkforce({ ... })
.workforceNumber(...)
await ExampleConnector.instance.filterDocuments({ ... })
.documentType(...)
.execute();
```

View File

@@ -4,7 +4,6 @@ class CreateOrderVariablesBuilder {
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
String businessId;
OrderType orderType;
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
@@ -16,7 +15,6 @@ class CreateOrderVariablesBuilder {
Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<Timestamp> _permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer);
Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
@@ -29,10 +27,6 @@ class CreateOrderVariablesBuilder {
_vendorId.value = t;
return this;
}
CreateOrderVariablesBuilder location(String? t) {
_location.value = t;
return this;
}
CreateOrderVariablesBuilder status(OrderStatus? t) {
_status.value = t;
return this;
@@ -77,10 +71,6 @@ class CreateOrderVariablesBuilder {
_requested.value = t;
return this;
}
CreateOrderVariablesBuilder hub(String? t) {
_hub.value = t;
return this;
}
CreateOrderVariablesBuilder recurringDays(AnyValue? t) {
_recurringDays.value = t;
return this;
@@ -114,7 +104,7 @@ class CreateOrderVariablesBuilder {
}
MutationRef<CreateOrderData, CreateOrderVariables> ref() {
CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars);
}
}
@@ -192,7 +182,6 @@ class CreateOrderVariables {
late final Optional<String>vendorId;
final String businessId;
final OrderType orderType;
late final Optional<String>location;
late final Optional<OrderStatus>status;
late final Optional<Timestamp>date;
late final Optional<Timestamp>startDate;
@@ -204,7 +193,6 @@ class CreateOrderVariables {
late final Optional<AnyValue>assignedStaff;
late final Optional<AnyValue>shifts;
late final Optional<int>requested;
late final Optional<String>hub;
late final Optional<AnyValue>recurringDays;
late final Optional<Timestamp>permanentStartDate;
late final Optional<AnyValue>permanentDays;
@@ -224,10 +212,6 @@ class CreateOrderVariables {
location = Optional.optional(nativeFromJson, nativeToJson);
location.value = json['location'] == null ? null : nativeFromJson<String>(json['location']);
status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']);
@@ -272,10 +256,6 @@ class CreateOrderVariables {
requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']);
hub = Optional.optional(nativeFromJson, nativeToJson);
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']);
@@ -313,7 +293,6 @@ class CreateOrderVariables {
return vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -325,7 +304,6 @@ class CreateOrderVariables {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentStartDate == otherTyped.permanentStartDate &&
permanentDays == otherTyped.permanentDays &&
@@ -335,7 +313,7 @@ class CreateOrderVariables {
}
@override
int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -347,9 +325,6 @@ class CreateOrderVariables {
json['orderType'] =
orderType.name
;
if(location.state == OptionalState.set) {
json['location'] = location.toJson();
}
if(status.state == OptionalState.set) {
json['status'] = status.toJson();
}
@@ -383,9 +358,6 @@ class CreateOrderVariables {
if(requested.state == OptionalState.set) {
json['requested'] = requested.toJson();
}
if(hub.state == OptionalState.set) {
json['hub'] = hub.toJson();
}
if(recurringDays.state == OptionalState.set) {
json['recurringDays'] = recurringDays.toJson();
}
@@ -411,7 +383,6 @@ class CreateOrderVariables {
required this.vendorId,
required this.businessId,
required this.orderType,
required this.location,
required this.status,
required this.date,
required this.startDate,
@@ -423,7 +394,6 @@ class CreateOrderVariables {
required this.assignedStaff,
required this.shifts,
required this.requested,
required this.hub,
required this.recurringDays,
required this.permanentStartDate,
required this.permanentDays,

View File

@@ -2,31 +2,15 @@ part of 'generated.dart';
class CreateTaxFormVariablesBuilder {
TaxFormType formType;
String title;
Optional<String> _subtitle = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
String staffId;
Optional<AnyValue> _formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder subtitle(String? t) {
_subtitle.value = t;
return this;
}
CreateTaxFormVariablesBuilder description(String? t) {
_description.value = t;
return this;
}
CreateTaxFormVariablesBuilder status(TaxFormStatus? t) {
final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder status(TaxFormStatus? t) {
_status.value = t;
return this;
}
CreateTaxFormVariablesBuilder formData(AnyValue? t) {
_formData.value = t;
return this;
}
CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.title,required this.staffId,});
CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.staffId,});
Deserializer<CreateTaxFormData> dataDeserializer = (dynamic json) => CreateTaxFormData.fromJson(jsonDecode(json));
Serializer<CreateTaxFormVariables> varsSerializer = (CreateTaxFormVariables vars) => jsonEncode(vars.toJson());
Future<OperationResult<CreateTaxFormData, CreateTaxFormVariables>> execute() {
@@ -34,7 +18,7 @@ class CreateTaxFormVariablesBuilder {
}
MutationRef<CreateTaxFormData, CreateTaxFormVariables> ref() {
CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,title: title,subtitle: _subtitle,description: _description,status: _status,staffId: staffId,formData: _formData,);
CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,status: _status,staffId: staffId,);
return _dataConnect.mutation("createTaxForm", dataDeserializer, varsSerializer, vars);
}
}
@@ -110,38 +94,20 @@ class CreateTaxFormData {
@immutable
class CreateTaxFormVariables {
final TaxFormType formType;
final String title;
late final Optional<String>subtitle;
late final Optional<String>description;
late final Optional<TaxFormStatus>status;
final String staffId;
late final Optional<AnyValue>formData;
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
CreateTaxFormVariables.fromJson(Map<String, dynamic> json):
formType = TaxFormType.values.byName(json['formType']),
title = nativeFromJson<String>(json['title']),
staffId = nativeFromJson<String>(json['staffId']) {
subtitle = Optional.optional(nativeFromJson, nativeToJson);
subtitle.value = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']);
formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']);
}
@override
bool operator ==(Object other) {
@@ -154,16 +120,12 @@ class CreateTaxFormVariables {
final CreateTaxFormVariables otherTyped = other as CreateTaxFormVariables;
return formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status &&
staffId == otherTyped.staffId &&
formData == otherTyped.formData;
staffId == otherTyped.staffId;
}
@override
int get hashCode => Object.hashAll([formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode]);
int get hashCode => Object.hashAll([formType.hashCode, status.hashCode, staffId.hashCode]);
Map<String, dynamic> toJson() {
@@ -171,31 +133,17 @@ class CreateTaxFormVariables {
json['formType'] =
formType.name
;
json['title'] = nativeToJson<String>(title);
if(subtitle.state == OptionalState.set) {
json['subtitle'] = subtitle.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
if(status.state == OptionalState.set) {
json['status'] = status.toJson();
}
json['staffId'] = nativeToJson<String>(staffId);
if(formData.state == OptionalState.set) {
json['formData'] = formData.toJson();
}
return json;
}
CreateTaxFormVariables({
required this.formType,
required this.title,
required this.subtitle,
required this.description,
required this.status,
required this.staffId,
required this.formData,
});
}

View File

@@ -371,13 +371,11 @@ class FilterInvoicesInvoicesBusiness {
@immutable
class FilterInvoicesInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
FilterInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -391,13 +389,12 @@ class FilterInvoicesInvoicesOrder {
final FilterInvoicesInvoicesOrder otherTyped = other as FilterInvoicesInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -405,9 +402,6 @@ class FilterInvoicesInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -419,7 +413,6 @@ class FilterInvoicesInvoicesOrder {
FilterInvoicesInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -36,14 +36,12 @@ class FilterTaxFormsVariablesBuilder {
class FilterTaxFormsTaxForms {
final String id;
final EnumValue<TaxFormType> formType;
final String title;
final EnumValue<TaxFormStatus> status;
final String staffId;
FilterTaxFormsTaxForms.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']);
@override
@@ -58,13 +56,12 @@ class FilterTaxFormsTaxForms {
final FilterTaxFormsTaxForms otherTyped = other as FilterTaxFormsTaxForms;
return id == otherTyped.id &&
formType == otherTyped.formType &&
title == otherTyped.title &&
status == otherTyped.status &&
staffId == otherTyped.staffId;
}
@override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, status.hashCode, staffId.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode]);
Map<String, dynamic> toJson() {
@@ -73,7 +70,6 @@ class FilterTaxFormsTaxForms {
json['formType'] =
taxFormTypeSerializer(formType)
;
json['title'] = nativeToJson<String>(title);
json['status'] =
taxFormStatusSerializer(status)
;
@@ -84,7 +80,6 @@ class FilterTaxFormsTaxForms {
FilterTaxFormsTaxForms({
required this.id,
required this.formType,
required this.title,
required this.status,
required this.staffId,
});

View File

@@ -198,14 +198,12 @@ class GetApplicationByIdApplicationShift {
class GetApplicationByIdApplicationShiftOrder {
final String id;
final String? eventName;
final String? location;
final GetApplicationByIdApplicationShiftOrderBusiness business;
final GetApplicationByIdApplicationShiftOrderVendor? vendor;
GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']);
@override
@@ -220,13 +218,12 @@ class GetApplicationByIdApplicationShiftOrder {
final GetApplicationByIdApplicationShiftOrder otherTyped = other as GetApplicationByIdApplicationShiftOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -235,9 +232,6 @@ class GetApplicationByIdApplicationShiftOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson();
if (vendor != null) {
json['vendor'] = vendor!.toJson();
@@ -248,7 +242,6 @@ class GetApplicationByIdApplicationShiftOrder {
GetApplicationByIdApplicationShiftOrder({
required this.id,
this.eventName,
this.location,
required this.business,
this.vendor,
});

View File

@@ -198,14 +198,12 @@ class GetApplicationsByShiftIdApplicationsShift {
class GetApplicationsByShiftIdApplicationsShiftOrder {
final String id;
final String? eventName;
final String? location;
final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business;
final GetApplicationsByShiftIdApplicationsShiftOrderVendor? vendor;
GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override
@@ -220,13 +218,12 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
final GetApplicationsByShiftIdApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdApplicationsShiftOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -235,9 +232,6 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson();
if (vendor != null) {
json['vendor'] = vendor!.toJson();
@@ -248,7 +242,6 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
GetApplicationsByShiftIdApplicationsShiftOrder({
required this.id,
this.eventName,
this.location,
required this.business,
this.vendor,
});

View File

@@ -209,14 +209,12 @@ class GetApplicationsByShiftIdAndStatusApplicationsShift {
class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
final String id;
final String? eventName;
final String? location;
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business;
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor? vendor;
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override
@@ -231,13 +229,12 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdAndStatusApplicationsShiftOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -246,9 +243,6 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson();
if (vendor != null) {
json['vendor'] = vendor!.toJson();
@@ -259,7 +253,6 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder({
required this.id,
this.eventName,
this.location,
required this.business,
this.vendor,
});

View File

@@ -208,14 +208,12 @@ class GetApplicationsByStaffIdApplicationsShift {
class GetApplicationsByStaffIdApplicationsShiftOrder {
final String id;
final String? eventName;
final String? location;
final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business;
final GetApplicationsByStaffIdApplicationsShiftOrderVendor? vendor;
GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override
@@ -230,13 +228,12 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
final GetApplicationsByStaffIdApplicationsShiftOrder otherTyped = other as GetApplicationsByStaffIdApplicationsShiftOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -245,9 +242,6 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson();
if (vendor != null) {
json['vendor'] = vendor!.toJson();
@@ -258,7 +252,6 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
GetApplicationsByStaffIdApplicationsShiftOrder({
required this.id,
this.eventName,
this.location,
required this.business,
this.vendor,
});

View File

@@ -321,13 +321,11 @@ class GetInvoiceByIdInvoiceBusiness {
@immutable
class GetInvoiceByIdInvoiceOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
GetInvoiceByIdInvoiceOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -341,13 +339,12 @@ class GetInvoiceByIdInvoiceOrder {
final GetInvoiceByIdInvoiceOrder otherTyped = other as GetInvoiceByIdInvoiceOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -355,9 +352,6 @@ class GetInvoiceByIdInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -369,7 +363,6 @@ class GetInvoiceByIdInvoiceOrder {
GetInvoiceByIdInvoiceOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -24,7 +24,6 @@ class GetOrderByIdOrder {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -35,7 +34,6 @@ class GetOrderByIdOrder {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -51,7 +49,6 @@ class GetOrderByIdOrder {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -62,7 +59,6 @@ class GetOrderByIdOrder {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -86,7 +82,6 @@ class GetOrderByIdOrder {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -97,7 +92,6 @@ class GetOrderByIdOrder {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -109,7 +103,7 @@ class GetOrderByIdOrder {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -125,9 +119,6 @@ class GetOrderByIdOrder {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -160,9 +151,6 @@ class GetOrderByIdOrder {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -194,7 +182,6 @@ class GetOrderByIdOrder {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -205,7 +192,6 @@ class GetOrderByIdOrder {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByBusinessIdOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByBusinessIdOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByBusinessIdOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByBusinessIdOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByBusinessIdOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByBusinessIdOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByBusinessIdOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByBusinessIdOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -170,9 +161,6 @@ class GetOrdersByBusinessIdOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -204,7 +192,6 @@ class GetOrdersByBusinessIdOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByBusinessIdOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -35,7 +35,6 @@ class GetOrdersByDateRangeOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -46,7 +45,6 @@ class GetOrdersByDateRangeOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -62,7 +60,6 @@ class GetOrdersByDateRangeOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -73,7 +70,6 @@ class GetOrdersByDateRangeOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -97,7 +93,6 @@ class GetOrdersByDateRangeOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -108,7 +103,6 @@ class GetOrdersByDateRangeOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -120,7 +114,7 @@ class GetOrdersByDateRangeOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -136,9 +130,6 @@ class GetOrdersByDateRangeOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -171,9 +162,6 @@ class GetOrdersByDateRangeOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -205,7 +193,6 @@ class GetOrdersByDateRangeOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -216,7 +203,6 @@ class GetOrdersByDateRangeOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByStatusOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByStatusOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByStatusOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByStatusOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByStatusOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByStatusOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByStatusOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByStatusOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -170,9 +161,6 @@ class GetOrdersByStatusOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -204,7 +192,6 @@ class GetOrdersByStatusOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByStatusOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByVendorIdOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByVendorIdOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByVendorIdOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByVendorIdOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByVendorIdOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByVendorIdOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByVendorIdOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByVendorIdOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -170,9 +161,6 @@ class GetOrdersByVendorIdOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -204,7 +192,6 @@ class GetOrdersByVendorIdOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByVendorIdOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -34,7 +34,6 @@ class GetRapidOrdersOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetRapidOrdersOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -61,7 +59,6 @@ class GetRapidOrdersOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetRapidOrdersOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetRapidOrdersOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetRapidOrdersOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetRapidOrdersOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetRapidOrdersOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -170,9 +161,6 @@ class GetRapidOrdersOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -204,7 +192,6 @@ class GetRapidOrdersOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -215,7 +202,6 @@ class GetRapidOrdersOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -21,12 +21,8 @@ class GetTaxFormByIdVariablesBuilder {
class GetTaxFormByIdTaxForm {
final String id;
final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status;
final String staffId;
final AnyValue? formData;
final Timestamp? createdAt;
final Timestamp? updatedAt;
final String? createdBy;
@@ -34,12 +30,8 @@ class GetTaxFormByIdTaxForm {
id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -55,19 +47,15 @@ class GetTaxFormByIdTaxForm {
final GetTaxFormByIdTaxForm otherTyped = other as GetTaxFormByIdTaxForm;
return id == otherTyped.id &&
formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status &&
staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy;
}
@override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() {
@@ -76,20 +64,10 @@ class GetTaxFormByIdTaxForm {
json['formType'] =
taxFormTypeSerializer(formType)
;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] =
taxFormStatusSerializer(status)
;
json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) {
json['createdAt'] = createdAt!.toJson();
}
@@ -105,12 +83,8 @@ class GetTaxFormByIdTaxForm {
GetTaxFormByIdTaxForm({
required this.id,
required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status,
required this.staffId,
this.formData,
this.createdAt,
this.updatedAt,
this.createdBy,

View File

@@ -21,12 +21,8 @@ class GetTaxFormsBystaffIdVariablesBuilder {
class GetTaxFormsBystaffIdTaxForms {
final String id;
final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status;
final String staffId;
final AnyValue? formData;
final Timestamp? createdAt;
final Timestamp? updatedAt;
final String? createdBy;
@@ -34,12 +30,8 @@ class GetTaxFormsBystaffIdTaxForms {
id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -55,19 +47,15 @@ class GetTaxFormsBystaffIdTaxForms {
final GetTaxFormsBystaffIdTaxForms otherTyped = other as GetTaxFormsBystaffIdTaxForms;
return id == otherTyped.id &&
formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status &&
staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy;
}
@override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() {
@@ -76,20 +64,10 @@ class GetTaxFormsBystaffIdTaxForms {
json['formType'] =
taxFormTypeSerializer(formType)
;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] =
taxFormStatusSerializer(status)
;
json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) {
json['createdAt'] = createdAt!.toJson();
}
@@ -105,12 +83,8 @@ class GetTaxFormsBystaffIdTaxForms {
GetTaxFormsBystaffIdTaxForms({
required this.id,
required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status,
required this.staffId,
this.formData,
this.createdAt,
this.updatedAt,
this.createdBy,

View File

@@ -197,14 +197,12 @@ class ListApplicationsApplicationsShift {
class ListApplicationsApplicationsShiftOrder {
final String id;
final String? eventName;
final String? location;
final ListApplicationsApplicationsShiftOrderBusiness business;
final ListApplicationsApplicationsShiftOrderVendor? vendor;
ListApplicationsApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override
@@ -219,13 +217,12 @@ class ListApplicationsApplicationsShiftOrder {
final ListApplicationsApplicationsShiftOrder otherTyped = other as ListApplicationsApplicationsShiftOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -234,9 +231,6 @@ class ListApplicationsApplicationsShiftOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson();
if (vendor != null) {
json['vendor'] = vendor!.toJson();
@@ -247,7 +241,6 @@ class ListApplicationsApplicationsShiftOrder {
ListApplicationsApplicationsShiftOrder({
required this.id,
this.eventName,
this.location,
required this.business,
this.vendor,
});

View File

@@ -331,13 +331,11 @@ class ListInvoicesInvoicesBusiness {
@immutable
class ListInvoicesInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListInvoicesInvoicesOrder {
final ListInvoicesInvoicesOrder otherTyped = other as ListInvoicesInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListInvoicesInvoicesOrder {
ListInvoicesInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -331,13 +331,11 @@ class ListInvoicesByBusinessIdInvoicesBusiness {
@immutable
class ListInvoicesByBusinessIdInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListInvoicesByBusinessIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListInvoicesByBusinessIdInvoicesOrder {
final ListInvoicesByBusinessIdInvoicesOrder otherTyped = other as ListInvoicesByBusinessIdInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByBusinessIdInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListInvoicesByBusinessIdInvoicesOrder {
ListInvoicesByBusinessIdInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -331,13 +331,11 @@ class ListInvoicesByOrderIdInvoicesBusiness {
@immutable
class ListInvoicesByOrderIdInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListInvoicesByOrderIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListInvoicesByOrderIdInvoicesOrder {
final ListInvoicesByOrderIdInvoicesOrder otherTyped = other as ListInvoicesByOrderIdInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByOrderIdInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListInvoicesByOrderIdInvoicesOrder {
ListInvoicesByOrderIdInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -331,13 +331,11 @@ class ListInvoicesByStatusInvoicesBusiness {
@immutable
class ListInvoicesByStatusInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListInvoicesByStatusInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListInvoicesByStatusInvoicesOrder {
final ListInvoicesByStatusInvoicesOrder otherTyped = other as ListInvoicesByStatusInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByStatusInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListInvoicesByStatusInvoicesOrder {
ListInvoicesByStatusInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -331,13 +331,11 @@ class ListInvoicesByVendorIdInvoicesBusiness {
@immutable
class ListInvoicesByVendorIdInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListInvoicesByVendorIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListInvoicesByVendorIdInvoicesOrder {
final ListInvoicesByVendorIdInvoicesOrder otherTyped = other as ListInvoicesByVendorIdInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByVendorIdInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListInvoicesByVendorIdInvoicesOrder {
ListInvoicesByVendorIdInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -34,7 +34,6 @@ class ListOrdersOrders {
final String? vendorId;
final String businessId;
final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status;
final Timestamp? date;
final Timestamp? startDate;
@@ -45,7 +44,6 @@ class ListOrdersOrders {
final AnyValue? assignedStaff;
final AnyValue? shifts;
final int? requested;
final String? hub;
final AnyValue? recurringDays;
final AnyValue? permanentDays;
final String? poReference;
@@ -61,7 +59,6 @@ class ListOrdersOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class ListOrdersOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class ListOrdersOrders {
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class ListOrdersOrders {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class ListOrdersOrders {
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class ListOrdersOrders {
json['orderType'] =
orderTypeSerializer(orderType)
;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] =
orderStatusSerializer(status)
;
@@ -170,9 +161,6 @@ class ListOrdersOrders {
if (requested != null) {
json['requested'] = nativeToJson<int?>(requested);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson();
}
@@ -204,7 +192,6 @@ class ListOrdersOrders {
this.vendorId,
required this.businessId,
required this.orderType,
this.location,
required this.status,
this.date,
this.startDate,
@@ -215,7 +202,6 @@ class ListOrdersOrders {
this.assignedStaff,
this.shifts,
this.requested,
this.hub,
this.recurringDays,
this.permanentDays,
this.poReference,

View File

@@ -331,13 +331,11 @@ class ListOverdueInvoicesInvoicesBusiness {
@immutable
class ListOverdueInvoicesInvoicesOrder {
final String? eventName;
final String? hub;
final String? deparment;
final String? poReference;
ListOverdueInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override
@@ -351,13 +349,12 @@ class ListOverdueInvoicesInvoicesOrder {
final ListOverdueInvoicesInvoicesOrder otherTyped = other as ListOverdueInvoicesInvoicesOrder;
return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment &&
poReference == otherTyped.poReference;
}
@override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListOverdueInvoicesInvoicesOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment);
}
@@ -379,7 +373,6 @@ class ListOverdueInvoicesInvoicesOrder {
ListOverdueInvoicesInvoicesOrder({
this.eventName,
this.hub,
this.deparment,
this.poReference,
});

View File

@@ -467,12 +467,10 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -484,12 +482,11 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -498,16 +495,12 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -517,12 +517,10 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -534,12 +532,11 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -548,16 +545,12 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -465,12 +465,10 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -482,12 +480,11 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -496,16 +493,12 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -460,12 +460,10 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -477,12 +475,11 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -491,16 +488,12 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -491,12 +491,10 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -508,12 +506,11 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -522,16 +519,12 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -460,12 +460,10 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
final String id;
final String? eventName;
final String? location;
ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -477,12 +475,11 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder;
return id == otherTyped.id &&
eventName == otherTyped.eventName &&
location == otherTyped.location;
eventName == otherTyped.eventName;
}
@override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() {
@@ -491,16 +488,12 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName);
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder({
required this.id,
this.eventName,
this.location,
});
}

View File

@@ -256,12 +256,10 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShift {
class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
final String? vendorId;
final Timestamp? date;
final String? location;
ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder.fromJson(dynamic json):
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
date = json['date'] == null ? null : Timestamp.fromJson(json['date']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -273,12 +271,11 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder;
return vendorId == otherTyped.vendorId &&
date == otherTyped.date &&
location == otherTyped.location;
date == otherTyped.date;
}
@override
int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode, location.hashCode]);
int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode]);
Map<String, dynamic> toJson() {
@@ -289,16 +286,12 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
if (date != null) {
json['date'] = date!.toJson();
}
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json;
}
ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder({
this.vendorId,
this.date,
this.location,
});
}

View File

@@ -20,12 +20,8 @@ class ListTaxFormsVariablesBuilder {
class ListTaxFormsTaxForms {
final String id;
final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status;
final String staffId;
final AnyValue? formData;
final Timestamp? createdAt;
final Timestamp? updatedAt;
final String? createdBy;
@@ -33,12 +29,8 @@ class ListTaxFormsTaxForms {
id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -54,19 +46,15 @@ class ListTaxFormsTaxForms {
final ListTaxFormsTaxForms otherTyped = other as ListTaxFormsTaxForms;
return id == otherTyped.id &&
formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status &&
staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy;
}
@override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() {
@@ -75,20 +63,10 @@ class ListTaxFormsTaxForms {
json['formType'] =
taxFormTypeSerializer(formType)
;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] =
taxFormStatusSerializer(status)
;
json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) {
json['createdAt'] = createdAt!.toJson();
}
@@ -104,12 +82,8 @@ class ListTaxFormsTaxForms {
ListTaxFormsTaxForms({
required this.id,
required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status,
required this.staffId,
this.formData,
this.createdAt,
this.updatedAt,
this.createdBy,

View File

@@ -4,7 +4,6 @@ class UpdateOrderVariablesBuilder {
String id;
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _businessId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
@@ -14,7 +13,6 @@ class UpdateOrderVariablesBuilder {
Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
@@ -29,10 +27,6 @@ class UpdateOrderVariablesBuilder {
_businessId.value = t;
return this;
}
UpdateOrderVariablesBuilder location(String? t) {
_location.value = t;
return this;
}
UpdateOrderVariablesBuilder status(OrderStatus? t) {
_status.value = t;
return this;
@@ -69,10 +63,6 @@ class UpdateOrderVariablesBuilder {
_requested.value = t;
return this;
}
UpdateOrderVariablesBuilder hub(String? t) {
_hub.value = t;
return this;
}
UpdateOrderVariablesBuilder recurringDays(AnyValue? t) {
_recurringDays.value = t;
return this;
@@ -102,7 +92,7 @@ class UpdateOrderVariablesBuilder {
}
MutationRef<UpdateOrderData, UpdateOrderVariables> ref() {
UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
return _dataConnect.mutation("updateOrder", dataDeserializer, varsSerializer, vars);
}
}
@@ -182,7 +172,6 @@ class UpdateOrderVariables {
final String id;
late final Optional<String>vendorId;
late final Optional<String>businessId;
late final Optional<String>location;
late final Optional<OrderStatus>status;
late final Optional<Timestamp>date;
late final Optional<Timestamp>startDate;
@@ -192,7 +181,6 @@ class UpdateOrderVariables {
late final Optional<AnyValue>assignedStaff;
late final Optional<AnyValue>shifts;
late final Optional<int>requested;
late final Optional<String>hub;
late final Optional<AnyValue>recurringDays;
late final Optional<AnyValue>permanentDays;
late final Optional<String>notes;
@@ -213,10 +201,6 @@ class UpdateOrderVariables {
businessId.value = json['businessId'] == null ? null : nativeFromJson<String>(json['businessId']);
location = Optional.optional(nativeFromJson, nativeToJson);
location.value = json['location'] == null ? null : nativeFromJson<String>(json['location']);
status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']);
@@ -253,10 +237,6 @@ class UpdateOrderVariables {
requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']);
hub = Optional.optional(nativeFromJson, nativeToJson);
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']);
@@ -290,7 +270,6 @@ class UpdateOrderVariables {
return id == otherTyped.id &&
vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId &&
location == otherTyped.location &&
status == otherTyped.status &&
date == otherTyped.date &&
startDate == otherTyped.startDate &&
@@ -300,7 +279,6 @@ class UpdateOrderVariables {
assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts &&
requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays &&
notes == otherTyped.notes &&
@@ -309,7 +287,7 @@ class UpdateOrderVariables {
}
@override
int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() {
@@ -321,9 +299,6 @@ class UpdateOrderVariables {
if(businessId.state == OptionalState.set) {
json['businessId'] = businessId.toJson();
}
if(location.state == OptionalState.set) {
json['location'] = location.toJson();
}
if(status.state == OptionalState.set) {
json['status'] = status.toJson();
}
@@ -351,9 +326,6 @@ class UpdateOrderVariables {
if(requested.state == OptionalState.set) {
json['requested'] = requested.toJson();
}
if(hub.state == OptionalState.set) {
json['hub'] = hub.toJson();
}
if(recurringDays.state == OptionalState.set) {
json['recurringDays'] = recurringDays.toJson();
}
@@ -376,7 +348,6 @@ class UpdateOrderVariables {
required this.id,
required this.vendorId,
required this.businessId,
required this.location,
required this.status,
required this.date,
required this.startDate,
@@ -386,7 +357,6 @@ class UpdateOrderVariables {
required this.assignedStaff,
required this.shifts,
required this.requested,
required this.hub,
required this.recurringDays,
required this.permanentDays,
required this.notes,

View File

@@ -3,31 +3,11 @@ part of 'generated.dart';
class UpdateTaxFormVariablesBuilder {
String id;
Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
Optional<AnyValue> _formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<String> _title = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _subtitle = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
final FirebaseDataConnect _dataConnect; UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) {
_status.value = t;
return this;
}
UpdateTaxFormVariablesBuilder formData(AnyValue? t) {
_formData.value = t;
return this;
}
UpdateTaxFormVariablesBuilder title(String? t) {
_title.value = t;
return this;
}
UpdateTaxFormVariablesBuilder subtitle(String? t) {
_subtitle.value = t;
return this;
}
UpdateTaxFormVariablesBuilder description(String? t) {
_description.value = t;
return this;
}
UpdateTaxFormVariablesBuilder(this._dataConnect, {required this.id,});
Deserializer<UpdateTaxFormData> dataDeserializer = (dynamic json) => UpdateTaxFormData.fromJson(jsonDecode(json));
@@ -37,7 +17,7 @@ class UpdateTaxFormVariablesBuilder {
}
MutationRef<UpdateTaxFormData, UpdateTaxFormVariables> ref() {
UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,status: _status,formData: _formData,title: _title,subtitle: _subtitle,description: _description,);
UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,status: _status,);
return _dataConnect.mutation("updateTaxForm", dataDeserializer, varsSerializer, vars);
}
}
@@ -116,10 +96,6 @@ class UpdateTaxFormData {
class UpdateTaxFormVariables {
final String id;
late final Optional<TaxFormStatus>status;
late final Optional<AnyValue>formData;
late final Optional<String>title;
late final Optional<String>subtitle;
late final Optional<String>description;
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
UpdateTaxFormVariables.fromJson(Map<String, dynamic> json):
@@ -130,22 +106,6 @@ class UpdateTaxFormVariables {
status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']);
formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']);
title = Optional.optional(nativeFromJson, nativeToJson);
title.value = json['title'] == null ? null : nativeFromJson<String>(json['title']);
subtitle = Optional.optional(nativeFromJson, nativeToJson);
subtitle.value = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
}
@override
bool operator ==(Object other) {
@@ -158,15 +118,11 @@ class UpdateTaxFormVariables {
final UpdateTaxFormVariables otherTyped = other as UpdateTaxFormVariables;
return id == otherTyped.id &&
status == otherTyped.status &&
formData == otherTyped.formData &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description;
status == otherTyped.status;
}
@override
int get hashCode => Object.hashAll([id.hashCode, status.hashCode, formData.hashCode, title.hashCode, subtitle.hashCode, description.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, status.hashCode]);
Map<String, dynamic> toJson() {
@@ -175,28 +131,12 @@ class UpdateTaxFormVariables {
if(status.state == OptionalState.set) {
json['status'] = status.toJson();
}
if(formData.state == OptionalState.set) {
json['formData'] = formData.toJson();
}
if(title.state == OptionalState.set) {
json['title'] = title.toJson();
}
if(subtitle.state == OptionalState.set) {
json['subtitle'] = subtitle.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
return json;
}
UpdateTaxFormVariables({
required this.id,
required this.status,
required this.formData,
required this.title,
required this.subtitle,
required this.description,
});
}