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