adding schema from datac
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
# Basic Usage
|
# Basic Usage
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
ExampleConnector.instance.createTeamHudDepartment(createTeamHudDepartmentVariables).execute();
|
ExampleConnector.instance.createAccount(createAccountVariables).execute();
|
||||||
ExampleConnector.instance.updateTeamHudDepartment(updateTeamHudDepartmentVariables).execute();
|
ExampleConnector.instance.updateAccount(updateAccountVariables).execute();
|
||||||
ExampleConnector.instance.deleteTeamHudDepartment(deleteTeamHudDepartmentVariables).execute();
|
ExampleConnector.instance.deleteAccount(deleteAccountVariables).execute();
|
||||||
ExampleConnector.instance.listAssignments(listAssignmentsVariables).execute();
|
ExampleConnector.instance.listBenefitsData(listBenefitsDataVariables).execute();
|
||||||
ExampleConnector.instance.getAssignmentById(getAssignmentByIdVariables).execute();
|
ExampleConnector.instance.getBenefitsDataByKey(getBenefitsDataByKeyVariables).execute();
|
||||||
ExampleConnector.instance.listAssignmentsByWorkforceId(listAssignmentsByWorkforceIdVariables).execute();
|
ExampleConnector.instance.listBenefitsDataByStaffId(listBenefitsDataByStaffIdVariables).execute();
|
||||||
ExampleConnector.instance.listAssignmentsByWorkforceIds(listAssignmentsByWorkforceIdsVariables).execute();
|
ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId(listBenefitsDataByVendorBenefitPlanIdVariables).execute();
|
||||||
ExampleConnector.instance.listAssignmentsByShiftRole(listAssignmentsByShiftRoleVariables).execute();
|
ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds(listBenefitsDataByVendorBenefitPlanIdsVariables).execute();
|
||||||
ExampleConnector.instance.filterAssignments(filterAssignmentsVariables).execute();
|
ExampleConnector.instance.createConversation(createConversationVariables).execute();
|
||||||
ExampleConnector.instance.CreateCertificate(createCertificateVariables).execute();
|
ExampleConnector.instance.updateConversation(updateConversationVariables).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:
|
This is an example of a mutation with an optional field:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
await ExampleConnector.instance.updateShift({ ... })
|
await ExampleConnector.instance.filterVendorBenefitPlans({ ... })
|
||||||
.title(...)
|
.vendorId(...)
|
||||||
.execute();
|
.execute();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
part of 'generated.dart';
|
part of 'generated.dart';
|
||||||
|
|
||||||
class CreateOrderVariablesBuilder {
|
class CreateOrderVariablesBuilder {
|
||||||
String vendorId;
|
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
||||||
String businessId;
|
String businessId;
|
||||||
OrderType orderType;
|
OrderType orderType;
|
||||||
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
|
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
|
||||||
@@ -24,7 +24,12 @@ class CreateOrderVariablesBuilder {
|
|||||||
Optional<AnyValue> _detectedConflicts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
Optional<AnyValue> _detectedConflicts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
||||||
Optional<String> _poReference = Optional.optional(nativeFromJson, nativeToJson);
|
Optional<String> _poReference = Optional.optional(nativeFromJson, nativeToJson);
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateOrderVariablesBuilder location(String? t) {
|
final FirebaseDataConnect _dataConnect;
|
||||||
|
CreateOrderVariablesBuilder vendorId(String? t) {
|
||||||
|
_vendorId.value = t;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
CreateOrderVariablesBuilder location(String? t) {
|
||||||
_location.value = t;
|
_location.value = t;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -101,7 +106,7 @@ class CreateOrderVariablesBuilder {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateOrderVariablesBuilder(this._dataConnect, {required this.vendorId,required this.businessId,required this.orderType,});
|
CreateOrderVariablesBuilder(this._dataConnect, {required this.businessId,required this.orderType,});
|
||||||
Deserializer<CreateOrderData> dataDeserializer = (dynamic json) => CreateOrderData.fromJson(jsonDecode(json));
|
Deserializer<CreateOrderData> dataDeserializer = (dynamic json) => CreateOrderData.fromJson(jsonDecode(json));
|
||||||
Serializer<CreateOrderVariables> varsSerializer = (CreateOrderVariables vars) => jsonEncode(vars.toJson());
|
Serializer<CreateOrderVariables> varsSerializer = (CreateOrderVariables vars) => jsonEncode(vars.toJson());
|
||||||
Future<OperationResult<CreateOrderData, CreateOrderVariables>> execute() {
|
Future<OperationResult<CreateOrderData, CreateOrderVariables>> execute() {
|
||||||
@@ -109,7 +114,7 @@ class CreateOrderVariablesBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MutationRef<CreateOrderData, CreateOrderVariables> ref() {
|
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,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,);
|
||||||
return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars);
|
return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -184,7 +189,7 @@ class CreateOrderData {
|
|||||||
|
|
||||||
@immutable
|
@immutable
|
||||||
class CreateOrderVariables {
|
class CreateOrderVariables {
|
||||||
final String vendorId;
|
late final Optional<String>vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final OrderType orderType;
|
final OrderType orderType;
|
||||||
late final Optional<String>location;
|
late final Optional<String>location;
|
||||||
@@ -209,11 +214,13 @@ class CreateOrderVariables {
|
|||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
||||||
CreateOrderVariables.fromJson(Map<String, dynamic> json):
|
CreateOrderVariables.fromJson(Map<String, dynamic> json):
|
||||||
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = OrderType.values.byName(json['orderType']) {
|
orderType = OrderType.values.byName(json['orderType']) {
|
||||||
|
|
||||||
|
|
||||||
|
vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
||||||
|
vendorId.value = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -333,7 +340,9 @@ class CreateOrderVariables {
|
|||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
Map<String, dynamic> json = {};
|
Map<String, dynamic> json = {};
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if(vendorId.state == OptionalState.set) {
|
||||||
|
json['vendorId'] = vendorId.toJson();
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderType.name
|
orderType.name
|
||||||
|
|||||||
@@ -240,9 +240,9 @@ class FilterShiftsShiftsOrder {
|
|||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final FilterShiftsShiftsOrderBusiness business;
|
final FilterShiftsShiftsOrderBusiness business;
|
||||||
final FilterShiftsShiftsOrderVendor vendor;
|
final FilterShiftsShiftsOrderVendor? vendor;
|
||||||
FilterShiftsShiftsOrder.fromJson(dynamic json):
|
FilterShiftsShiftsOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
@@ -250,9 +250,9 @@ class FilterShiftsShiftsOrder {
|
|||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
business = FilterShiftsShiftsOrderBusiness.fromJson(json['business']),
|
business = FilterShiftsShiftsOrderBusiness.fromJson(json['business']),
|
||||||
vendor = FilterShiftsShiftsOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : FilterShiftsShiftsOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -290,9 +290,13 @@ class FilterShiftsShiftsOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,9 +306,9 @@ class FilterShiftsShiftsOrder {
|
|||||||
required this.status,
|
required this.status,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -200,14 +200,14 @@ class GetApplicationByIdApplicationShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String? location;
|
final String? location;
|
||||||
final GetApplicationByIdApplicationShiftOrderBusiness business;
|
final GetApplicationByIdApplicationShiftOrderBusiness business;
|
||||||
final GetApplicationByIdApplicationShiftOrderVendor vendor;
|
final GetApplicationByIdApplicationShiftOrderVendor? vendor;
|
||||||
GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json):
|
GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']),
|
business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -239,7 +239,9 @@ class GetApplicationByIdApplicationShiftOrder {
|
|||||||
json['location'] = nativeToJson<String?>(location);
|
json['location'] = nativeToJson<String?>(location);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -248,7 +250,7 @@ class GetApplicationByIdApplicationShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
this.location,
|
this.location,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -200,14 +200,14 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String? location;
|
final String? location;
|
||||||
final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business;
|
final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business;
|
||||||
final GetApplicationsByShiftIdApplicationsShiftOrderVendor vendor;
|
final GetApplicationsByShiftIdApplicationsShiftOrderVendor? vendor;
|
||||||
GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json):
|
GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']),
|
business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -239,7 +239,9 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
|
|||||||
json['location'] = nativeToJson<String?>(location);
|
json['location'] = nativeToJson<String?>(location);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -248,7 +250,7 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
this.location,
|
this.location,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -211,14 +211,14 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String? location;
|
final String? location;
|
||||||
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business;
|
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business;
|
||||||
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor vendor;
|
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor? vendor;
|
||||||
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json):
|
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']),
|
business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -250,7 +250,9 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
|
|||||||
json['location'] = nativeToJson<String?>(location);
|
json['location'] = nativeToJson<String?>(location);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,7 +261,7 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
this.location,
|
this.location,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -210,14 +210,14 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String? location;
|
final String? location;
|
||||||
final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business;
|
final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business;
|
||||||
final GetApplicationsByStaffIdApplicationsShiftOrderVendor vendor;
|
final GetApplicationsByStaffIdApplicationsShiftOrderVendor? vendor;
|
||||||
GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json):
|
GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']),
|
business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -249,7 +249,9 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
|
|||||||
json['location'] = nativeToJson<String?>(location);
|
json['location'] = nativeToJson<String?>(location);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -258,7 +260,7 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
this.location,
|
this.location,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -490,14 +490,14 @@ class GetAssignmentByIdAssignmentShiftRoleShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final GetAssignmentByIdAssignmentShiftRoleShiftOrderBusiness business;
|
final GetAssignmentByIdAssignmentShiftRoleShiftOrderBusiness business;
|
||||||
final GetAssignmentByIdAssignmentShiftRoleShiftOrderVendor vendor;
|
final GetAssignmentByIdAssignmentShiftRoleShiftOrderVendor? vendor;
|
||||||
GetAssignmentByIdAssignmentShiftRoleShiftOrder.fromJson(dynamic json):
|
GetAssignmentByIdAssignmentShiftRoleShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
business = GetAssignmentByIdAssignmentShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
business = GetAssignmentByIdAssignmentShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetAssignmentByIdAssignmentShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetAssignmentByIdAssignmentShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -529,7 +529,9 @@ class GetAssignmentByIdAssignmentShiftRoleShiftOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -538,7 +540,7 @@ class GetAssignmentByIdAssignmentShiftRoleShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class GetOrderByIdVariablesBuilder {
|
|||||||
class GetOrderByIdOrder {
|
class GetOrderByIdOrder {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -43,12 +43,12 @@ class GetOrderByIdOrder {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetOrderByIdOrderBusiness business;
|
final GetOrderByIdOrderBusiness business;
|
||||||
final GetOrderByIdOrderVendor vendor;
|
final GetOrderByIdOrderVendor? vendor;
|
||||||
GetOrderByIdOrder.fromJson(dynamic json):
|
GetOrderByIdOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -70,7 +70,7 @@ class GetOrderByIdOrder {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetOrderByIdOrderBusiness.fromJson(json['business']),
|
business = GetOrderByIdOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetOrderByIdOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetOrderByIdOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -118,7 +118,9 @@ class GetOrderByIdOrder {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -180,14 +182,16 @@ class GetOrderByIdOrder {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOrderByIdOrder({
|
GetOrderByIdOrder({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -209,7 +213,7 @@ class GetOrderByIdOrder {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class GetOrdersByBusinessIdVariablesBuilder {
|
|||||||
class GetOrdersByBusinessIdOrders {
|
class GetOrdersByBusinessIdOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -53,12 +53,12 @@ class GetOrdersByBusinessIdOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetOrdersByBusinessIdOrdersBusiness business;
|
final GetOrdersByBusinessIdOrdersBusiness business;
|
||||||
final GetOrdersByBusinessIdOrdersVendor vendor;
|
final GetOrdersByBusinessIdOrdersVendor? vendor;
|
||||||
GetOrdersByBusinessIdOrders.fromJson(dynamic json):
|
GetOrdersByBusinessIdOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -80,7 +80,7 @@ class GetOrdersByBusinessIdOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetOrdersByBusinessIdOrdersBusiness.fromJson(json['business']),
|
business = GetOrdersByBusinessIdOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = GetOrdersByBusinessIdOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetOrdersByBusinessIdOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -128,7 +128,9 @@ class GetOrdersByBusinessIdOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -190,14 +192,16 @@ class GetOrdersByBusinessIdOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOrdersByBusinessIdOrders({
|
GetOrdersByBusinessIdOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -219,7 +223,7 @@ class GetOrdersByBusinessIdOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class GetOrdersByDateRangeVariablesBuilder {
|
|||||||
class GetOrdersByDateRangeOrders {
|
class GetOrdersByDateRangeOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -54,12 +54,12 @@ class GetOrdersByDateRangeOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetOrdersByDateRangeOrdersBusiness business;
|
final GetOrdersByDateRangeOrdersBusiness business;
|
||||||
final GetOrdersByDateRangeOrdersVendor vendor;
|
final GetOrdersByDateRangeOrdersVendor? vendor;
|
||||||
GetOrdersByDateRangeOrders.fromJson(dynamic json):
|
GetOrdersByDateRangeOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -81,7 +81,7 @@ class GetOrdersByDateRangeOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetOrdersByDateRangeOrdersBusiness.fromJson(json['business']),
|
business = GetOrdersByDateRangeOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = GetOrdersByDateRangeOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetOrdersByDateRangeOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -129,7 +129,9 @@ class GetOrdersByDateRangeOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -191,14 +193,16 @@ class GetOrdersByDateRangeOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOrdersByDateRangeOrders({
|
GetOrdersByDateRangeOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -220,7 +224,7 @@ class GetOrdersByDateRangeOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class GetOrdersByStatusVariablesBuilder {
|
|||||||
class GetOrdersByStatusOrders {
|
class GetOrdersByStatusOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -53,12 +53,12 @@ class GetOrdersByStatusOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetOrdersByStatusOrdersBusiness business;
|
final GetOrdersByStatusOrdersBusiness business;
|
||||||
final GetOrdersByStatusOrdersVendor vendor;
|
final GetOrdersByStatusOrdersVendor? vendor;
|
||||||
GetOrdersByStatusOrders.fromJson(dynamic json):
|
GetOrdersByStatusOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -80,7 +80,7 @@ class GetOrdersByStatusOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetOrdersByStatusOrdersBusiness.fromJson(json['business']),
|
business = GetOrdersByStatusOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = GetOrdersByStatusOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetOrdersByStatusOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -128,7 +128,9 @@ class GetOrdersByStatusOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -190,14 +192,16 @@ class GetOrdersByStatusOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOrdersByStatusOrders({
|
GetOrdersByStatusOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -219,7 +223,7 @@ class GetOrdersByStatusOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class GetOrdersByVendorIdVariablesBuilder {
|
|||||||
class GetOrdersByVendorIdOrders {
|
class GetOrdersByVendorIdOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -53,12 +53,12 @@ class GetOrdersByVendorIdOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetOrdersByVendorIdOrdersBusiness business;
|
final GetOrdersByVendorIdOrdersBusiness business;
|
||||||
final GetOrdersByVendorIdOrdersVendor vendor;
|
final GetOrdersByVendorIdOrdersVendor? vendor;
|
||||||
GetOrdersByVendorIdOrders.fromJson(dynamic json):
|
GetOrdersByVendorIdOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -80,7 +80,7 @@ class GetOrdersByVendorIdOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetOrdersByVendorIdOrdersBusiness.fromJson(json['business']),
|
business = GetOrdersByVendorIdOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = GetOrdersByVendorIdOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetOrdersByVendorIdOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -128,7 +128,9 @@ class GetOrdersByVendorIdOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -190,14 +192,16 @@ class GetOrdersByVendorIdOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetOrdersByVendorIdOrders({
|
GetOrdersByVendorIdOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -219,7 +223,7 @@ class GetOrdersByVendorIdOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class GetRapidOrdersVariablesBuilder {
|
|||||||
class GetRapidOrdersOrders {
|
class GetRapidOrdersOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -53,12 +53,12 @@ class GetRapidOrdersOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final GetRapidOrdersOrdersBusiness business;
|
final GetRapidOrdersOrdersBusiness business;
|
||||||
final GetRapidOrdersOrdersVendor vendor;
|
final GetRapidOrdersOrdersVendor? vendor;
|
||||||
GetRapidOrdersOrders.fromJson(dynamic json):
|
GetRapidOrdersOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -80,7 +80,7 @@ class GetRapidOrdersOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = GetRapidOrdersOrdersBusiness.fromJson(json['business']),
|
business = GetRapidOrdersOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = GetRapidOrdersOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetRapidOrdersOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -128,7 +128,9 @@ class GetRapidOrdersOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -190,14 +192,16 @@ class GetRapidOrdersOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetRapidOrdersOrders({
|
GetRapidOrdersOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -219,7 +223,7 @@ class GetRapidOrdersOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -210,9 +210,9 @@ class GetShiftByIdShiftOrder {
|
|||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final GetShiftByIdShiftOrderBusiness business;
|
final GetShiftByIdShiftOrderBusiness business;
|
||||||
final GetShiftByIdShiftOrderVendor vendor;
|
final GetShiftByIdShiftOrderVendor? vendor;
|
||||||
GetShiftByIdShiftOrder.fromJson(dynamic json):
|
GetShiftByIdShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
@@ -220,9 +220,9 @@ class GetShiftByIdShiftOrder {
|
|||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
business = GetShiftByIdShiftOrderBusiness.fromJson(json['business']),
|
business = GetShiftByIdShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetShiftByIdShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetShiftByIdShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -260,9 +260,13 @@ class GetShiftByIdShiftOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -272,9 +276,9 @@ class GetShiftByIdShiftOrder {
|
|||||||
required this.status,
|
required this.status,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -252,14 +252,14 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
|
|||||||
final AnyValue? permanentDays;
|
final AnyValue? permanentDays;
|
||||||
final String? notes;
|
final String? notes;
|
||||||
final GetShiftRoleByIdShiftRoleShiftOrderBusiness business;
|
final GetShiftRoleByIdShiftRoleShiftOrderBusiness business;
|
||||||
final GetShiftRoleByIdShiftRoleShiftOrderVendor vendor;
|
final GetShiftRoleByIdShiftRoleShiftOrderVendor? vendor;
|
||||||
GetShiftRoleByIdShiftRoleShiftOrder.fromJson(dynamic json):
|
GetShiftRoleByIdShiftRoleShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
||||||
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
business = GetShiftRoleByIdShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
business = GetShiftRoleByIdShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetShiftRoleByIdShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetShiftRoleByIdShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -293,7 +293,9 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
|
|||||||
json['notes'] = nativeToJson<String?>(notes);
|
json['notes'] = nativeToJson<String?>(notes);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +304,7 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
|
|||||||
this.permanentDays,
|
this.permanentDays,
|
||||||
this.notes,
|
this.notes,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,9 +230,9 @@ class GetShiftsByBusinessIdShiftsOrder {
|
|||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final GetShiftsByBusinessIdShiftsOrderBusiness business;
|
final GetShiftsByBusinessIdShiftsOrderBusiness business;
|
||||||
final GetShiftsByBusinessIdShiftsOrderVendor vendor;
|
final GetShiftsByBusinessIdShiftsOrderVendor? vendor;
|
||||||
GetShiftsByBusinessIdShiftsOrder.fromJson(dynamic json):
|
GetShiftsByBusinessIdShiftsOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
@@ -240,9 +240,9 @@ class GetShiftsByBusinessIdShiftsOrder {
|
|||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
business = GetShiftsByBusinessIdShiftsOrderBusiness.fromJson(json['business']),
|
business = GetShiftsByBusinessIdShiftsOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetShiftsByBusinessIdShiftsOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetShiftsByBusinessIdShiftsOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -280,9 +280,13 @@ class GetShiftsByBusinessIdShiftsOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,9 +296,9 @@ class GetShiftsByBusinessIdShiftsOrder {
|
|||||||
required this.status,
|
required this.status,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,9 +230,9 @@ class GetShiftsByVendorIdShiftsOrder {
|
|||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final GetShiftsByVendorIdShiftsOrderBusiness business;
|
final GetShiftsByVendorIdShiftsOrderBusiness business;
|
||||||
final GetShiftsByVendorIdShiftsOrderVendor vendor;
|
final GetShiftsByVendorIdShiftsOrderVendor? vendor;
|
||||||
GetShiftsByVendorIdShiftsOrder.fromJson(dynamic json):
|
GetShiftsByVendorIdShiftsOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
@@ -240,9 +240,9 @@ class GetShiftsByVendorIdShiftsOrder {
|
|||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
business = GetShiftsByVendorIdShiftsOrderBusiness.fromJson(json['business']),
|
business = GetShiftsByVendorIdShiftsOrderBusiness.fromJson(json['business']),
|
||||||
vendor = GetShiftsByVendorIdShiftsOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : GetShiftsByVendorIdShiftsOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -280,9 +280,13 @@ class GetShiftsByVendorIdShiftsOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,9 +296,9 @@ class GetShiftsByVendorIdShiftsOrder {
|
|||||||
required this.status,
|
required this.status,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -199,14 +199,14 @@ class ListApplicationsApplicationsShiftOrder {
|
|||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String? location;
|
final String? location;
|
||||||
final ListApplicationsApplicationsShiftOrderBusiness business;
|
final ListApplicationsApplicationsShiftOrderBusiness business;
|
||||||
final ListApplicationsApplicationsShiftOrderVendor vendor;
|
final ListApplicationsApplicationsShiftOrderVendor? vendor;
|
||||||
ListApplicationsApplicationsShiftOrder.fromJson(dynamic json):
|
ListApplicationsApplicationsShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']),
|
business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -238,7 +238,9 @@ class ListApplicationsApplicationsShiftOrder {
|
|||||||
json['location'] = nativeToJson<String?>(location);
|
json['location'] = nativeToJson<String?>(location);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,7 +249,7 @@ class ListApplicationsApplicationsShiftOrder {
|
|||||||
this.eventName,
|
this.eventName,
|
||||||
this.location,
|
this.location,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -398,13 +398,13 @@ class ListAssignmentsAssignmentsShiftRoleShiftOrder {
|
|||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final ListAssignmentsAssignmentsShiftRoleShiftOrderBusiness business;
|
final ListAssignmentsAssignmentsShiftRoleShiftOrderBusiness business;
|
||||||
final ListAssignmentsAssignmentsShiftRoleShiftOrderVendor vendor;
|
final ListAssignmentsAssignmentsShiftRoleShiftOrderVendor? vendor;
|
||||||
ListAssignmentsAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
ListAssignmentsAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
business = ListAssignmentsAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
business = ListAssignmentsAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListAssignmentsAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListAssignmentsAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -432,7 +432,9 @@ class ListAssignmentsAssignmentsShiftRoleShiftOrder {
|
|||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,7 +442,7 @@ class ListAssignmentsAssignmentsShiftRoleShiftOrder {
|
|||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -365,13 +365,13 @@ class ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrder {
|
|||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderBusiness business;
|
final ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderBusiness business;
|
||||||
final ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderVendor vendor;
|
final ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderVendor? vendor;
|
||||||
ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
business = ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
business = ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -399,7 +399,9 @@ class ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrder {
|
|||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -407,7 +409,7 @@ class ListAssignmentsByWorkforceIdAssignmentsShiftRoleShiftOrder {
|
|||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -316,13 +316,13 @@ class ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrder {
|
|||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderBusiness business;
|
final ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderBusiness business;
|
||||||
final ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderVendor vendor;
|
final ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderVendor? vendor;
|
||||||
ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
business = ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
business = ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -350,7 +350,9 @@ class ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrder {
|
|||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +360,7 @@ class ListAssignmentsByWorkforceIdsAssignmentsShiftRoleShiftOrder {
|
|||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class ListOrdersVariablesBuilder {
|
|||||||
class ListOrdersOrders {
|
class ListOrdersOrders {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String? location;
|
final String? location;
|
||||||
@@ -53,12 +53,12 @@ class ListOrdersOrders {
|
|||||||
final String? notes;
|
final String? notes;
|
||||||
final Timestamp? createdAt;
|
final Timestamp? createdAt;
|
||||||
final ListOrdersOrdersBusiness business;
|
final ListOrdersOrdersBusiness business;
|
||||||
final ListOrdersOrdersVendor vendor;
|
final ListOrdersOrdersVendor? vendor;
|
||||||
ListOrdersOrders.fromJson(dynamic json):
|
ListOrdersOrders.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
|
||||||
@@ -80,7 +80,7 @@ class ListOrdersOrders {
|
|||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
|
||||||
business = ListOrdersOrdersBusiness.fromJson(json['business']),
|
business = ListOrdersOrdersBusiness.fromJson(json['business']),
|
||||||
vendor = ListOrdersOrdersVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListOrdersOrdersVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -128,7 +128,9 @@ class ListOrdersOrders {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -190,14 +192,16 @@ class ListOrdersOrders {
|
|||||||
json['createdAt'] = createdAt!.toJson();
|
json['createdAt'] = createdAt!.toJson();
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
ListOrdersOrders({
|
ListOrdersOrders({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
this.location,
|
this.location,
|
||||||
@@ -219,7 +223,7 @@ class ListOrdersOrders {
|
|||||||
this.notes,
|
this.notes,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -261,14 +261,14 @@ class ListShiftRolesByRoleIdShiftRolesShiftOrder {
|
|||||||
final AnyValue? permanentDays;
|
final AnyValue? permanentDays;
|
||||||
final String? notes;
|
final String? notes;
|
||||||
final ListShiftRolesByRoleIdShiftRolesShiftOrderBusiness business;
|
final ListShiftRolesByRoleIdShiftRolesShiftOrderBusiness business;
|
||||||
final ListShiftRolesByRoleIdShiftRolesShiftOrderVendor vendor;
|
final ListShiftRolesByRoleIdShiftRolesShiftOrderVendor? vendor;
|
||||||
ListShiftRolesByRoleIdShiftRolesShiftOrder.fromJson(dynamic json):
|
ListShiftRolesByRoleIdShiftRolesShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
||||||
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
business = ListShiftRolesByRoleIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
business = ListShiftRolesByRoleIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListShiftRolesByRoleIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListShiftRolesByRoleIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -302,7 +302,9 @@ class ListShiftRolesByRoleIdShiftRolesShiftOrder {
|
|||||||
json['notes'] = nativeToJson<String?>(notes);
|
json['notes'] = nativeToJson<String?>(notes);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +313,7 @@ class ListShiftRolesByRoleIdShiftRolesShiftOrder {
|
|||||||
this.permanentDays,
|
this.permanentDays,
|
||||||
this.notes,
|
this.notes,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -261,14 +261,14 @@ class ListShiftRolesByShiftIdShiftRolesShiftOrder {
|
|||||||
final AnyValue? permanentDays;
|
final AnyValue? permanentDays;
|
||||||
final String? notes;
|
final String? notes;
|
||||||
final ListShiftRolesByShiftIdShiftRolesShiftOrderBusiness business;
|
final ListShiftRolesByShiftIdShiftRolesShiftOrderBusiness business;
|
||||||
final ListShiftRolesByShiftIdShiftRolesShiftOrderVendor vendor;
|
final ListShiftRolesByShiftIdShiftRolesShiftOrderVendor? vendor;
|
||||||
ListShiftRolesByShiftIdShiftRolesShiftOrder.fromJson(dynamic json):
|
ListShiftRolesByShiftIdShiftRolesShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
||||||
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
business = ListShiftRolesByShiftIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
business = ListShiftRolesByShiftIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListShiftRolesByShiftIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListShiftRolesByShiftIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -302,7 +302,9 @@ class ListShiftRolesByShiftIdShiftRolesShiftOrder {
|
|||||||
json['notes'] = nativeToJson<String?>(notes);
|
json['notes'] = nativeToJson<String?>(notes);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,7 +313,7 @@ class ListShiftRolesByShiftIdShiftRolesShiftOrder {
|
|||||||
this.permanentDays,
|
this.permanentDays,
|
||||||
this.notes,
|
this.notes,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -263,14 +263,14 @@ class ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrder {
|
|||||||
final AnyValue? permanentDays;
|
final AnyValue? permanentDays;
|
||||||
final String? notes;
|
final String? notes;
|
||||||
final ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderBusiness business;
|
final ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderBusiness business;
|
||||||
final ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderVendor vendor;
|
final ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderVendor? vendor;
|
||||||
ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrder.fromJson(dynamic json):
|
ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
|
||||||
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
business = ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
business = ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -304,7 +304,9 @@ class ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrder {
|
|||||||
json['notes'] = nativeToJson<String?>(notes);
|
json['notes'] = nativeToJson<String?>(notes);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,7 +315,7 @@ class ListShiftRolesByShiftIdAndTimeRangeShiftRolesShiftOrder {
|
|||||||
this.permanentDays,
|
this.permanentDays,
|
||||||
this.notes,
|
this.notes,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ class ListShiftRolesByVendorIdShiftRolesShift {
|
|||||||
class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
||||||
final String id;
|
final String id;
|
||||||
final String? eventName;
|
final String? eventName;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
@@ -285,12 +285,12 @@ class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
|||||||
final AnyValue? permanentDays;
|
final AnyValue? permanentDays;
|
||||||
final String? notes;
|
final String? notes;
|
||||||
final ListShiftRolesByVendorIdShiftRolesShiftOrderBusiness business;
|
final ListShiftRolesByVendorIdShiftRolesShiftOrderBusiness business;
|
||||||
final ListShiftRolesByVendorIdShiftRolesShiftOrderVendor vendor;
|
final ListShiftRolesByVendorIdShiftRolesShiftOrderVendor? vendor;
|
||||||
ListShiftRolesByVendorIdShiftRolesShiftOrder.fromJson(dynamic json):
|
ListShiftRolesByVendorIdShiftRolesShiftOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
@@ -299,7 +299,7 @@ class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
|||||||
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
|
||||||
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
|
||||||
business = ListShiftRolesByVendorIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
business = ListShiftRolesByVendorIdShiftRolesShiftOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListShiftRolesByVendorIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListShiftRolesByVendorIdShiftRolesShiftOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -334,7 +334,9 @@ class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
|||||||
if (eventName != null) {
|
if (eventName != null) {
|
||||||
json['eventName'] = nativeToJson<String?>(eventName);
|
json['eventName'] = nativeToJson<String?>(eventName);
|
||||||
}
|
}
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['orderType'] =
|
json['orderType'] =
|
||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
@@ -355,14 +357,16 @@ class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
|||||||
json['notes'] = nativeToJson<String?>(notes);
|
json['notes'] = nativeToJson<String?>(notes);
|
||||||
}
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
ListShiftRolesByVendorIdShiftRolesShiftOrder({
|
ListShiftRolesByVendorIdShiftRolesShiftOrder({
|
||||||
required this.id,
|
required this.id,
|
||||||
this.eventName,
|
this.eventName,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.status,
|
required this.status,
|
||||||
@@ -371,7 +375,7 @@ class ListShiftRolesByVendorIdShiftRolesShiftOrder {
|
|||||||
this.permanentDays,
|
this.permanentDays,
|
||||||
this.notes,
|
this.notes,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,9 +220,9 @@ class ListShiftsShiftsOrder {
|
|||||||
final EnumValue<OrderStatus> status;
|
final EnumValue<OrderStatus> status;
|
||||||
final EnumValue<OrderType> orderType;
|
final EnumValue<OrderType> orderType;
|
||||||
final String businessId;
|
final String businessId;
|
||||||
final String vendorId;
|
final String? vendorId;
|
||||||
final ListShiftsShiftsOrderBusiness business;
|
final ListShiftsShiftsOrderBusiness business;
|
||||||
final ListShiftsShiftsOrderVendor vendor;
|
final ListShiftsShiftsOrderVendor? vendor;
|
||||||
ListShiftsShiftsOrder.fromJson(dynamic json):
|
ListShiftsShiftsOrder.fromJson(dynamic json):
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
id = nativeFromJson<String>(json['id']),
|
||||||
@@ -230,9 +230,9 @@ class ListShiftsShiftsOrder {
|
|||||||
status = orderStatusDeserializer(json['status']),
|
status = orderStatusDeserializer(json['status']),
|
||||||
orderType = orderTypeDeserializer(json['orderType']),
|
orderType = orderTypeDeserializer(json['orderType']),
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
businessId = nativeFromJson<String>(json['businessId']),
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
|
||||||
business = ListShiftsShiftsOrderBusiness.fromJson(json['business']),
|
business = ListShiftsShiftsOrderBusiness.fromJson(json['business']),
|
||||||
vendor = ListShiftsShiftsOrderVendor.fromJson(json['vendor']);
|
vendor = json['vendor'] == null ? null : ListShiftsShiftsOrderVendor.fromJson(json['vendor']);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
if(identical(this, other)) {
|
if(identical(this, other)) {
|
||||||
@@ -270,9 +270,13 @@ class ListShiftsShiftsOrder {
|
|||||||
orderTypeSerializer(orderType)
|
orderTypeSerializer(orderType)
|
||||||
;
|
;
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
json['businessId'] = nativeToJson<String>(businessId);
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
if (vendorId != null) {
|
||||||
|
json['vendorId'] = nativeToJson<String?>(vendorId);
|
||||||
|
}
|
||||||
json['business'] = business.toJson();
|
json['business'] = business.toJson();
|
||||||
json['vendor'] = vendor.toJson();
|
if (vendor != null) {
|
||||||
|
json['vendor'] = vendor!.toJson();
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,9 +286,9 @@ class ListShiftsShiftsOrder {
|
|||||||
required this.status,
|
required this.status,
|
||||||
required this.orderType,
|
required this.orderType,
|
||||||
required this.businessId,
|
required this.businessId,
|
||||||
required this.vendorId,
|
this.vendorId,
|
||||||
required this.business,
|
required this.business,
|
||||||
required this.vendor,
|
this.vendor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user