Remove generated files for UpdateWorkforce and VaidateDayStaffApplication classes to streamline codebase and eliminate unused code.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -110,6 +110,9 @@ vite.config.ts.timestamp-*
|
|||||||
.flutter-plugins
|
.flutter-plugins
|
||||||
.flutter-plugins-dependencies
|
.flutter-plugins-dependencies
|
||||||
|
|
||||||
|
# Firebase Data Connect Generated SDK (regenerated via make mobile-install)
|
||||||
|
**/dataconnect_generated/
|
||||||
|
|
||||||
# Android
|
# Android
|
||||||
.gradle/
|
.gradle/
|
||||||
**/android/app/libs/
|
**/android/app/libs/
|
||||||
|
|||||||
@@ -27,15 +27,21 @@ The project is organized into modular packages to ensure separation of concerns
|
|||||||
Ensure you have the Flutter SDK installed and configured.
|
Ensure you have the Flutter SDK installed and configured.
|
||||||
|
|
||||||
### 2. Initial Setup
|
### 2. Initial Setup
|
||||||
Run the following command from the **project root** to install Melos, bootstrap all packages, and generate localization files:
|
Run the following command from the **project root** to install Melos, bootstrap all packages, generate localization files, and generate the Firebase Data Connect SDK:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Using Makefile
|
# Using Makefile (Recommended)
|
||||||
make mobile-install
|
make mobile-install
|
||||||
# Using Melos
|
|
||||||
melos bootstrap
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This command will:
|
||||||
|
- Install Melos if not already installed
|
||||||
|
- Generate the Firebase Data Connect SDK from schema files
|
||||||
|
- Bootstrap all packages (install dependencies)
|
||||||
|
- Generate localization files
|
||||||
|
|
||||||
|
**Note:** The Firebase Data Connect SDK files (`dataconnect_generated/`) are auto-generated and not committed to the repository. They will be regenerated automatically when you run `make mobile-install` or any mobile development commands.
|
||||||
|
|
||||||
### 3. Running the Apps
|
### 3. Running the Apps
|
||||||
You can run the applications using Melos scripts or through the `Makefile`:
|
You can run the applications using Melos scripts or through the `Makefile`:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"description": "A set of guides for interacting with the generated firebase dataconnect sdk",
|
|
||||||
"mcpServers": {
|
|
||||||
"firebase": {
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "firebase-tools@latest", "experimental:mcp"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Setup
|
|
||||||
|
|
||||||
This guide will walk you through setting up your environment to use the Firebase Data Connect SDK. Mostly using
|
|
||||||
documentation listed [here](https://firebase.google.com/docs/flutter/setup?platform=ios#install-cli-tools).
|
|
||||||
|
|
||||||
1. Make sure you have the latest Firebase CLI tools installed. Follow the instructions [here](https://firebase.google.com/docs/cli#setup_update_cli) to install.
|
|
||||||
2. Log into your Firebase account:
|
|
||||||
```sh
|
|
||||||
firebase login
|
|
||||||
```
|
|
||||||
3. Install the FlutterFire CLI by running the following command from any directory:
|
|
||||||
```sh
|
|
||||||
dart pub global activate flutterfire_cli
|
|
||||||
```
|
|
||||||
4. Make sure the user has initialized Firebase already based on the instructions [here](https://firebase.google.com/docs/flutter/setup?platform=ios#initialize-firebase).
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Basic Usage
|
|
||||||
|
|
||||||
```dart
|
|
||||||
ExampleConnector.instance.createRoleCategory(createRoleCategoryVariables).execute();
|
|
||||||
ExampleConnector.instance.updateRoleCategory(updateRoleCategoryVariables).execute();
|
|
||||||
ExampleConnector.instance.deleteRoleCategory(deleteRoleCategoryVariables).execute();
|
|
||||||
ExampleConnector.instance.listShifts(listShiftsVariables).execute();
|
|
||||||
ExampleConnector.instance.getShiftById(getShiftByIdVariables).execute();
|
|
||||||
ExampleConnector.instance.filterShifts(filterShiftsVariables).execute();
|
|
||||||
ExampleConnector.instance.getShiftsByBusinessId(getShiftsByBusinessIdVariables).execute();
|
|
||||||
ExampleConnector.instance.getShiftsByVendorId(getShiftsByVendorIdVariables).execute();
|
|
||||||
ExampleConnector.instance.listStaff().execute();
|
|
||||||
ExampleConnector.instance.getStaffById(getStaffByIdVariables).execute();
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Optional Fields
|
|
||||||
|
|
||||||
Some operations may have optional fields. In these cases, the Flutter SDK exposes a builder method, and will have to be set separately.
|
|
||||||
|
|
||||||
Optional fields can be discovered based on classes that have `Optional` object types.
|
|
||||||
|
|
||||||
This is an example of a mutation with an optional field:
|
|
||||||
|
|
||||||
```dart
|
|
||||||
await ExampleConnector.instance.updateHub({ ... })
|
|
||||||
.name(...)
|
|
||||||
.execute();
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: the above example is a mutation, but the same logic applies to query operations as well. Additionally, `createMovie` is an example, and may not be available to the user.
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,88 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class AcceptInviteByCodeVariablesBuilder {
|
|
||||||
String inviteCode;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
AcceptInviteByCodeVariablesBuilder(this._dataConnect, {required this.inviteCode,});
|
|
||||||
Deserializer<AcceptInviteByCodeData> dataDeserializer = (dynamic json) => AcceptInviteByCodeData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<AcceptInviteByCodeVariables> varsSerializer = (AcceptInviteByCodeVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<AcceptInviteByCodeData, AcceptInviteByCodeVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<AcceptInviteByCodeData, AcceptInviteByCodeVariables> ref() {
|
|
||||||
AcceptInviteByCodeVariables vars= AcceptInviteByCodeVariables(inviteCode: inviteCode,);
|
|
||||||
return _dataConnect.mutation("acceptInviteByCode", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class AcceptInviteByCodeData {
|
|
||||||
final int teamMember_updateMany;
|
|
||||||
AcceptInviteByCodeData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMember_updateMany = nativeFromJson<int>(json['teamMember_updateMany']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final AcceptInviteByCodeData otherTyped = other as AcceptInviteByCodeData;
|
|
||||||
return teamMember_updateMany == otherTyped.teamMember_updateMany;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamMember_updateMany.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMember_updateMany'] = nativeToJson<int>(teamMember_updateMany);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
AcceptInviteByCodeData({
|
|
||||||
required this.teamMember_updateMany,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class AcceptInviteByCodeVariables {
|
|
||||||
final String inviteCode;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
AcceptInviteByCodeVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
inviteCode = nativeFromJson<String>(json['inviteCode']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final AcceptInviteByCodeVariables otherTyped = other as AcceptInviteByCodeVariables;
|
|
||||||
return inviteCode == otherTyped.inviteCode;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => inviteCode.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['inviteCode'] = nativeToJson<String>(inviteCode);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
AcceptInviteByCodeVariables({
|
|
||||||
required this.inviteCode,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CancelInviteByCodeVariablesBuilder {
|
|
||||||
String inviteCode;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CancelInviteByCodeVariablesBuilder(this._dataConnect, {required this.inviteCode,});
|
|
||||||
Deserializer<CancelInviteByCodeData> dataDeserializer = (dynamic json) => CancelInviteByCodeData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CancelInviteByCodeVariables> varsSerializer = (CancelInviteByCodeVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CancelInviteByCodeData, CancelInviteByCodeVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CancelInviteByCodeData, CancelInviteByCodeVariables> ref() {
|
|
||||||
CancelInviteByCodeVariables vars= CancelInviteByCodeVariables(inviteCode: inviteCode,);
|
|
||||||
return _dataConnect.mutation("cancelInviteByCode", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CancelInviteByCodeData {
|
|
||||||
final int teamMember_updateMany;
|
|
||||||
CancelInviteByCodeData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMember_updateMany = nativeFromJson<int>(json['teamMember_updateMany']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CancelInviteByCodeData otherTyped = other as CancelInviteByCodeData;
|
|
||||||
return teamMember_updateMany == otherTyped.teamMember_updateMany;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamMember_updateMany.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMember_updateMany'] = nativeToJson<int>(teamMember_updateMany);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CancelInviteByCodeData({
|
|
||||||
required this.teamMember_updateMany,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CancelInviteByCodeVariables {
|
|
||||||
final String inviteCode;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CancelInviteByCodeVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
inviteCode = nativeFromJson<String>(json['inviteCode']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CancelInviteByCodeVariables otherTyped = other as CancelInviteByCodeVariables;
|
|
||||||
return inviteCode == otherTyped.inviteCode;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => inviteCode.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['inviteCode'] = nativeToJson<String>(inviteCode);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CancelInviteByCodeVariables({
|
|
||||||
required this.inviteCode,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,208 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateAccountVariablesBuilder {
|
|
||||||
String bank;
|
|
||||||
AccountType type;
|
|
||||||
String last4;
|
|
||||||
Optional<bool> _isPrimary = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String ownerId;
|
|
||||||
Optional<String> _accountNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateAccountVariablesBuilder isPrimary(bool? t) {
|
|
||||||
_isPrimary.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAccountVariablesBuilder accountNumber(String? t) {
|
|
||||||
_accountNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAccountVariablesBuilder routeNumber(String? t) {
|
|
||||||
_routeNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAccountVariablesBuilder expiryTime(Timestamp? t) {
|
|
||||||
_expiryTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAccountVariablesBuilder(this._dataConnect, {required this.bank,required this.type,required this.last4,required this.ownerId,});
|
|
||||||
Deserializer<CreateAccountData> dataDeserializer = (dynamic json) => CreateAccountData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateAccountVariables> varsSerializer = (CreateAccountVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateAccountData, CreateAccountVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateAccountData, CreateAccountVariables> ref() {
|
|
||||||
CreateAccountVariables vars= CreateAccountVariables(bank: bank,type: type,last4: last4,isPrimary: _isPrimary,ownerId: ownerId,accountNumber: _accountNumber,routeNumber: _routeNumber,expiryTime: _expiryTime,);
|
|
||||||
return _dataConnect.mutation("createAccount", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAccountAccountInsert {
|
|
||||||
final String id;
|
|
||||||
CreateAccountAccountInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAccountAccountInsert otherTyped = other as CreateAccountAccountInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAccountAccountInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAccountData {
|
|
||||||
final CreateAccountAccountInsert account_insert;
|
|
||||||
CreateAccountData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
account_insert = CreateAccountAccountInsert.fromJson(json['account_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAccountData otherTyped = other as CreateAccountData;
|
|
||||||
return account_insert == otherTyped.account_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => account_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['account_insert'] = account_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAccountData({
|
|
||||||
required this.account_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAccountVariables {
|
|
||||||
final String bank;
|
|
||||||
final AccountType type;
|
|
||||||
final String last4;
|
|
||||||
late final Optional<bool>isPrimary;
|
|
||||||
final String ownerId;
|
|
||||||
late final Optional<String>accountNumber;
|
|
||||||
late final Optional<String>routeNumber;
|
|
||||||
late final Optional<Timestamp>expiryTime;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateAccountVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
bank = nativeFromJson<String>(json['bank']),
|
|
||||||
type = AccountType.values.byName(json['type']),
|
|
||||||
last4 = nativeFromJson<String>(json['last4']),
|
|
||||||
ownerId = nativeFromJson<String>(json['ownerId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
isPrimary = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isPrimary.value = json['isPrimary'] == null ? null : nativeFromJson<bool>(json['isPrimary']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
accountNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
accountNumber.value = json['accountNumber'] == null ? null : nativeFromJson<String>(json['accountNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
routeNumber.value = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
|
||||||
expiryTime.value = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAccountVariables otherTyped = other as CreateAccountVariables;
|
|
||||||
return bank == otherTyped.bank &&
|
|
||||||
type == otherTyped.type &&
|
|
||||||
last4 == otherTyped.last4 &&
|
|
||||||
isPrimary == otherTyped.isPrimary &&
|
|
||||||
ownerId == otherTyped.ownerId &&
|
|
||||||
accountNumber == otherTyped.accountNumber &&
|
|
||||||
routeNumber == otherTyped.routeNumber &&
|
|
||||||
expiryTime == otherTyped.expiryTime;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['bank'] = nativeToJson<String>(bank);
|
|
||||||
json['type'] =
|
|
||||||
type.name
|
|
||||||
;
|
|
||||||
json['last4'] = nativeToJson<String>(last4);
|
|
||||||
if(isPrimary.state == OptionalState.set) {
|
|
||||||
json['isPrimary'] = isPrimary.toJson();
|
|
||||||
}
|
|
||||||
json['ownerId'] = nativeToJson<String>(ownerId);
|
|
||||||
if(accountNumber.state == OptionalState.set) {
|
|
||||||
json['accountNumber'] = accountNumber.toJson();
|
|
||||||
}
|
|
||||||
if(routeNumber.state == OptionalState.set) {
|
|
||||||
json['routeNumber'] = routeNumber.toJson();
|
|
||||||
}
|
|
||||||
if(expiryTime.state == OptionalState.set) {
|
|
||||||
json['expiryTime'] = expiryTime.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAccountVariables({
|
|
||||||
required this.bank,
|
|
||||||
required this.type,
|
|
||||||
required this.last4,
|
|
||||||
required this.isPrimary,
|
|
||||||
required this.ownerId,
|
|
||||||
required this.accountNumber,
|
|
||||||
required this.routeNumber,
|
|
||||||
required this.expiryTime,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,245 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateActivityLogVariablesBuilder {
|
|
||||||
String userId;
|
|
||||||
Timestamp date;
|
|
||||||
Optional<String> _hourStart = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _hourEnd = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _totalhours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<ActivityIconType> _iconType = Optional.optional((data) => ActivityIconType.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _iconColor = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String title;
|
|
||||||
String description;
|
|
||||||
Optional<bool> _isRead = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
ActivityType activityType;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateActivityLogVariablesBuilder hourStart(String? t) {
|
|
||||||
_hourStart.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateActivityLogVariablesBuilder hourEnd(String? t) {
|
|
||||||
_hourEnd.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateActivityLogVariablesBuilder totalhours(String? t) {
|
|
||||||
_totalhours.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateActivityLogVariablesBuilder iconType(ActivityIconType? t) {
|
|
||||||
_iconType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateActivityLogVariablesBuilder iconColor(String? t) {
|
|
||||||
_iconColor.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateActivityLogVariablesBuilder isRead(bool? t) {
|
|
||||||
_isRead.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateActivityLogVariablesBuilder(this._dataConnect, {required this.userId,required this.date,required this.title,required this.description,required this.activityType,});
|
|
||||||
Deserializer<CreateActivityLogData> dataDeserializer = (dynamic json) => CreateActivityLogData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateActivityLogVariables> varsSerializer = (CreateActivityLogVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateActivityLogData, CreateActivityLogVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateActivityLogData, CreateActivityLogVariables> ref() {
|
|
||||||
CreateActivityLogVariables vars= CreateActivityLogVariables(userId: userId,date: date,hourStart: _hourStart,hourEnd: _hourEnd,totalhours: _totalhours,iconType: _iconType,iconColor: _iconColor,title: title,description: description,isRead: _isRead,activityType: activityType,);
|
|
||||||
return _dataConnect.mutation("createActivityLog", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateActivityLogActivityLogInsert {
|
|
||||||
final String id;
|
|
||||||
CreateActivityLogActivityLogInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateActivityLogActivityLogInsert otherTyped = other as CreateActivityLogActivityLogInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateActivityLogActivityLogInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateActivityLogData {
|
|
||||||
final CreateActivityLogActivityLogInsert activityLog_insert;
|
|
||||||
CreateActivityLogData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
activityLog_insert = CreateActivityLogActivityLogInsert.fromJson(json['activityLog_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateActivityLogData otherTyped = other as CreateActivityLogData;
|
|
||||||
return activityLog_insert == otherTyped.activityLog_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => activityLog_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['activityLog_insert'] = activityLog_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateActivityLogData({
|
|
||||||
required this.activityLog_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateActivityLogVariables {
|
|
||||||
final String userId;
|
|
||||||
final Timestamp date;
|
|
||||||
late final Optional<String>hourStart;
|
|
||||||
late final Optional<String>hourEnd;
|
|
||||||
late final Optional<String>totalhours;
|
|
||||||
late final Optional<ActivityIconType>iconType;
|
|
||||||
late final Optional<String>iconColor;
|
|
||||||
final String title;
|
|
||||||
final String description;
|
|
||||||
late final Optional<bool>isRead;
|
|
||||||
final ActivityType activityType;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateActivityLogVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
userId = nativeFromJson<String>(json['userId']),
|
|
||||||
date = Timestamp.fromJson(json['date']),
|
|
||||||
title = nativeFromJson<String>(json['title']),
|
|
||||||
description = nativeFromJson<String>(json['description']),
|
|
||||||
activityType = ActivityType.values.byName(json['activityType']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hourStart = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hourStart.value = json['hourStart'] == null ? null : nativeFromJson<String>(json['hourStart']);
|
|
||||||
|
|
||||||
|
|
||||||
hourEnd = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hourEnd.value = json['hourEnd'] == null ? null : nativeFromJson<String>(json['hourEnd']);
|
|
||||||
|
|
||||||
|
|
||||||
totalhours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalhours.value = json['totalhours'] == null ? null : nativeFromJson<String>(json['totalhours']);
|
|
||||||
|
|
||||||
|
|
||||||
iconType = Optional.optional((data) => ActivityIconType.values.byName(data), enumSerializer);
|
|
||||||
iconType.value = json['iconType'] == null ? null : ActivityIconType.values.byName(json['iconType']);
|
|
||||||
|
|
||||||
|
|
||||||
iconColor = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
iconColor.value = json['iconColor'] == null ? null : nativeFromJson<String>(json['iconColor']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
isRead = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isRead.value = json['isRead'] == null ? null : nativeFromJson<bool>(json['isRead']);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateActivityLogVariables otherTyped = other as CreateActivityLogVariables;
|
|
||||||
return userId == otherTyped.userId &&
|
|
||||||
date == otherTyped.date &&
|
|
||||||
hourStart == otherTyped.hourStart &&
|
|
||||||
hourEnd == otherTyped.hourEnd &&
|
|
||||||
totalhours == otherTyped.totalhours &&
|
|
||||||
iconType == otherTyped.iconType &&
|
|
||||||
iconColor == otherTyped.iconColor &&
|
|
||||||
title == otherTyped.title &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
isRead == otherTyped.isRead &&
|
|
||||||
activityType == otherTyped.activityType;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([userId.hashCode, date.hashCode, hourStart.hashCode, hourEnd.hashCode, totalhours.hashCode, iconType.hashCode, iconColor.hashCode, title.hashCode, description.hashCode, isRead.hashCode, activityType.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
json['date'] = date.toJson();
|
|
||||||
if(hourStart.state == OptionalState.set) {
|
|
||||||
json['hourStart'] = hourStart.toJson();
|
|
||||||
}
|
|
||||||
if(hourEnd.state == OptionalState.set) {
|
|
||||||
json['hourEnd'] = hourEnd.toJson();
|
|
||||||
}
|
|
||||||
if(totalhours.state == OptionalState.set) {
|
|
||||||
json['totalhours'] = totalhours.toJson();
|
|
||||||
}
|
|
||||||
if(iconType.state == OptionalState.set) {
|
|
||||||
json['iconType'] = iconType.toJson();
|
|
||||||
}
|
|
||||||
if(iconColor.state == OptionalState.set) {
|
|
||||||
json['iconColor'] = iconColor.toJson();
|
|
||||||
}
|
|
||||||
json['title'] = nativeToJson<String>(title);
|
|
||||||
json['description'] = nativeToJson<String>(description);
|
|
||||||
if(isRead.state == OptionalState.set) {
|
|
||||||
json['isRead'] = isRead.toJson();
|
|
||||||
}
|
|
||||||
json['activityType'] =
|
|
||||||
activityType.name
|
|
||||||
;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateActivityLogVariables({
|
|
||||||
required this.userId,
|
|
||||||
required this.date,
|
|
||||||
required this.hourStart,
|
|
||||||
required this.hourEnd,
|
|
||||||
required this.totalhours,
|
|
||||||
required this.iconType,
|
|
||||||
required this.iconColor,
|
|
||||||
required this.title,
|
|
||||||
required this.description,
|
|
||||||
required this.isRead,
|
|
||||||
required this.activityType,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,187 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateApplicationVariablesBuilder {
|
|
||||||
String shiftId;
|
|
||||||
String staffId;
|
|
||||||
ApplicationStatus status;
|
|
||||||
Optional<Timestamp> _checkInTime = Optional.optional((json) => json['checkInTime'] = Timestamp.fromJson(json['checkInTime']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _checkOutTime = Optional.optional((json) => json['checkOutTime'] = Timestamp.fromJson(json['checkOutTime']), defaultSerializer);
|
|
||||||
ApplicationOrigin origin;
|
|
||||||
String roleId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateApplicationVariablesBuilder checkInTime(Timestamp? t) {
|
|
||||||
_checkInTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) {
|
|
||||||
_checkOutTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateApplicationVariablesBuilder(this._dataConnect, {required this.shiftId,required this.staffId,required this.status,required this.origin,required this.roleId,});
|
|
||||||
Deserializer<CreateApplicationData> dataDeserializer = (dynamic json) => CreateApplicationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateApplicationVariables> varsSerializer = (CreateApplicationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateApplicationData, CreateApplicationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateApplicationData, CreateApplicationVariables> ref() {
|
|
||||||
CreateApplicationVariables vars= CreateApplicationVariables(shiftId: shiftId,staffId: staffId,status: status,checkInTime: _checkInTime,checkOutTime: _checkOutTime,origin: origin,roleId: roleId,);
|
|
||||||
return _dataConnect.mutation("createApplication", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateApplicationApplicationInsert {
|
|
||||||
final String id;
|
|
||||||
CreateApplicationApplicationInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateApplicationApplicationInsert otherTyped = other as CreateApplicationApplicationInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateApplicationApplicationInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateApplicationData {
|
|
||||||
final CreateApplicationApplicationInsert application_insert;
|
|
||||||
CreateApplicationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
application_insert = CreateApplicationApplicationInsert.fromJson(json['application_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateApplicationData otherTyped = other as CreateApplicationData;
|
|
||||||
return application_insert == otherTyped.application_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => application_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['application_insert'] = application_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateApplicationData({
|
|
||||||
required this.application_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateApplicationVariables {
|
|
||||||
final String shiftId;
|
|
||||||
final String staffId;
|
|
||||||
final ApplicationStatus status;
|
|
||||||
late final Optional<Timestamp>checkInTime;
|
|
||||||
late final Optional<Timestamp>checkOutTime;
|
|
||||||
final ApplicationOrigin origin;
|
|
||||||
final String roleId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateApplicationVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
status = ApplicationStatus.values.byName(json['status']),
|
|
||||||
origin = ApplicationOrigin.values.byName(json['origin']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
checkInTime = Optional.optional((json) => json['checkInTime'] = Timestamp.fromJson(json['checkInTime']), defaultSerializer);
|
|
||||||
checkInTime.value = json['checkInTime'] == null ? null : Timestamp.fromJson(json['checkInTime']);
|
|
||||||
|
|
||||||
|
|
||||||
checkOutTime = Optional.optional((json) => json['checkOutTime'] = Timestamp.fromJson(json['checkOutTime']), defaultSerializer);
|
|
||||||
checkOutTime.value = json['checkOutTime'] == null ? null : Timestamp.fromJson(json['checkOutTime']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateApplicationVariables otherTyped = other as CreateApplicationVariables;
|
|
||||||
return shiftId == otherTyped.shiftId &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
checkInTime == otherTyped.checkInTime &&
|
|
||||||
checkOutTime == otherTyped.checkOutTime &&
|
|
||||||
origin == otherTyped.origin &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([shiftId.hashCode, staffId.hashCode, status.hashCode, checkInTime.hashCode, checkOutTime.hashCode, origin.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
if(checkInTime.state == OptionalState.set) {
|
|
||||||
json['checkInTime'] = checkInTime.toJson();
|
|
||||||
}
|
|
||||||
if(checkOutTime.state == OptionalState.set) {
|
|
||||||
json['checkOutTime'] = checkOutTime.toJson();
|
|
||||||
}
|
|
||||||
json['origin'] =
|
|
||||||
origin.name
|
|
||||||
;
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateApplicationVariables({
|
|
||||||
required this.shiftId,
|
|
||||||
required this.staffId,
|
|
||||||
required this.status,
|
|
||||||
required this.checkInTime,
|
|
||||||
required this.checkOutTime,
|
|
||||||
required this.origin,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,291 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateAssignmentVariablesBuilder {
|
|
||||||
String workforceId;
|
|
||||||
Optional<String> _title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _instructions = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AssignmentStatus> _status = Optional.optional((data) => AssignmentStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<bool> _tipsAvailable = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _travelTime = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _mealProvided = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _parkingAvailable = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _gasCompensation = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<List<AnyValue>> _managers = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
String roleId;
|
|
||||||
String shiftId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateAssignmentVariablesBuilder title(String? t) {
|
|
||||||
_title.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder instructions(String? t) {
|
|
||||||
_instructions.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder status(AssignmentStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder tipsAvailable(bool? t) {
|
|
||||||
_tipsAvailable.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder travelTime(bool? t) {
|
|
||||||
_travelTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder mealProvided(bool? t) {
|
|
||||||
_mealProvided.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder parkingAvailable(bool? t) {
|
|
||||||
_parkingAvailable.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder gasCompensation(bool? t) {
|
|
||||||
_gasCompensation.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAssignmentVariablesBuilder managers(List<AnyValue>? t) {
|
|
||||||
_managers.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAssignmentVariablesBuilder(this._dataConnect, {required this.workforceId,required this.roleId,required this.shiftId,});
|
|
||||||
Deserializer<CreateAssignmentData> dataDeserializer = (dynamic json) => CreateAssignmentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateAssignmentVariables> varsSerializer = (CreateAssignmentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateAssignmentData, CreateAssignmentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateAssignmentData, CreateAssignmentVariables> ref() {
|
|
||||||
CreateAssignmentVariables vars= CreateAssignmentVariables(workforceId: workforceId,title: _title,description: _description,instructions: _instructions,status: _status,tipsAvailable: _tipsAvailable,travelTime: _travelTime,mealProvided: _mealProvided,parkingAvailable: _parkingAvailable,gasCompensation: _gasCompensation,managers: _managers,roleId: roleId,shiftId: shiftId,);
|
|
||||||
return _dataConnect.mutation("CreateAssignment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAssignmentAssignmentInsert {
|
|
||||||
final String id;
|
|
||||||
CreateAssignmentAssignmentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAssignmentAssignmentInsert otherTyped = other as CreateAssignmentAssignmentInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAssignmentAssignmentInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAssignmentData {
|
|
||||||
final CreateAssignmentAssignmentInsert assignment_insert;
|
|
||||||
CreateAssignmentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
assignment_insert = CreateAssignmentAssignmentInsert.fromJson(json['assignment_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAssignmentData otherTyped = other as CreateAssignmentData;
|
|
||||||
return assignment_insert == otherTyped.assignment_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => assignment_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['assignment_insert'] = assignment_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAssignmentData({
|
|
||||||
required this.assignment_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAssignmentVariables {
|
|
||||||
final String workforceId;
|
|
||||||
late final Optional<String>title;
|
|
||||||
late final Optional<String>description;
|
|
||||||
late final Optional<String>instructions;
|
|
||||||
late final Optional<AssignmentStatus>status;
|
|
||||||
late final Optional<bool>tipsAvailable;
|
|
||||||
late final Optional<bool>travelTime;
|
|
||||||
late final Optional<bool>mealProvided;
|
|
||||||
late final Optional<bool>parkingAvailable;
|
|
||||||
late final Optional<bool>gasCompensation;
|
|
||||||
late final Optional<List<AnyValue>>managers;
|
|
||||||
final String roleId;
|
|
||||||
final String shiftId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateAssignmentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
workforceId = nativeFromJson<String>(json['workforceId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']),
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
title.value = json['title'] == null ? null : nativeFromJson<String>(json['title']);
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
instructions = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
instructions.value = json['instructions'] == null ? null : nativeFromJson<String>(json['instructions']);
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => AssignmentStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : AssignmentStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
tipsAvailable = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
tipsAvailable.value = json['tipsAvailable'] == null ? null : nativeFromJson<bool>(json['tipsAvailable']);
|
|
||||||
|
|
||||||
|
|
||||||
travelTime = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
travelTime.value = json['travelTime'] == null ? null : nativeFromJson<bool>(json['travelTime']);
|
|
||||||
|
|
||||||
|
|
||||||
mealProvided = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
mealProvided.value = json['mealProvided'] == null ? null : nativeFromJson<bool>(json['mealProvided']);
|
|
||||||
|
|
||||||
|
|
||||||
parkingAvailable = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
parkingAvailable.value = json['parkingAvailable'] == null ? null : nativeFromJson<bool>(json['parkingAvailable']);
|
|
||||||
|
|
||||||
|
|
||||||
gasCompensation = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
gasCompensation.value = json['gasCompensation'] == null ? null : nativeFromJson<bool>(json['gasCompensation']);
|
|
||||||
|
|
||||||
|
|
||||||
managers = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
managers.value = json['managers'] == null ? null : (json['managers'] as List<dynamic>)
|
|
||||||
.map((e) => AnyValue.fromJson(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAssignmentVariables otherTyped = other as CreateAssignmentVariables;
|
|
||||||
return workforceId == otherTyped.workforceId &&
|
|
||||||
title == otherTyped.title &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
instructions == otherTyped.instructions &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
tipsAvailable == otherTyped.tipsAvailable &&
|
|
||||||
travelTime == otherTyped.travelTime &&
|
|
||||||
mealProvided == otherTyped.mealProvided &&
|
|
||||||
parkingAvailable == otherTyped.parkingAvailable &&
|
|
||||||
gasCompensation == otherTyped.gasCompensation &&
|
|
||||||
managers == otherTyped.managers &&
|
|
||||||
roleId == otherTyped.roleId &&
|
|
||||||
shiftId == otherTyped.shiftId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([workforceId.hashCode, title.hashCode, description.hashCode, instructions.hashCode, status.hashCode, tipsAvailable.hashCode, travelTime.hashCode, mealProvided.hashCode, parkingAvailable.hashCode, gasCompensation.hashCode, managers.hashCode, roleId.hashCode, shiftId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['workforceId'] = nativeToJson<String>(workforceId);
|
|
||||||
if(title.state == OptionalState.set) {
|
|
||||||
json['title'] = title.toJson();
|
|
||||||
}
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
if(instructions.state == OptionalState.set) {
|
|
||||||
json['instructions'] = instructions.toJson();
|
|
||||||
}
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
if(tipsAvailable.state == OptionalState.set) {
|
|
||||||
json['tipsAvailable'] = tipsAvailable.toJson();
|
|
||||||
}
|
|
||||||
if(travelTime.state == OptionalState.set) {
|
|
||||||
json['travelTime'] = travelTime.toJson();
|
|
||||||
}
|
|
||||||
if(mealProvided.state == OptionalState.set) {
|
|
||||||
json['mealProvided'] = mealProvided.toJson();
|
|
||||||
}
|
|
||||||
if(parkingAvailable.state == OptionalState.set) {
|
|
||||||
json['parkingAvailable'] = parkingAvailable.toJson();
|
|
||||||
}
|
|
||||||
if(gasCompensation.state == OptionalState.set) {
|
|
||||||
json['gasCompensation'] = gasCompensation.toJson();
|
|
||||||
}
|
|
||||||
if(managers.state == OptionalState.set) {
|
|
||||||
json['managers'] = managers.toJson();
|
|
||||||
}
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAssignmentVariables({
|
|
||||||
required this.workforceId,
|
|
||||||
required this.title,
|
|
||||||
required this.description,
|
|
||||||
required this.instructions,
|
|
||||||
required this.status,
|
|
||||||
required this.tipsAvailable,
|
|
||||||
required this.travelTime,
|
|
||||||
required this.mealProvided,
|
|
||||||
required this.parkingAvailable,
|
|
||||||
required this.gasCompensation,
|
|
||||||
required this.managers,
|
|
||||||
required this.roleId,
|
|
||||||
required this.shiftId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,192 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateAttireOptionVariablesBuilder {
|
|
||||||
String itemId;
|
|
||||||
String label;
|
|
||||||
Optional<String> _icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _imageUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isMandatory = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateAttireOptionVariablesBuilder icon(String? t) {
|
|
||||||
_icon.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAttireOptionVariablesBuilder imageUrl(String? t) {
|
|
||||||
_imageUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAttireOptionVariablesBuilder isMandatory(bool? t) {
|
|
||||||
_isMandatory.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateAttireOptionVariablesBuilder vendorId(String? t) {
|
|
||||||
_vendorId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAttireOptionVariablesBuilder(this._dataConnect, {required this.itemId,required this.label,});
|
|
||||||
Deserializer<CreateAttireOptionData> dataDeserializer = (dynamic json) => CreateAttireOptionData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateAttireOptionVariables> varsSerializer = (CreateAttireOptionVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateAttireOptionData, CreateAttireOptionVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateAttireOptionData, CreateAttireOptionVariables> ref() {
|
|
||||||
CreateAttireOptionVariables vars= CreateAttireOptionVariables(itemId: itemId,label: label,icon: _icon,imageUrl: _imageUrl,isMandatory: _isMandatory,vendorId: _vendorId,);
|
|
||||||
return _dataConnect.mutation("createAttireOption", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAttireOptionAttireOptionInsert {
|
|
||||||
final String id;
|
|
||||||
CreateAttireOptionAttireOptionInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAttireOptionAttireOptionInsert otherTyped = other as CreateAttireOptionAttireOptionInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAttireOptionAttireOptionInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAttireOptionData {
|
|
||||||
final CreateAttireOptionAttireOptionInsert attireOption_insert;
|
|
||||||
CreateAttireOptionData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
attireOption_insert = CreateAttireOptionAttireOptionInsert.fromJson(json['attireOption_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAttireOptionData otherTyped = other as CreateAttireOptionData;
|
|
||||||
return attireOption_insert == otherTyped.attireOption_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => attireOption_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['attireOption_insert'] = attireOption_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAttireOptionData({
|
|
||||||
required this.attireOption_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateAttireOptionVariables {
|
|
||||||
final String itemId;
|
|
||||||
final String label;
|
|
||||||
late final Optional<String>icon;
|
|
||||||
late final Optional<String>imageUrl;
|
|
||||||
late final Optional<bool>isMandatory;
|
|
||||||
late final Optional<String>vendorId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateAttireOptionVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
itemId = nativeFromJson<String>(json['itemId']),
|
|
||||||
label = nativeFromJson<String>(json['label']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
icon.value = json['icon'] == null ? null : nativeFromJson<String>(json['icon']);
|
|
||||||
|
|
||||||
|
|
||||||
imageUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
imageUrl.value = json['imageUrl'] == null ? null : nativeFromJson<String>(json['imageUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
isMandatory = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isMandatory.value = json['isMandatory'] == null ? null : nativeFromJson<bool>(json['isMandatory']);
|
|
||||||
|
|
||||||
|
|
||||||
vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorId.value = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateAttireOptionVariables otherTyped = other as CreateAttireOptionVariables;
|
|
||||||
return itemId == otherTyped.itemId &&
|
|
||||||
label == otherTyped.label &&
|
|
||||||
icon == otherTyped.icon &&
|
|
||||||
imageUrl == otherTyped.imageUrl &&
|
|
||||||
isMandatory == otherTyped.isMandatory &&
|
|
||||||
vendorId == otherTyped.vendorId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([itemId.hashCode, label.hashCode, icon.hashCode, imageUrl.hashCode, isMandatory.hashCode, vendorId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['itemId'] = nativeToJson<String>(itemId);
|
|
||||||
json['label'] = nativeToJson<String>(label);
|
|
||||||
if(icon.state == OptionalState.set) {
|
|
||||||
json['icon'] = icon.toJson();
|
|
||||||
}
|
|
||||||
if(imageUrl.state == OptionalState.set) {
|
|
||||||
json['imageUrl'] = imageUrl.toJson();
|
|
||||||
}
|
|
||||||
if(isMandatory.state == OptionalState.set) {
|
|
||||||
json['isMandatory'] = isMandatory.toJson();
|
|
||||||
}
|
|
||||||
if(vendorId.state == OptionalState.set) {
|
|
||||||
json['vendorId'] = vendorId.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateAttireOptionVariables({
|
|
||||||
required this.itemId,
|
|
||||||
required this.label,
|
|
||||||
required this.icon,
|
|
||||||
required this.imageUrl,
|
|
||||||
required this.isMandatory,
|
|
||||||
required this.vendorId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateBenefitsDataVariablesBuilder {
|
|
||||||
String vendorBenefitPlanId;
|
|
||||||
String staffId;
|
|
||||||
int current;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateBenefitsDataVariablesBuilder(this._dataConnect, {required this.vendorBenefitPlanId,required this.staffId,required this.current,});
|
|
||||||
Deserializer<CreateBenefitsDataData> dataDeserializer = (dynamic json) => CreateBenefitsDataData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateBenefitsDataVariables> varsSerializer = (CreateBenefitsDataVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateBenefitsDataData, CreateBenefitsDataVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateBenefitsDataData, CreateBenefitsDataVariables> ref() {
|
|
||||||
CreateBenefitsDataVariables vars= CreateBenefitsDataVariables(vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,);
|
|
||||||
return _dataConnect.mutation("createBenefitsData", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBenefitsDataBenefitsDataInsert {
|
|
||||||
final String vendorBenefitPlanId;
|
|
||||||
final String staffId;
|
|
||||||
CreateBenefitsDataBenefitsDataInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendorBenefitPlanId = nativeFromJson<String>(json['vendorBenefitPlanId']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBenefitsDataBenefitsDataInsert otherTyped = other as CreateBenefitsDataBenefitsDataInsert;
|
|
||||||
return vendorBenefitPlanId == otherTyped.vendorBenefitPlanId &&
|
|
||||||
staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorBenefitPlanId.hashCode, staffId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorBenefitPlanId'] = nativeToJson<String>(vendorBenefitPlanId);
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBenefitsDataBenefitsDataInsert({
|
|
||||||
required this.vendorBenefitPlanId,
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBenefitsDataData {
|
|
||||||
final CreateBenefitsDataBenefitsDataInsert benefitsData_insert;
|
|
||||||
CreateBenefitsDataData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
benefitsData_insert = CreateBenefitsDataBenefitsDataInsert.fromJson(json['benefitsData_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBenefitsDataData otherTyped = other as CreateBenefitsDataData;
|
|
||||||
return benefitsData_insert == otherTyped.benefitsData_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => benefitsData_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['benefitsData_insert'] = benefitsData_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBenefitsDataData({
|
|
||||||
required this.benefitsData_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBenefitsDataVariables {
|
|
||||||
final String vendorBenefitPlanId;
|
|
||||||
final String staffId;
|
|
||||||
final int current;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateBenefitsDataVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
vendorBenefitPlanId = nativeFromJson<String>(json['vendorBenefitPlanId']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
current = nativeFromJson<int>(json['current']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBenefitsDataVariables otherTyped = other as CreateBenefitsDataVariables;
|
|
||||||
return vendorBenefitPlanId == otherTyped.vendorBenefitPlanId &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
current == otherTyped.current;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorBenefitPlanId.hashCode, staffId.hashCode, current.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorBenefitPlanId'] = nativeToJson<String>(vendorBenefitPlanId);
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['current'] = nativeToJson<int>(current);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBenefitsDataVariables({
|
|
||||||
required this.vendorBenefitPlanId,
|
|
||||||
required this.staffId,
|
|
||||||
required this.current,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,300 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateBusinessVariablesBuilder {
|
|
||||||
String businessName;
|
|
||||||
Optional<String> _contactName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String userId;
|
|
||||||
Optional<String> _companyLogoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _hubBuilding = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<BusinessArea> _area = Optional.optional((data) => BusinessArea.values.byName(data), enumSerializer);
|
|
||||||
Optional<BusinessSector> _sector = Optional.optional((data) => BusinessSector.values.byName(data), enumSerializer);
|
|
||||||
BusinessRateGroup rateGroup;
|
|
||||||
BusinessStatus status;
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateBusinessVariablesBuilder contactName(String? t) {
|
|
||||||
_contactName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder companyLogoUrl(String? t) {
|
|
||||||
_companyLogoUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder phone(String? t) {
|
|
||||||
_phone.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder hubBuilding(String? t) {
|
|
||||||
_hubBuilding.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder address(String? t) {
|
|
||||||
_address.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder area(BusinessArea? t) {
|
|
||||||
_area.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder sector(BusinessSector? t) {
|
|
||||||
_sector.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateBusinessVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBusinessVariablesBuilder(this._dataConnect, {required this.businessName,required this.userId,required this.rateGroup,required this.status,});
|
|
||||||
Deserializer<CreateBusinessData> dataDeserializer = (dynamic json) => CreateBusinessData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateBusinessVariables> varsSerializer = (CreateBusinessVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateBusinessData, CreateBusinessVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateBusinessData, CreateBusinessVariables> ref() {
|
|
||||||
CreateBusinessVariables vars= CreateBusinessVariables(businessName: businessName,contactName: _contactName,userId: userId,companyLogoUrl: _companyLogoUrl,phone: _phone,email: _email,hubBuilding: _hubBuilding,address: _address,city: _city,area: _area,sector: _sector,rateGroup: rateGroup,status: status,notes: _notes,);
|
|
||||||
return _dataConnect.mutation("createBusiness", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBusinessBusinessInsert {
|
|
||||||
final String id;
|
|
||||||
CreateBusinessBusinessInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBusinessBusinessInsert otherTyped = other as CreateBusinessBusinessInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBusinessBusinessInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBusinessData {
|
|
||||||
final CreateBusinessBusinessInsert business_insert;
|
|
||||||
CreateBusinessData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
business_insert = CreateBusinessBusinessInsert.fromJson(json['business_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBusinessData otherTyped = other as CreateBusinessData;
|
|
||||||
return business_insert == otherTyped.business_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => business_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['business_insert'] = business_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBusinessData({
|
|
||||||
required this.business_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateBusinessVariables {
|
|
||||||
final String businessName;
|
|
||||||
late final Optional<String>contactName;
|
|
||||||
final String userId;
|
|
||||||
late final Optional<String>companyLogoUrl;
|
|
||||||
late final Optional<String>phone;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>hubBuilding;
|
|
||||||
late final Optional<String>address;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<BusinessArea>area;
|
|
||||||
late final Optional<BusinessSector>sector;
|
|
||||||
final BusinessRateGroup rateGroup;
|
|
||||||
final BusinessStatus status;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateBusinessVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
businessName = nativeFromJson<String>(json['businessName']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']),
|
|
||||||
rateGroup = BusinessRateGroup.values.byName(json['rateGroup']),
|
|
||||||
status = BusinessStatus.values.byName(json['status']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
contactName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
contactName.value = json['contactName'] == null ? null : nativeFromJson<String>(json['contactName']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
companyLogoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
companyLogoUrl.value = json['companyLogoUrl'] == null ? null : nativeFromJson<String>(json['companyLogoUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
phone.value = json['phone'] == null ? null : nativeFromJson<String>(json['phone']);
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
hubBuilding = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hubBuilding.value = json['hubBuilding'] == null ? null : nativeFromJson<String>(json['hubBuilding']);
|
|
||||||
|
|
||||||
|
|
||||||
address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
address.value = json['address'] == null ? null : nativeFromJson<String>(json['address']);
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
area = Optional.optional((data) => BusinessArea.values.byName(data), enumSerializer);
|
|
||||||
area.value = json['area'] == null ? null : BusinessArea.values.byName(json['area']);
|
|
||||||
|
|
||||||
|
|
||||||
sector = Optional.optional((data) => BusinessSector.values.byName(data), enumSerializer);
|
|
||||||
sector.value = json['sector'] == null ? null : BusinessSector.values.byName(json['sector']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateBusinessVariables otherTyped = other as CreateBusinessVariables;
|
|
||||||
return businessName == otherTyped.businessName &&
|
|
||||||
contactName == otherTyped.contactName &&
|
|
||||||
userId == otherTyped.userId &&
|
|
||||||
companyLogoUrl == otherTyped.companyLogoUrl &&
|
|
||||||
phone == otherTyped.phone &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
hubBuilding == otherTyped.hubBuilding &&
|
|
||||||
address == otherTyped.address &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
area == otherTyped.area &&
|
|
||||||
sector == otherTyped.sector &&
|
|
||||||
rateGroup == otherTyped.rateGroup &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
notes == otherTyped.notes;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([businessName.hashCode, contactName.hashCode, userId.hashCode, companyLogoUrl.hashCode, phone.hashCode, email.hashCode, hubBuilding.hashCode, address.hashCode, city.hashCode, area.hashCode, sector.hashCode, rateGroup.hashCode, status.hashCode, notes.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['businessName'] = nativeToJson<String>(businessName);
|
|
||||||
if(contactName.state == OptionalState.set) {
|
|
||||||
json['contactName'] = contactName.toJson();
|
|
||||||
}
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
if(companyLogoUrl.state == OptionalState.set) {
|
|
||||||
json['companyLogoUrl'] = companyLogoUrl.toJson();
|
|
||||||
}
|
|
||||||
if(phone.state == OptionalState.set) {
|
|
||||||
json['phone'] = phone.toJson();
|
|
||||||
}
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(hubBuilding.state == OptionalState.set) {
|
|
||||||
json['hubBuilding'] = hubBuilding.toJson();
|
|
||||||
}
|
|
||||||
if(address.state == OptionalState.set) {
|
|
||||||
json['address'] = address.toJson();
|
|
||||||
}
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(area.state == OptionalState.set) {
|
|
||||||
json['area'] = area.toJson();
|
|
||||||
}
|
|
||||||
if(sector.state == OptionalState.set) {
|
|
||||||
json['sector'] = sector.toJson();
|
|
||||||
}
|
|
||||||
json['rateGroup'] =
|
|
||||||
rateGroup.name
|
|
||||||
;
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateBusinessVariables({
|
|
||||||
required this.businessName,
|
|
||||||
required this.contactName,
|
|
||||||
required this.userId,
|
|
||||||
required this.companyLogoUrl,
|
|
||||||
required this.phone,
|
|
||||||
required this.email,
|
|
||||||
required this.hubBuilding,
|
|
||||||
required this.address,
|
|
||||||
required this.city,
|
|
||||||
required this.area,
|
|
||||||
required this.sector,
|
|
||||||
required this.rateGroup,
|
|
||||||
required this.status,
|
|
||||||
required this.notes,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateCategoryVariablesBuilder {
|
|
||||||
String categoryId;
|
|
||||||
String label;
|
|
||||||
Optional<String> _icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateCategoryVariablesBuilder icon(String? t) {
|
|
||||||
_icon.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCategoryVariablesBuilder(this._dataConnect, {required this.categoryId,required this.label,});
|
|
||||||
Deserializer<CreateCategoryData> dataDeserializer = (dynamic json) => CreateCategoryData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateCategoryVariables> varsSerializer = (CreateCategoryVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateCategoryData, CreateCategoryVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateCategoryData, CreateCategoryVariables> ref() {
|
|
||||||
CreateCategoryVariables vars= CreateCategoryVariables(categoryId: categoryId,label: label,icon: _icon,);
|
|
||||||
return _dataConnect.mutation("createCategory", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCategoryCategoryInsert {
|
|
||||||
final String id;
|
|
||||||
CreateCategoryCategoryInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCategoryCategoryInsert otherTyped = other as CreateCategoryCategoryInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCategoryCategoryInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCategoryData {
|
|
||||||
final CreateCategoryCategoryInsert category_insert;
|
|
||||||
CreateCategoryData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
category_insert = CreateCategoryCategoryInsert.fromJson(json['category_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCategoryData otherTyped = other as CreateCategoryData;
|
|
||||||
return category_insert == otherTyped.category_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => category_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['category_insert'] = category_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCategoryData({
|
|
||||||
required this.category_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCategoryVariables {
|
|
||||||
final String categoryId;
|
|
||||||
final String label;
|
|
||||||
late final Optional<String>icon;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateCategoryVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
categoryId = nativeFromJson<String>(json['categoryId']),
|
|
||||||
label = nativeFromJson<String>(json['label']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
icon.value = json['icon'] == null ? null : nativeFromJson<String>(json['icon']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCategoryVariables otherTyped = other as CreateCategoryVariables;
|
|
||||||
return categoryId == otherTyped.categoryId &&
|
|
||||||
label == otherTyped.label &&
|
|
||||||
icon == otherTyped.icon;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([categoryId.hashCode, label.hashCode, icon.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['categoryId'] = nativeToJson<String>(categoryId);
|
|
||||||
json['label'] = nativeToJson<String>(label);
|
|
||||||
if(icon.state == OptionalState.set) {
|
|
||||||
json['icon'] = icon.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCategoryVariables({
|
|
||||||
required this.categoryId,
|
|
||||||
required this.label,
|
|
||||||
required this.icon,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,261 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateCertificateVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _expiry = Optional.optional((json) => json['expiry'] = Timestamp.fromJson(json['expiry']), defaultSerializer);
|
|
||||||
CertificateStatus status;
|
|
||||||
Optional<String> _fileUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<ComplianceType> _certificationType = Optional.optional((data) => ComplianceType.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _issuer = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String staffId;
|
|
||||||
Optional<ValidationStatus> _validationStatus = Optional.optional((data) => ValidationStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _certificateNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateCertificateVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder expiry(Timestamp? t) {
|
|
||||||
_expiry.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder fileUrl(String? t) {
|
|
||||||
_fileUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder icon(String? t) {
|
|
||||||
_icon.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder certificationType(ComplianceType? t) {
|
|
||||||
_certificationType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder issuer(String? t) {
|
|
||||||
_issuer.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) {
|
|
||||||
_validationStatus.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCertificateVariablesBuilder certificateNumber(String? t) {
|
|
||||||
_certificateNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCertificateVariablesBuilder(this._dataConnect, {required this.name,required this.status,required this.staffId,});
|
|
||||||
Deserializer<CreateCertificateData> dataDeserializer = (dynamic json) => CreateCertificateData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateCertificateVariables> varsSerializer = (CreateCertificateVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateCertificateData, CreateCertificateVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateCertificateData, CreateCertificateVariables> ref() {
|
|
||||||
CreateCertificateVariables vars= CreateCertificateVariables(name: name,description: _description,expiry: _expiry,status: status,fileUrl: _fileUrl,icon: _icon,certificationType: _certificationType,issuer: _issuer,staffId: staffId,validationStatus: _validationStatus,certificateNumber: _certificateNumber,);
|
|
||||||
return _dataConnect.mutation("CreateCertificate", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCertificateCertificateInsert {
|
|
||||||
final String id;
|
|
||||||
CreateCertificateCertificateInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCertificateCertificateInsert otherTyped = other as CreateCertificateCertificateInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCertificateCertificateInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCertificateData {
|
|
||||||
final CreateCertificateCertificateInsert certificate_insert;
|
|
||||||
CreateCertificateData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
certificate_insert = CreateCertificateCertificateInsert.fromJson(json['certificate_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCertificateData otherTyped = other as CreateCertificateData;
|
|
||||||
return certificate_insert == otherTyped.certificate_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => certificate_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['certificate_insert'] = certificate_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCertificateData({
|
|
||||||
required this.certificate_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCertificateVariables {
|
|
||||||
final String name;
|
|
||||||
late final Optional<String>description;
|
|
||||||
late final Optional<Timestamp>expiry;
|
|
||||||
final CertificateStatus status;
|
|
||||||
late final Optional<String>fileUrl;
|
|
||||||
late final Optional<String>icon;
|
|
||||||
late final Optional<ComplianceType>certificationType;
|
|
||||||
late final Optional<String>issuer;
|
|
||||||
final String staffId;
|
|
||||||
late final Optional<ValidationStatus>validationStatus;
|
|
||||||
late final Optional<String>certificateNumber;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateCertificateVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
status = CertificateStatus.values.byName(json['status']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
expiry = Optional.optional((json) => json['expiry'] = Timestamp.fromJson(json['expiry']), defaultSerializer);
|
|
||||||
expiry.value = json['expiry'] == null ? null : Timestamp.fromJson(json['expiry']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fileUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
fileUrl.value = json['fileUrl'] == null ? null : nativeFromJson<String>(json['fileUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
icon.value = json['icon'] == null ? null : nativeFromJson<String>(json['icon']);
|
|
||||||
|
|
||||||
|
|
||||||
certificationType = Optional.optional((data) => ComplianceType.values.byName(data), enumSerializer);
|
|
||||||
certificationType.value = json['certificationType'] == null ? null : ComplianceType.values.byName(json['certificationType']);
|
|
||||||
|
|
||||||
|
|
||||||
issuer = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
issuer.value = json['issuer'] == null ? null : nativeFromJson<String>(json['issuer']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
validationStatus = Optional.optional((data) => ValidationStatus.values.byName(data), enumSerializer);
|
|
||||||
validationStatus.value = json['validationStatus'] == null ? null : ValidationStatus.values.byName(json['validationStatus']);
|
|
||||||
|
|
||||||
|
|
||||||
certificateNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
certificateNumber.value = json['certificateNumber'] == null ? null : nativeFromJson<String>(json['certificateNumber']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCertificateVariables otherTyped = other as CreateCertificateVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
expiry == otherTyped.expiry &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
fileUrl == otherTyped.fileUrl &&
|
|
||||||
icon == otherTyped.icon &&
|
|
||||||
certificationType == otherTyped.certificationType &&
|
|
||||||
issuer == otherTyped.issuer &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
validationStatus == otherTyped.validationStatus &&
|
|
||||||
certificateNumber == otherTyped.certificateNumber;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, description.hashCode, expiry.hashCode, status.hashCode, fileUrl.hashCode, icon.hashCode, certificationType.hashCode, issuer.hashCode, staffId.hashCode, validationStatus.hashCode, certificateNumber.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
if(expiry.state == OptionalState.set) {
|
|
||||||
json['expiry'] = expiry.toJson();
|
|
||||||
}
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
if(fileUrl.state == OptionalState.set) {
|
|
||||||
json['fileUrl'] = fileUrl.toJson();
|
|
||||||
}
|
|
||||||
if(icon.state == OptionalState.set) {
|
|
||||||
json['icon'] = icon.toJson();
|
|
||||||
}
|
|
||||||
if(certificationType.state == OptionalState.set) {
|
|
||||||
json['certificationType'] = certificationType.toJson();
|
|
||||||
}
|
|
||||||
if(issuer.state == OptionalState.set) {
|
|
||||||
json['issuer'] = issuer.toJson();
|
|
||||||
}
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
if(validationStatus.state == OptionalState.set) {
|
|
||||||
json['validationStatus'] = validationStatus.toJson();
|
|
||||||
}
|
|
||||||
if(certificateNumber.state == OptionalState.set) {
|
|
||||||
json['certificateNumber'] = certificateNumber.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCertificateVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.description,
|
|
||||||
required this.expiry,
|
|
||||||
required this.status,
|
|
||||||
required this.fileUrl,
|
|
||||||
required this.icon,
|
|
||||||
required this.certificationType,
|
|
||||||
required this.issuer,
|
|
||||||
required this.staffId,
|
|
||||||
required this.validationStatus,
|
|
||||||
required this.certificateNumber,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,192 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateClientFeedbackVariablesBuilder {
|
|
||||||
String businessId;
|
|
||||||
String vendorId;
|
|
||||||
Optional<int> _rating = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _comment = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
Optional<String> _createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateClientFeedbackVariablesBuilder rating(int? t) {
|
|
||||||
_rating.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateClientFeedbackVariablesBuilder comment(String? t) {
|
|
||||||
_comment.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateClientFeedbackVariablesBuilder date(Timestamp? t) {
|
|
||||||
_date.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateClientFeedbackVariablesBuilder createdBy(String? t) {
|
|
||||||
_createdBy.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateClientFeedbackVariablesBuilder(this._dataConnect, {required this.businessId,required this.vendorId,});
|
|
||||||
Deserializer<CreateClientFeedbackData> dataDeserializer = (dynamic json) => CreateClientFeedbackData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateClientFeedbackVariables> varsSerializer = (CreateClientFeedbackVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateClientFeedbackData, CreateClientFeedbackVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateClientFeedbackData, CreateClientFeedbackVariables> ref() {
|
|
||||||
CreateClientFeedbackVariables vars= CreateClientFeedbackVariables(businessId: businessId,vendorId: vendorId,rating: _rating,comment: _comment,date: _date,createdBy: _createdBy,);
|
|
||||||
return _dataConnect.mutation("createClientFeedback", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateClientFeedbackClientFeedbackInsert {
|
|
||||||
final String id;
|
|
||||||
CreateClientFeedbackClientFeedbackInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateClientFeedbackClientFeedbackInsert otherTyped = other as CreateClientFeedbackClientFeedbackInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateClientFeedbackClientFeedbackInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateClientFeedbackData {
|
|
||||||
final CreateClientFeedbackClientFeedbackInsert clientFeedback_insert;
|
|
||||||
CreateClientFeedbackData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
clientFeedback_insert = CreateClientFeedbackClientFeedbackInsert.fromJson(json['clientFeedback_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateClientFeedbackData otherTyped = other as CreateClientFeedbackData;
|
|
||||||
return clientFeedback_insert == otherTyped.clientFeedback_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => clientFeedback_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['clientFeedback_insert'] = clientFeedback_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateClientFeedbackData({
|
|
||||||
required this.clientFeedback_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateClientFeedbackVariables {
|
|
||||||
final String businessId;
|
|
||||||
final String vendorId;
|
|
||||||
late final Optional<int>rating;
|
|
||||||
late final Optional<String>comment;
|
|
||||||
late final Optional<Timestamp>date;
|
|
||||||
late final Optional<String>createdBy;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateClientFeedbackVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rating = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
rating.value = json['rating'] == null ? null : nativeFromJson<int>(json['rating']);
|
|
||||||
|
|
||||||
|
|
||||||
comment = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
comment.value = json['comment'] == null ? null : nativeFromJson<String>(json['comment']);
|
|
||||||
|
|
||||||
|
|
||||||
date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']);
|
|
||||||
|
|
||||||
|
|
||||||
createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
createdBy.value = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateClientFeedbackVariables otherTyped = other as CreateClientFeedbackVariables;
|
|
||||||
return businessId == otherTyped.businessId &&
|
|
||||||
vendorId == otherTyped.vendorId &&
|
|
||||||
rating == otherTyped.rating &&
|
|
||||||
comment == otherTyped.comment &&
|
|
||||||
date == otherTyped.date &&
|
|
||||||
createdBy == otherTyped.createdBy;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([businessId.hashCode, vendorId.hashCode, rating.hashCode, comment.hashCode, date.hashCode, createdBy.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
if(rating.state == OptionalState.set) {
|
|
||||||
json['rating'] = rating.toJson();
|
|
||||||
}
|
|
||||||
if(comment.state == OptionalState.set) {
|
|
||||||
json['comment'] = comment.toJson();
|
|
||||||
}
|
|
||||||
if(date.state == OptionalState.set) {
|
|
||||||
json['date'] = date.toJson();
|
|
||||||
}
|
|
||||||
if(createdBy.state == OptionalState.set) {
|
|
||||||
json['createdBy'] = createdBy.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateClientFeedbackVariables({
|
|
||||||
required this.businessId,
|
|
||||||
required this.vendorId,
|
|
||||||
required this.rating,
|
|
||||||
required this.comment,
|
|
||||||
required this.date,
|
|
||||||
required this.createdBy,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,223 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateConversationVariablesBuilder {
|
|
||||||
Optional<String> _subject = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<ConversationStatus> _status = Optional.optional((data) => ConversationStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<ConversationType> _conversationType = Optional.optional((data) => ConversationType.values.byName(data), enumSerializer);
|
|
||||||
Optional<bool> _isGroup = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _groupName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _lastMessage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _lastMessageAt = Optional.optional((json) => json['lastMessageAt'] = Timestamp.fromJson(json['lastMessageAt']), defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateConversationVariablesBuilder subject(String? t) {
|
|
||||||
_subject.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder status(ConversationStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder conversationType(ConversationType? t) {
|
|
||||||
_conversationType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder isGroup(bool? t) {
|
|
||||||
_isGroup.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder groupName(String? t) {
|
|
||||||
_groupName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder lastMessage(String? t) {
|
|
||||||
_lastMessage.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) {
|
|
||||||
_lastMessageAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateConversationVariablesBuilder(this._dataConnect, );
|
|
||||||
Deserializer<CreateConversationData> dataDeserializer = (dynamic json) => CreateConversationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateConversationVariables> varsSerializer = (CreateConversationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateConversationData, CreateConversationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateConversationData, CreateConversationVariables> ref() {
|
|
||||||
CreateConversationVariables vars= CreateConversationVariables(subject: _subject,status: _status,conversationType: _conversationType,isGroup: _isGroup,groupName: _groupName,lastMessage: _lastMessage,lastMessageAt: _lastMessageAt,);
|
|
||||||
return _dataConnect.mutation("createConversation", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateConversationConversationInsert {
|
|
||||||
final String id;
|
|
||||||
CreateConversationConversationInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateConversationConversationInsert otherTyped = other as CreateConversationConversationInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateConversationConversationInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateConversationData {
|
|
||||||
final CreateConversationConversationInsert conversation_insert;
|
|
||||||
CreateConversationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
conversation_insert = CreateConversationConversationInsert.fromJson(json['conversation_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateConversationData otherTyped = other as CreateConversationData;
|
|
||||||
return conversation_insert == otherTyped.conversation_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => conversation_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversation_insert'] = conversation_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateConversationData({
|
|
||||||
required this.conversation_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateConversationVariables {
|
|
||||||
late final Optional<String>subject;
|
|
||||||
late final Optional<ConversationStatus>status;
|
|
||||||
late final Optional<ConversationType>conversationType;
|
|
||||||
late final Optional<bool>isGroup;
|
|
||||||
late final Optional<String>groupName;
|
|
||||||
late final Optional<String>lastMessage;
|
|
||||||
late final Optional<Timestamp>lastMessageAt;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateConversationVariables.fromJson(Map<String, dynamic> json) {
|
|
||||||
|
|
||||||
|
|
||||||
subject = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
subject.value = json['subject'] == null ? null : nativeFromJson<String>(json['subject']);
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => ConversationStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : ConversationStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
conversationType = Optional.optional((data) => ConversationType.values.byName(data), enumSerializer);
|
|
||||||
conversationType.value = json['conversationType'] == null ? null : ConversationType.values.byName(json['conversationType']);
|
|
||||||
|
|
||||||
|
|
||||||
isGroup = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isGroup.value = json['isGroup'] == null ? null : nativeFromJson<bool>(json['isGroup']);
|
|
||||||
|
|
||||||
|
|
||||||
groupName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
groupName.value = json['groupName'] == null ? null : nativeFromJson<String>(json['groupName']);
|
|
||||||
|
|
||||||
|
|
||||||
lastMessage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
lastMessage.value = json['lastMessage'] == null ? null : nativeFromJson<String>(json['lastMessage']);
|
|
||||||
|
|
||||||
|
|
||||||
lastMessageAt = Optional.optional((json) => json['lastMessageAt'] = Timestamp.fromJson(json['lastMessageAt']), defaultSerializer);
|
|
||||||
lastMessageAt.value = json['lastMessageAt'] == null ? null : Timestamp.fromJson(json['lastMessageAt']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateConversationVariables otherTyped = other as CreateConversationVariables;
|
|
||||||
return subject == otherTyped.subject &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
conversationType == otherTyped.conversationType &&
|
|
||||||
isGroup == otherTyped.isGroup &&
|
|
||||||
groupName == otherTyped.groupName &&
|
|
||||||
lastMessage == otherTyped.lastMessage &&
|
|
||||||
lastMessageAt == otherTyped.lastMessageAt;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([subject.hashCode, status.hashCode, conversationType.hashCode, isGroup.hashCode, groupName.hashCode, lastMessage.hashCode, lastMessageAt.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if(subject.state == OptionalState.set) {
|
|
||||||
json['subject'] = subject.toJson();
|
|
||||||
}
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
if(conversationType.state == OptionalState.set) {
|
|
||||||
json['conversationType'] = conversationType.toJson();
|
|
||||||
}
|
|
||||||
if(isGroup.state == OptionalState.set) {
|
|
||||||
json['isGroup'] = isGroup.toJson();
|
|
||||||
}
|
|
||||||
if(groupName.state == OptionalState.set) {
|
|
||||||
json['groupName'] = groupName.toJson();
|
|
||||||
}
|
|
||||||
if(lastMessage.state == OptionalState.set) {
|
|
||||||
json['lastMessage'] = lastMessage.toJson();
|
|
||||||
}
|
|
||||||
if(lastMessageAt.state == OptionalState.set) {
|
|
||||||
json['lastMessageAt'] = lastMessageAt.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateConversationVariables({
|
|
||||||
required this.subject,
|
|
||||||
required this.status,
|
|
||||||
required this.conversationType,
|
|
||||||
required this.isGroup,
|
|
||||||
required this.groupName,
|
|
||||||
required this.lastMessage,
|
|
||||||
required this.lastMessageAt,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,231 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateCourseVariablesBuilder {
|
|
||||||
Optional<String> _title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _thumbnailUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _durationMinutes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _xpReward = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String categoryId;
|
|
||||||
Optional<String> _levelRequired = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isCertification = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateCourseVariablesBuilder title(String? t) {
|
|
||||||
_title.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder thumbnailUrl(String? t) {
|
|
||||||
_thumbnailUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder durationMinutes(int? t) {
|
|
||||||
_durationMinutes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder xpReward(int? t) {
|
|
||||||
_xpReward.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder levelRequired(String? t) {
|
|
||||||
_levelRequired.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCourseVariablesBuilder isCertification(bool? t) {
|
|
||||||
_isCertification.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCourseVariablesBuilder(this._dataConnect, {required this.categoryId,});
|
|
||||||
Deserializer<CreateCourseData> dataDeserializer = (dynamic json) => CreateCourseData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateCourseVariables> varsSerializer = (CreateCourseVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateCourseData, CreateCourseVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateCourseData, CreateCourseVariables> ref() {
|
|
||||||
CreateCourseVariables vars= CreateCourseVariables(title: _title,description: _description,thumbnailUrl: _thumbnailUrl,durationMinutes: _durationMinutes,xpReward: _xpReward,categoryId: categoryId,levelRequired: _levelRequired,isCertification: _isCertification,);
|
|
||||||
return _dataConnect.mutation("createCourse", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCourseCourseInsert {
|
|
||||||
final String id;
|
|
||||||
CreateCourseCourseInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCourseCourseInsert otherTyped = other as CreateCourseCourseInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCourseCourseInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCourseData {
|
|
||||||
final CreateCourseCourseInsert course_insert;
|
|
||||||
CreateCourseData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
course_insert = CreateCourseCourseInsert.fromJson(json['course_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCourseData otherTyped = other as CreateCourseData;
|
|
||||||
return course_insert == otherTyped.course_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => course_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['course_insert'] = course_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCourseData({
|
|
||||||
required this.course_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCourseVariables {
|
|
||||||
late final Optional<String>title;
|
|
||||||
late final Optional<String>description;
|
|
||||||
late final Optional<String>thumbnailUrl;
|
|
||||||
late final Optional<int>durationMinutes;
|
|
||||||
late final Optional<int>xpReward;
|
|
||||||
final String categoryId;
|
|
||||||
late final Optional<String>levelRequired;
|
|
||||||
late final Optional<bool>isCertification;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateCourseVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
categoryId = nativeFromJson<String>(json['categoryId']) {
|
|
||||||
|
|
||||||
|
|
||||||
title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
title.value = json['title'] == null ? null : nativeFromJson<String>(json['title']);
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
thumbnailUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
thumbnailUrl.value = json['thumbnailUrl'] == null ? null : nativeFromJson<String>(json['thumbnailUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
durationMinutes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
durationMinutes.value = json['durationMinutes'] == null ? null : nativeFromJson<int>(json['durationMinutes']);
|
|
||||||
|
|
||||||
|
|
||||||
xpReward = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
xpReward.value = json['xpReward'] == null ? null : nativeFromJson<int>(json['xpReward']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
levelRequired = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
levelRequired.value = json['levelRequired'] == null ? null : nativeFromJson<String>(json['levelRequired']);
|
|
||||||
|
|
||||||
|
|
||||||
isCertification = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isCertification.value = json['isCertification'] == null ? null : nativeFromJson<bool>(json['isCertification']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCourseVariables otherTyped = other as CreateCourseVariables;
|
|
||||||
return title == otherTyped.title &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
thumbnailUrl == otherTyped.thumbnailUrl &&
|
|
||||||
durationMinutes == otherTyped.durationMinutes &&
|
|
||||||
xpReward == otherTyped.xpReward &&
|
|
||||||
categoryId == otherTyped.categoryId &&
|
|
||||||
levelRequired == otherTyped.levelRequired &&
|
|
||||||
isCertification == otherTyped.isCertification;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([title.hashCode, description.hashCode, thumbnailUrl.hashCode, durationMinutes.hashCode, xpReward.hashCode, categoryId.hashCode, levelRequired.hashCode, isCertification.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if(title.state == OptionalState.set) {
|
|
||||||
json['title'] = title.toJson();
|
|
||||||
}
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
if(thumbnailUrl.state == OptionalState.set) {
|
|
||||||
json['thumbnailUrl'] = thumbnailUrl.toJson();
|
|
||||||
}
|
|
||||||
if(durationMinutes.state == OptionalState.set) {
|
|
||||||
json['durationMinutes'] = durationMinutes.toJson();
|
|
||||||
}
|
|
||||||
if(xpReward.state == OptionalState.set) {
|
|
||||||
json['xpReward'] = xpReward.toJson();
|
|
||||||
}
|
|
||||||
json['categoryId'] = nativeToJson<String>(categoryId);
|
|
||||||
if(levelRequired.state == OptionalState.set) {
|
|
||||||
json['levelRequired'] = levelRequired.toJson();
|
|
||||||
}
|
|
||||||
if(isCertification.state == OptionalState.set) {
|
|
||||||
json['isCertification'] = isCertification.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCourseVariables({
|
|
||||||
required this.title,
|
|
||||||
required this.description,
|
|
||||||
required this.thumbnailUrl,
|
|
||||||
required this.durationMinutes,
|
|
||||||
required this.xpReward,
|
|
||||||
required this.categoryId,
|
|
||||||
required this.levelRequired,
|
|
||||||
required this.isCertification,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateCustomRateCardVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
Optional<String> _baseBook = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _discount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isDefault = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateCustomRateCardVariablesBuilder baseBook(String? t) {
|
|
||||||
_baseBook.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCustomRateCardVariablesBuilder discount(double? t) {
|
|
||||||
_discount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateCustomRateCardVariablesBuilder isDefault(bool? t) {
|
|
||||||
_isDefault.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCustomRateCardVariablesBuilder(this._dataConnect, {required this.name,});
|
|
||||||
Deserializer<CreateCustomRateCardData> dataDeserializer = (dynamic json) => CreateCustomRateCardData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateCustomRateCardVariables> varsSerializer = (CreateCustomRateCardVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateCustomRateCardData, CreateCustomRateCardVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateCustomRateCardData, CreateCustomRateCardVariables> ref() {
|
|
||||||
CreateCustomRateCardVariables vars= CreateCustomRateCardVariables(name: name,baseBook: _baseBook,discount: _discount,isDefault: _isDefault,);
|
|
||||||
return _dataConnect.mutation("createCustomRateCard", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCustomRateCardCustomRateCardInsert {
|
|
||||||
final String id;
|
|
||||||
CreateCustomRateCardCustomRateCardInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCustomRateCardCustomRateCardInsert otherTyped = other as CreateCustomRateCardCustomRateCardInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCustomRateCardCustomRateCardInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCustomRateCardData {
|
|
||||||
final CreateCustomRateCardCustomRateCardInsert customRateCard_insert;
|
|
||||||
CreateCustomRateCardData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
customRateCard_insert = CreateCustomRateCardCustomRateCardInsert.fromJson(json['customRateCard_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCustomRateCardData otherTyped = other as CreateCustomRateCardData;
|
|
||||||
return customRateCard_insert == otherTyped.customRateCard_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => customRateCard_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['customRateCard_insert'] = customRateCard_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCustomRateCardData({
|
|
||||||
required this.customRateCard_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateCustomRateCardVariables {
|
|
||||||
final String name;
|
|
||||||
late final Optional<String>baseBook;
|
|
||||||
late final Optional<double>discount;
|
|
||||||
late final Optional<bool>isDefault;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateCustomRateCardVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
baseBook = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
baseBook.value = json['baseBook'] == null ? null : nativeFromJson<String>(json['baseBook']);
|
|
||||||
|
|
||||||
|
|
||||||
discount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
discount.value = json['discount'] == null ? null : nativeFromJson<double>(json['discount']);
|
|
||||||
|
|
||||||
|
|
||||||
isDefault = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isDefault.value = json['isDefault'] == null ? null : nativeFromJson<bool>(json['isDefault']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateCustomRateCardVariables otherTyped = other as CreateCustomRateCardVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
baseBook == otherTyped.baseBook &&
|
|
||||||
discount == otherTyped.discount &&
|
|
||||||
isDefault == otherTyped.isDefault;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, baseBook.hashCode, discount.hashCode, isDefault.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
if(baseBook.state == OptionalState.set) {
|
|
||||||
json['baseBook'] = baseBook.toJson();
|
|
||||||
}
|
|
||||||
if(discount.state == OptionalState.set) {
|
|
||||||
json['discount'] = discount.toJson();
|
|
||||||
}
|
|
||||||
if(isDefault.state == OptionalState.set) {
|
|
||||||
json['isDefault'] = isDefault.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateCustomRateCardVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.baseBook,
|
|
||||||
required this.discount,
|
|
||||||
required this.isDefault,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateDocumentVariablesBuilder {
|
|
||||||
DocumentType documentType;
|
|
||||||
String name;
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateDocumentVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateDocumentVariablesBuilder(this._dataConnect, {required this.documentType,required this.name,});
|
|
||||||
Deserializer<CreateDocumentData> dataDeserializer = (dynamic json) => CreateDocumentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateDocumentVariables> varsSerializer = (CreateDocumentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateDocumentData, CreateDocumentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateDocumentData, CreateDocumentVariables> ref() {
|
|
||||||
CreateDocumentVariables vars= CreateDocumentVariables(documentType: documentType,name: name,description: _description,);
|
|
||||||
return _dataConnect.mutation("createDocument", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateDocumentDocumentInsert {
|
|
||||||
final String id;
|
|
||||||
CreateDocumentDocumentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateDocumentDocumentInsert otherTyped = other as CreateDocumentDocumentInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateDocumentDocumentInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateDocumentData {
|
|
||||||
final CreateDocumentDocumentInsert document_insert;
|
|
||||||
CreateDocumentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
document_insert = CreateDocumentDocumentInsert.fromJson(json['document_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateDocumentData otherTyped = other as CreateDocumentData;
|
|
||||||
return document_insert == otherTyped.document_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => document_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['document_insert'] = document_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateDocumentData({
|
|
||||||
required this.document_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateDocumentVariables {
|
|
||||||
final DocumentType documentType;
|
|
||||||
final String name;
|
|
||||||
late final Optional<String>description;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateDocumentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
documentType = DocumentType.values.byName(json['documentType']),
|
|
||||||
name = nativeFromJson<String>(json['name']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateDocumentVariables otherTyped = other as CreateDocumentVariables;
|
|
||||||
return documentType == otherTyped.documentType &&
|
|
||||||
name == otherTyped.name &&
|
|
||||||
description == otherTyped.description;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([documentType.hashCode, name.hashCode, description.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['documentType'] =
|
|
||||||
documentType.name
|
|
||||||
;
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateDocumentVariables({
|
|
||||||
required this.documentType,
|
|
||||||
required this.name,
|
|
||||||
required this.description,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateEmergencyContactVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
String phone;
|
|
||||||
RelationshipType relationship;
|
|
||||||
String staffId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateEmergencyContactVariablesBuilder(this._dataConnect, {required this.name,required this.phone,required this.relationship,required this.staffId,});
|
|
||||||
Deserializer<CreateEmergencyContactData> dataDeserializer = (dynamic json) => CreateEmergencyContactData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateEmergencyContactVariables> varsSerializer = (CreateEmergencyContactVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateEmergencyContactData, CreateEmergencyContactVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateEmergencyContactData, CreateEmergencyContactVariables> ref() {
|
|
||||||
CreateEmergencyContactVariables vars= CreateEmergencyContactVariables(name: name,phone: phone,relationship: relationship,staffId: staffId,);
|
|
||||||
return _dataConnect.mutation("createEmergencyContact", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateEmergencyContactEmergencyContactInsert {
|
|
||||||
final String id;
|
|
||||||
CreateEmergencyContactEmergencyContactInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateEmergencyContactEmergencyContactInsert otherTyped = other as CreateEmergencyContactEmergencyContactInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateEmergencyContactEmergencyContactInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateEmergencyContactData {
|
|
||||||
final CreateEmergencyContactEmergencyContactInsert emergencyContact_insert;
|
|
||||||
CreateEmergencyContactData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
emergencyContact_insert = CreateEmergencyContactEmergencyContactInsert.fromJson(json['emergencyContact_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateEmergencyContactData otherTyped = other as CreateEmergencyContactData;
|
|
||||||
return emergencyContact_insert == otherTyped.emergencyContact_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => emergencyContact_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['emergencyContact_insert'] = emergencyContact_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateEmergencyContactData({
|
|
||||||
required this.emergencyContact_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateEmergencyContactVariables {
|
|
||||||
final String name;
|
|
||||||
final String phone;
|
|
||||||
final RelationshipType relationship;
|
|
||||||
final String staffId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateEmergencyContactVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
phone = nativeFromJson<String>(json['phone']),
|
|
||||||
relationship = RelationshipType.values.byName(json['relationship']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateEmergencyContactVariables otherTyped = other as CreateEmergencyContactVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
phone == otherTyped.phone &&
|
|
||||||
relationship == otherTyped.relationship &&
|
|
||||||
staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, phone.hashCode, relationship.hashCode, staffId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
json['phone'] = nativeToJson<String>(phone);
|
|
||||||
json['relationship'] =
|
|
||||||
relationship.name
|
|
||||||
;
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateEmergencyContactVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.phone,
|
|
||||||
required this.relationship,
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,142 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateFaqDataVariablesBuilder {
|
|
||||||
String category;
|
|
||||||
Optional<List<AnyValue>> _questions = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateFaqDataVariablesBuilder questions(List<AnyValue>? t) {
|
|
||||||
_questions.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateFaqDataVariablesBuilder(this._dataConnect, {required this.category,});
|
|
||||||
Deserializer<CreateFaqDataData> dataDeserializer = (dynamic json) => CreateFaqDataData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateFaqDataVariables> varsSerializer = (CreateFaqDataVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateFaqDataData, CreateFaqDataVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateFaqDataData, CreateFaqDataVariables> ref() {
|
|
||||||
CreateFaqDataVariables vars= CreateFaqDataVariables(category: category,questions: _questions,);
|
|
||||||
return _dataConnect.mutation("createFaqData", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateFaqDataFaqDataInsert {
|
|
||||||
final String id;
|
|
||||||
CreateFaqDataFaqDataInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateFaqDataFaqDataInsert otherTyped = other as CreateFaqDataFaqDataInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateFaqDataFaqDataInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateFaqDataData {
|
|
||||||
final CreateFaqDataFaqDataInsert faqData_insert;
|
|
||||||
CreateFaqDataData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
faqData_insert = CreateFaqDataFaqDataInsert.fromJson(json['faqData_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateFaqDataData otherTyped = other as CreateFaqDataData;
|
|
||||||
return faqData_insert == otherTyped.faqData_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => faqData_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['faqData_insert'] = faqData_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateFaqDataData({
|
|
||||||
required this.faqData_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateFaqDataVariables {
|
|
||||||
final String category;
|
|
||||||
late final Optional<List<AnyValue>>questions;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateFaqDataVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
category = nativeFromJson<String>(json['category']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
questions = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
questions.value = json['questions'] == null ? null : (json['questions'] as List<dynamic>)
|
|
||||||
.map((e) => AnyValue.fromJson(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateFaqDataVariables otherTyped = other as CreateFaqDataVariables;
|
|
||||||
return category == otherTyped.category &&
|
|
||||||
questions == otherTyped.questions;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([category.hashCode, questions.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['category'] = nativeToJson<String>(category);
|
|
||||||
if(questions.state == OptionalState.set) {
|
|
||||||
json['questions'] = questions.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateFaqDataVariables({
|
|
||||||
required this.category,
|
|
||||||
required this.questions,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateHubVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
Optional<String> _locationName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _nfcTagId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String ownerId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateHubVariablesBuilder locationName(String? t) {
|
|
||||||
_locationName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateHubVariablesBuilder address(String? t) {
|
|
||||||
_address.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateHubVariablesBuilder nfcTagId(String? t) {
|
|
||||||
_nfcTagId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateHubVariablesBuilder(this._dataConnect, {required this.name,required this.ownerId,});
|
|
||||||
Deserializer<CreateHubData> dataDeserializer = (dynamic json) => CreateHubData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateHubVariables> varsSerializer = (CreateHubVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateHubData, CreateHubVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateHubData, CreateHubVariables> ref() {
|
|
||||||
CreateHubVariables vars= CreateHubVariables(name: name,locationName: _locationName,address: _address,nfcTagId: _nfcTagId,ownerId: ownerId,);
|
|
||||||
return _dataConnect.mutation("createHub", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateHubHubInsert {
|
|
||||||
final String id;
|
|
||||||
CreateHubHubInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateHubHubInsert otherTyped = other as CreateHubHubInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateHubHubInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateHubData {
|
|
||||||
final CreateHubHubInsert hub_insert;
|
|
||||||
CreateHubData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
hub_insert = CreateHubHubInsert.fromJson(json['hub_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateHubData otherTyped = other as CreateHubData;
|
|
||||||
return hub_insert == otherTyped.hub_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => hub_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['hub_insert'] = hub_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateHubData({
|
|
||||||
required this.hub_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateHubVariables {
|
|
||||||
final String name;
|
|
||||||
late final Optional<String>locationName;
|
|
||||||
late final Optional<String>address;
|
|
||||||
late final Optional<String>nfcTagId;
|
|
||||||
final String ownerId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateHubVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
ownerId = nativeFromJson<String>(json['ownerId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
locationName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
locationName.value = json['locationName'] == null ? null : nativeFromJson<String>(json['locationName']);
|
|
||||||
|
|
||||||
|
|
||||||
address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
address.value = json['address'] == null ? null : nativeFromJson<String>(json['address']);
|
|
||||||
|
|
||||||
|
|
||||||
nfcTagId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
nfcTagId.value = json['nfcTagId'] == null ? null : nativeFromJson<String>(json['nfcTagId']);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateHubVariables otherTyped = other as CreateHubVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
locationName == otherTyped.locationName &&
|
|
||||||
address == otherTyped.address &&
|
|
||||||
nfcTagId == otherTyped.nfcTagId &&
|
|
||||||
ownerId == otherTyped.ownerId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, locationName.hashCode, address.hashCode, nfcTagId.hashCode, ownerId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
if(locationName.state == OptionalState.set) {
|
|
||||||
json['locationName'] = locationName.toJson();
|
|
||||||
}
|
|
||||||
if(address.state == OptionalState.set) {
|
|
||||||
json['address'] = address.toJson();
|
|
||||||
}
|
|
||||||
if(nfcTagId.state == OptionalState.set) {
|
|
||||||
json['nfcTagId'] = nfcTagId.toJson();
|
|
||||||
}
|
|
||||||
json['ownerId'] = nativeToJson<String>(ownerId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateHubVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.locationName,
|
|
||||||
required this.address,
|
|
||||||
required this.nfcTagId,
|
|
||||||
required this.ownerId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,341 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateInvoiceVariablesBuilder {
|
|
||||||
InvoiceStatus status;
|
|
||||||
String vendorId;
|
|
||||||
String businessId;
|
|
||||||
String orderId;
|
|
||||||
Optional<InovicePaymentTerms> _paymentTerms = Optional.optional((data) => InovicePaymentTerms.values.byName(data), enumSerializer);
|
|
||||||
String invoiceNumber;
|
|
||||||
Timestamp issueDate;
|
|
||||||
Timestamp dueDate;
|
|
||||||
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _vendorNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _roles = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<AnyValue> _charges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<double> _otherCharges = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _subtotal = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
double amount;
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _staffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _chargesCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) {
|
|
||||||
_paymentTerms.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder hub(String? t) {
|
|
||||||
_hub.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder managerName(String? t) {
|
|
||||||
_managerName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder vendorNumber(String? t) {
|
|
||||||
_vendorNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder roles(AnyValue? t) {
|
|
||||||
_roles.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder charges(AnyValue? t) {
|
|
||||||
_charges.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder otherCharges(double? t) {
|
|
||||||
_otherCharges.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder subtotal(double? t) {
|
|
||||||
_subtotal.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder staffCount(int? t) {
|
|
||||||
_staffCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceVariablesBuilder chargesCount(int? t) {
|
|
||||||
_chargesCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceVariablesBuilder(this._dataConnect, {required this.status,required this.vendorId,required this.businessId,required this.orderId,required this.invoiceNumber,required this.issueDate,required this.dueDate,required this.amount,});
|
|
||||||
Deserializer<CreateInvoiceData> dataDeserializer = (dynamic json) => CreateInvoiceData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateInvoiceVariables> varsSerializer = (CreateInvoiceVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateInvoiceData, CreateInvoiceVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateInvoiceData, CreateInvoiceVariables> ref() {
|
|
||||||
CreateInvoiceVariables vars= CreateInvoiceVariables(status: status,vendorId: vendorId,businessId: businessId,orderId: orderId,paymentTerms: _paymentTerms,invoiceNumber: invoiceNumber,issueDate: issueDate,dueDate: dueDate,hub: _hub,managerName: _managerName,vendorNumber: _vendorNumber,roles: _roles,charges: _charges,otherCharges: _otherCharges,subtotal: _subtotal,amount: amount,notes: _notes,staffCount: _staffCount,chargesCount: _chargesCount,);
|
|
||||||
return _dataConnect.mutation("createInvoice", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceInvoiceInsert {
|
|
||||||
final String id;
|
|
||||||
CreateInvoiceInvoiceInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceInvoiceInsert otherTyped = other as CreateInvoiceInvoiceInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceInvoiceInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceData {
|
|
||||||
final CreateInvoiceInvoiceInsert invoice_insert;
|
|
||||||
CreateInvoiceData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
invoice_insert = CreateInvoiceInvoiceInsert.fromJson(json['invoice_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceData otherTyped = other as CreateInvoiceData;
|
|
||||||
return invoice_insert == otherTyped.invoice_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => invoice_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['invoice_insert'] = invoice_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceData({
|
|
||||||
required this.invoice_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceVariables {
|
|
||||||
final InvoiceStatus status;
|
|
||||||
final String vendorId;
|
|
||||||
final String businessId;
|
|
||||||
final String orderId;
|
|
||||||
late final Optional<InovicePaymentTerms>paymentTerms;
|
|
||||||
final String invoiceNumber;
|
|
||||||
final Timestamp issueDate;
|
|
||||||
final Timestamp dueDate;
|
|
||||||
late final Optional<String>hub;
|
|
||||||
late final Optional<String>managerName;
|
|
||||||
late final Optional<String>vendorNumber;
|
|
||||||
late final Optional<AnyValue>roles;
|
|
||||||
late final Optional<AnyValue>charges;
|
|
||||||
late final Optional<double>otherCharges;
|
|
||||||
late final Optional<double>subtotal;
|
|
||||||
final double amount;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
late final Optional<int>staffCount;
|
|
||||||
late final Optional<int>chargesCount;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateInvoiceVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
status = InvoiceStatus.values.byName(json['status']),
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
|
||||||
orderId = nativeFromJson<String>(json['orderId']),
|
|
||||||
invoiceNumber = nativeFromJson<String>(json['invoiceNumber']),
|
|
||||||
issueDate = Timestamp.fromJson(json['issueDate']),
|
|
||||||
dueDate = Timestamp.fromJson(json['dueDate']),
|
|
||||||
amount = nativeFromJson<double>(json['amount']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
paymentTerms = Optional.optional((data) => InovicePaymentTerms.values.byName(data), enumSerializer);
|
|
||||||
paymentTerms.value = json['paymentTerms'] == null ? null : InovicePaymentTerms.values.byName(json['paymentTerms']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hub = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
|
|
||||||
|
|
||||||
|
|
||||||
managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
managerName.value = json['managerName'] == null ? null : nativeFromJson<String>(json['managerName']);
|
|
||||||
|
|
||||||
|
|
||||||
vendorNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorNumber.value = json['vendorNumber'] == null ? null : nativeFromJson<String>(json['vendorNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
roles = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
roles.value = json['roles'] == null ? null : AnyValue.fromJson(json['roles']);
|
|
||||||
|
|
||||||
|
|
||||||
charges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
charges.value = json['charges'] == null ? null : AnyValue.fromJson(json['charges']);
|
|
||||||
|
|
||||||
|
|
||||||
otherCharges = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
otherCharges.value = json['otherCharges'] == null ? null : nativeFromJson<double>(json['otherCharges']);
|
|
||||||
|
|
||||||
|
|
||||||
subtotal = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
subtotal.value = json['subtotal'] == null ? null : nativeFromJson<double>(json['subtotal']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
|
|
||||||
staffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
staffCount.value = json['staffCount'] == null ? null : nativeFromJson<int>(json['staffCount']);
|
|
||||||
|
|
||||||
|
|
||||||
chargesCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
chargesCount.value = json['chargesCount'] == null ? null : nativeFromJson<int>(json['chargesCount']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceVariables otherTyped = other as CreateInvoiceVariables;
|
|
||||||
return status == otherTyped.status &&
|
|
||||||
vendorId == otherTyped.vendorId &&
|
|
||||||
businessId == otherTyped.businessId &&
|
|
||||||
orderId == otherTyped.orderId &&
|
|
||||||
paymentTerms == otherTyped.paymentTerms &&
|
|
||||||
invoiceNumber == otherTyped.invoiceNumber &&
|
|
||||||
issueDate == otherTyped.issueDate &&
|
|
||||||
dueDate == otherTyped.dueDate &&
|
|
||||||
hub == otherTyped.hub &&
|
|
||||||
managerName == otherTyped.managerName &&
|
|
||||||
vendorNumber == otherTyped.vendorNumber &&
|
|
||||||
roles == otherTyped.roles &&
|
|
||||||
charges == otherTyped.charges &&
|
|
||||||
otherCharges == otherTyped.otherCharges &&
|
|
||||||
subtotal == otherTyped.subtotal &&
|
|
||||||
amount == otherTyped.amount &&
|
|
||||||
notes == otherTyped.notes &&
|
|
||||||
staffCount == otherTyped.staffCount &&
|
|
||||||
chargesCount == otherTyped.chargesCount;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([status.hashCode, vendorId.hashCode, businessId.hashCode, orderId.hashCode, paymentTerms.hashCode, invoiceNumber.hashCode, issueDate.hashCode, dueDate.hashCode, hub.hashCode, managerName.hashCode, vendorNumber.hashCode, roles.hashCode, charges.hashCode, otherCharges.hashCode, subtotal.hashCode, amount.hashCode, notes.hashCode, staffCount.hashCode, chargesCount.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
|
||||||
json['orderId'] = nativeToJson<String>(orderId);
|
|
||||||
if(paymentTerms.state == OptionalState.set) {
|
|
||||||
json['paymentTerms'] = paymentTerms.toJson();
|
|
||||||
}
|
|
||||||
json['invoiceNumber'] = nativeToJson<String>(invoiceNumber);
|
|
||||||
json['issueDate'] = issueDate.toJson();
|
|
||||||
json['dueDate'] = dueDate.toJson();
|
|
||||||
if(hub.state == OptionalState.set) {
|
|
||||||
json['hub'] = hub.toJson();
|
|
||||||
}
|
|
||||||
if(managerName.state == OptionalState.set) {
|
|
||||||
json['managerName'] = managerName.toJson();
|
|
||||||
}
|
|
||||||
if(vendorNumber.state == OptionalState.set) {
|
|
||||||
json['vendorNumber'] = vendorNumber.toJson();
|
|
||||||
}
|
|
||||||
if(roles.state == OptionalState.set) {
|
|
||||||
json['roles'] = roles.toJson();
|
|
||||||
}
|
|
||||||
if(charges.state == OptionalState.set) {
|
|
||||||
json['charges'] = charges.toJson();
|
|
||||||
}
|
|
||||||
if(otherCharges.state == OptionalState.set) {
|
|
||||||
json['otherCharges'] = otherCharges.toJson();
|
|
||||||
}
|
|
||||||
if(subtotal.state == OptionalState.set) {
|
|
||||||
json['subtotal'] = subtotal.toJson();
|
|
||||||
}
|
|
||||||
json['amount'] = nativeToJson<double>(amount);
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
if(staffCount.state == OptionalState.set) {
|
|
||||||
json['staffCount'] = staffCount.toJson();
|
|
||||||
}
|
|
||||||
if(chargesCount.state == OptionalState.set) {
|
|
||||||
json['chargesCount'] = chargesCount.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceVariables({
|
|
||||||
required this.status,
|
|
||||||
required this.vendorId,
|
|
||||||
required this.businessId,
|
|
||||||
required this.orderId,
|
|
||||||
required this.paymentTerms,
|
|
||||||
required this.invoiceNumber,
|
|
||||||
required this.issueDate,
|
|
||||||
required this.dueDate,
|
|
||||||
required this.hub,
|
|
||||||
required this.managerName,
|
|
||||||
required this.vendorNumber,
|
|
||||||
required this.roles,
|
|
||||||
required this.charges,
|
|
||||||
required this.otherCharges,
|
|
||||||
required this.subtotal,
|
|
||||||
required this.amount,
|
|
||||||
required this.notes,
|
|
||||||
required this.staffCount,
|
|
||||||
required this.chargesCount,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,402 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateInvoiceTemplateVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
String ownerId;
|
|
||||||
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _businessId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _orderId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<InovicePaymentTermsTemp> _paymentTerms = Optional.optional((data) => InovicePaymentTermsTemp.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _invoiceNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _issueDate = Optional.optional((json) => json['issueDate'] = Timestamp.fromJson(json['issueDate']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _dueDate = Optional.optional((json) => json['dueDate'] = Timestamp.fromJson(json['dueDate']), defaultSerializer);
|
|
||||||
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _vendorNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _roles = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<AnyValue> _charges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<double> _otherCharges = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _subtotal = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _amount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _staffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _chargesCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateInvoiceTemplateVariablesBuilder vendorId(String? t) {
|
|
||||||
_vendorId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder businessId(String? t) {
|
|
||||||
_businessId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder orderId(String? t) {
|
|
||||||
_orderId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder paymentTerms(InovicePaymentTermsTemp? t) {
|
|
||||||
_paymentTerms.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder invoiceNumber(String? t) {
|
|
||||||
_invoiceNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder issueDate(Timestamp? t) {
|
|
||||||
_issueDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder dueDate(Timestamp? t) {
|
|
||||||
_dueDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder hub(String? t) {
|
|
||||||
_hub.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder managerName(String? t) {
|
|
||||||
_managerName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder vendorNumber(String? t) {
|
|
||||||
_vendorNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder roles(AnyValue? t) {
|
|
||||||
_roles.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder charges(AnyValue? t) {
|
|
||||||
_charges.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder otherCharges(double? t) {
|
|
||||||
_otherCharges.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder subtotal(double? t) {
|
|
||||||
_subtotal.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder amount(double? t) {
|
|
||||||
_amount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder staffCount(int? t) {
|
|
||||||
_staffCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateInvoiceTemplateVariablesBuilder chargesCount(int? t) {
|
|
||||||
_chargesCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceTemplateVariablesBuilder(this._dataConnect, {required this.name,required this.ownerId,});
|
|
||||||
Deserializer<CreateInvoiceTemplateData> dataDeserializer = (dynamic json) => CreateInvoiceTemplateData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateInvoiceTemplateVariables> varsSerializer = (CreateInvoiceTemplateVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateInvoiceTemplateData, CreateInvoiceTemplateVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateInvoiceTemplateData, CreateInvoiceTemplateVariables> ref() {
|
|
||||||
CreateInvoiceTemplateVariables vars= CreateInvoiceTemplateVariables(name: name,ownerId: ownerId,vendorId: _vendorId,businessId: _businessId,orderId: _orderId,paymentTerms: _paymentTerms,invoiceNumber: _invoiceNumber,issueDate: _issueDate,dueDate: _dueDate,hub: _hub,managerName: _managerName,vendorNumber: _vendorNumber,roles: _roles,charges: _charges,otherCharges: _otherCharges,subtotal: _subtotal,amount: _amount,notes: _notes,staffCount: _staffCount,chargesCount: _chargesCount,);
|
|
||||||
return _dataConnect.mutation("createInvoiceTemplate", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceTemplateInvoiceTemplateInsert {
|
|
||||||
final String id;
|
|
||||||
CreateInvoiceTemplateInvoiceTemplateInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceTemplateInvoiceTemplateInsert otherTyped = other as CreateInvoiceTemplateInvoiceTemplateInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceTemplateInvoiceTemplateInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceTemplateData {
|
|
||||||
final CreateInvoiceTemplateInvoiceTemplateInsert invoiceTemplate_insert;
|
|
||||||
CreateInvoiceTemplateData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
invoiceTemplate_insert = CreateInvoiceTemplateInvoiceTemplateInsert.fromJson(json['invoiceTemplate_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceTemplateData otherTyped = other as CreateInvoiceTemplateData;
|
|
||||||
return invoiceTemplate_insert == otherTyped.invoiceTemplate_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => invoiceTemplate_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['invoiceTemplate_insert'] = invoiceTemplate_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceTemplateData({
|
|
||||||
required this.invoiceTemplate_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateInvoiceTemplateVariables {
|
|
||||||
final String name;
|
|
||||||
final String ownerId;
|
|
||||||
late final Optional<String>vendorId;
|
|
||||||
late final Optional<String>businessId;
|
|
||||||
late final Optional<String>orderId;
|
|
||||||
late final Optional<InovicePaymentTermsTemp>paymentTerms;
|
|
||||||
late final Optional<String>invoiceNumber;
|
|
||||||
late final Optional<Timestamp>issueDate;
|
|
||||||
late final Optional<Timestamp>dueDate;
|
|
||||||
late final Optional<String>hub;
|
|
||||||
late final Optional<String>managerName;
|
|
||||||
late final Optional<String>vendorNumber;
|
|
||||||
late final Optional<AnyValue>roles;
|
|
||||||
late final Optional<AnyValue>charges;
|
|
||||||
late final Optional<double>otherCharges;
|
|
||||||
late final Optional<double>subtotal;
|
|
||||||
late final Optional<double>amount;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
late final Optional<int>staffCount;
|
|
||||||
late final Optional<int>chargesCount;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateInvoiceTemplateVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
ownerId = nativeFromJson<String>(json['ownerId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorId.value = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']);
|
|
||||||
|
|
||||||
|
|
||||||
businessId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
businessId.value = json['businessId'] == null ? null : nativeFromJson<String>(json['businessId']);
|
|
||||||
|
|
||||||
|
|
||||||
orderId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
orderId.value = json['orderId'] == null ? null : nativeFromJson<String>(json['orderId']);
|
|
||||||
|
|
||||||
|
|
||||||
paymentTerms = Optional.optional((data) => InovicePaymentTermsTemp.values.byName(data), enumSerializer);
|
|
||||||
paymentTerms.value = json['paymentTerms'] == null ? null : InovicePaymentTermsTemp.values.byName(json['paymentTerms']);
|
|
||||||
|
|
||||||
|
|
||||||
invoiceNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
invoiceNumber.value = json['invoiceNumber'] == null ? null : nativeFromJson<String>(json['invoiceNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
issueDate = Optional.optional((json) => json['issueDate'] = Timestamp.fromJson(json['issueDate']), defaultSerializer);
|
|
||||||
issueDate.value = json['issueDate'] == null ? null : Timestamp.fromJson(json['issueDate']);
|
|
||||||
|
|
||||||
|
|
||||||
dueDate = Optional.optional((json) => json['dueDate'] = Timestamp.fromJson(json['dueDate']), defaultSerializer);
|
|
||||||
dueDate.value = json['dueDate'] == null ? null : Timestamp.fromJson(json['dueDate']);
|
|
||||||
|
|
||||||
|
|
||||||
hub = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
|
|
||||||
|
|
||||||
|
|
||||||
managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
managerName.value = json['managerName'] == null ? null : nativeFromJson<String>(json['managerName']);
|
|
||||||
|
|
||||||
|
|
||||||
vendorNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorNumber.value = json['vendorNumber'] == null ? null : nativeFromJson<String>(json['vendorNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
roles = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
roles.value = json['roles'] == null ? null : AnyValue.fromJson(json['roles']);
|
|
||||||
|
|
||||||
|
|
||||||
charges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
charges.value = json['charges'] == null ? null : AnyValue.fromJson(json['charges']);
|
|
||||||
|
|
||||||
|
|
||||||
otherCharges = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
otherCharges.value = json['otherCharges'] == null ? null : nativeFromJson<double>(json['otherCharges']);
|
|
||||||
|
|
||||||
|
|
||||||
subtotal = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
subtotal.value = json['subtotal'] == null ? null : nativeFromJson<double>(json['subtotal']);
|
|
||||||
|
|
||||||
|
|
||||||
amount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
amount.value = json['amount'] == null ? null : nativeFromJson<double>(json['amount']);
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
|
|
||||||
staffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
staffCount.value = json['staffCount'] == null ? null : nativeFromJson<int>(json['staffCount']);
|
|
||||||
|
|
||||||
|
|
||||||
chargesCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
chargesCount.value = json['chargesCount'] == null ? null : nativeFromJson<int>(json['chargesCount']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateInvoiceTemplateVariables otherTyped = other as CreateInvoiceTemplateVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
ownerId == otherTyped.ownerId &&
|
|
||||||
vendorId == otherTyped.vendorId &&
|
|
||||||
businessId == otherTyped.businessId &&
|
|
||||||
orderId == otherTyped.orderId &&
|
|
||||||
paymentTerms == otherTyped.paymentTerms &&
|
|
||||||
invoiceNumber == otherTyped.invoiceNumber &&
|
|
||||||
issueDate == otherTyped.issueDate &&
|
|
||||||
dueDate == otherTyped.dueDate &&
|
|
||||||
hub == otherTyped.hub &&
|
|
||||||
managerName == otherTyped.managerName &&
|
|
||||||
vendorNumber == otherTyped.vendorNumber &&
|
|
||||||
roles == otherTyped.roles &&
|
|
||||||
charges == otherTyped.charges &&
|
|
||||||
otherCharges == otherTyped.otherCharges &&
|
|
||||||
subtotal == otherTyped.subtotal &&
|
|
||||||
amount == otherTyped.amount &&
|
|
||||||
notes == otherTyped.notes &&
|
|
||||||
staffCount == otherTyped.staffCount &&
|
|
||||||
chargesCount == otherTyped.chargesCount;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, ownerId.hashCode, vendorId.hashCode, businessId.hashCode, orderId.hashCode, paymentTerms.hashCode, invoiceNumber.hashCode, issueDate.hashCode, dueDate.hashCode, hub.hashCode, managerName.hashCode, vendorNumber.hashCode, roles.hashCode, charges.hashCode, otherCharges.hashCode, subtotal.hashCode, amount.hashCode, notes.hashCode, staffCount.hashCode, chargesCount.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
json['ownerId'] = nativeToJson<String>(ownerId);
|
|
||||||
if(vendorId.state == OptionalState.set) {
|
|
||||||
json['vendorId'] = vendorId.toJson();
|
|
||||||
}
|
|
||||||
if(businessId.state == OptionalState.set) {
|
|
||||||
json['businessId'] = businessId.toJson();
|
|
||||||
}
|
|
||||||
if(orderId.state == OptionalState.set) {
|
|
||||||
json['orderId'] = orderId.toJson();
|
|
||||||
}
|
|
||||||
if(paymentTerms.state == OptionalState.set) {
|
|
||||||
json['paymentTerms'] = paymentTerms.toJson();
|
|
||||||
}
|
|
||||||
if(invoiceNumber.state == OptionalState.set) {
|
|
||||||
json['invoiceNumber'] = invoiceNumber.toJson();
|
|
||||||
}
|
|
||||||
if(issueDate.state == OptionalState.set) {
|
|
||||||
json['issueDate'] = issueDate.toJson();
|
|
||||||
}
|
|
||||||
if(dueDate.state == OptionalState.set) {
|
|
||||||
json['dueDate'] = dueDate.toJson();
|
|
||||||
}
|
|
||||||
if(hub.state == OptionalState.set) {
|
|
||||||
json['hub'] = hub.toJson();
|
|
||||||
}
|
|
||||||
if(managerName.state == OptionalState.set) {
|
|
||||||
json['managerName'] = managerName.toJson();
|
|
||||||
}
|
|
||||||
if(vendorNumber.state == OptionalState.set) {
|
|
||||||
json['vendorNumber'] = vendorNumber.toJson();
|
|
||||||
}
|
|
||||||
if(roles.state == OptionalState.set) {
|
|
||||||
json['roles'] = roles.toJson();
|
|
||||||
}
|
|
||||||
if(charges.state == OptionalState.set) {
|
|
||||||
json['charges'] = charges.toJson();
|
|
||||||
}
|
|
||||||
if(otherCharges.state == OptionalState.set) {
|
|
||||||
json['otherCharges'] = otherCharges.toJson();
|
|
||||||
}
|
|
||||||
if(subtotal.state == OptionalState.set) {
|
|
||||||
json['subtotal'] = subtotal.toJson();
|
|
||||||
}
|
|
||||||
if(amount.state == OptionalState.set) {
|
|
||||||
json['amount'] = amount.toJson();
|
|
||||||
}
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
if(staffCount.state == OptionalState.set) {
|
|
||||||
json['staffCount'] = staffCount.toJson();
|
|
||||||
}
|
|
||||||
if(chargesCount.state == OptionalState.set) {
|
|
||||||
json['chargesCount'] = chargesCount.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateInvoiceTemplateVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.ownerId,
|
|
||||||
required this.vendorId,
|
|
||||||
required this.businessId,
|
|
||||||
required this.orderId,
|
|
||||||
required this.paymentTerms,
|
|
||||||
required this.invoiceNumber,
|
|
||||||
required this.issueDate,
|
|
||||||
required this.dueDate,
|
|
||||||
required this.hub,
|
|
||||||
required this.managerName,
|
|
||||||
required this.vendorNumber,
|
|
||||||
required this.roles,
|
|
||||||
required this.charges,
|
|
||||||
required this.otherCharges,
|
|
||||||
required this.subtotal,
|
|
||||||
required this.amount,
|
|
||||||
required this.notes,
|
|
||||||
required this.staffCount,
|
|
||||||
required this.chargesCount,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,162 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateLevelVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
int xpRequired;
|
|
||||||
Optional<String> _icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _colors = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateLevelVariablesBuilder icon(String? t) {
|
|
||||||
_icon.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateLevelVariablesBuilder colors(AnyValue? t) {
|
|
||||||
_colors.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateLevelVariablesBuilder(this._dataConnect, {required this.name,required this.xpRequired,});
|
|
||||||
Deserializer<CreateLevelData> dataDeserializer = (dynamic json) => CreateLevelData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateLevelVariables> varsSerializer = (CreateLevelVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateLevelData, CreateLevelVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateLevelData, CreateLevelVariables> ref() {
|
|
||||||
CreateLevelVariables vars= CreateLevelVariables(name: name,xpRequired: xpRequired,icon: _icon,colors: _colors,);
|
|
||||||
return _dataConnect.mutation("createLevel", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateLevelLevelInsert {
|
|
||||||
final String id;
|
|
||||||
CreateLevelLevelInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateLevelLevelInsert otherTyped = other as CreateLevelLevelInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateLevelLevelInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateLevelData {
|
|
||||||
final CreateLevelLevelInsert level_insert;
|
|
||||||
CreateLevelData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
level_insert = CreateLevelLevelInsert.fromJson(json['level_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateLevelData otherTyped = other as CreateLevelData;
|
|
||||||
return level_insert == otherTyped.level_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => level_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['level_insert'] = level_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateLevelData({
|
|
||||||
required this.level_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateLevelVariables {
|
|
||||||
final String name;
|
|
||||||
final int xpRequired;
|
|
||||||
late final Optional<String>icon;
|
|
||||||
late final Optional<AnyValue>colors;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateLevelVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
xpRequired = nativeFromJson<int>(json['xpRequired']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
icon = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
icon.value = json['icon'] == null ? null : nativeFromJson<String>(json['icon']);
|
|
||||||
|
|
||||||
|
|
||||||
colors = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
colors.value = json['colors'] == null ? null : AnyValue.fromJson(json['colors']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateLevelVariables otherTyped = other as CreateLevelVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
xpRequired == otherTyped.xpRequired &&
|
|
||||||
icon == otherTyped.icon &&
|
|
||||||
colors == otherTyped.colors;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, xpRequired.hashCode, icon.hashCode, colors.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
json['xpRequired'] = nativeToJson<int>(xpRequired);
|
|
||||||
if(icon.state == OptionalState.set) {
|
|
||||||
json['icon'] = icon.toJson();
|
|
||||||
}
|
|
||||||
if(colors.state == OptionalState.set) {
|
|
||||||
json['colors'] = colors.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateLevelVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.xpRequired,
|
|
||||||
required this.icon,
|
|
||||||
required this.colors,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateMemberTaskVariablesBuilder {
|
|
||||||
String teamMemberId;
|
|
||||||
String taskId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateMemberTaskVariablesBuilder(this._dataConnect, {required this.teamMemberId,required this.taskId,});
|
|
||||||
Deserializer<CreateMemberTaskData> dataDeserializer = (dynamic json) => CreateMemberTaskData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateMemberTaskVariables> varsSerializer = (CreateMemberTaskVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateMemberTaskData, CreateMemberTaskVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateMemberTaskData, CreateMemberTaskVariables> ref() {
|
|
||||||
CreateMemberTaskVariables vars= CreateMemberTaskVariables(teamMemberId: teamMemberId,taskId: taskId,);
|
|
||||||
return _dataConnect.mutation("createMemberTask", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMemberTaskMemberTaskInsert {
|
|
||||||
final String teamMemberId;
|
|
||||||
final String taskId;
|
|
||||||
CreateMemberTaskMemberTaskInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMemberId = nativeFromJson<String>(json['teamMemberId']),
|
|
||||||
taskId = nativeFromJson<String>(json['taskId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMemberTaskMemberTaskInsert otherTyped = other as CreateMemberTaskMemberTaskInsert;
|
|
||||||
return teamMemberId == otherTyped.teamMemberId &&
|
|
||||||
taskId == otherTyped.taskId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamMemberId.hashCode, taskId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMemberId'] = nativeToJson<String>(teamMemberId);
|
|
||||||
json['taskId'] = nativeToJson<String>(taskId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMemberTaskMemberTaskInsert({
|
|
||||||
required this.teamMemberId,
|
|
||||||
required this.taskId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMemberTaskData {
|
|
||||||
final CreateMemberTaskMemberTaskInsert memberTask_insert;
|
|
||||||
CreateMemberTaskData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
memberTask_insert = CreateMemberTaskMemberTaskInsert.fromJson(json['memberTask_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMemberTaskData otherTyped = other as CreateMemberTaskData;
|
|
||||||
return memberTask_insert == otherTyped.memberTask_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => memberTask_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['memberTask_insert'] = memberTask_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMemberTaskData({
|
|
||||||
required this.memberTask_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMemberTaskVariables {
|
|
||||||
final String teamMemberId;
|
|
||||||
final String taskId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateMemberTaskVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
teamMemberId = nativeFromJson<String>(json['teamMemberId']),
|
|
||||||
taskId = nativeFromJson<String>(json['taskId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMemberTaskVariables otherTyped = other as CreateMemberTaskVariables;
|
|
||||||
return teamMemberId == otherTyped.teamMemberId &&
|
|
||||||
taskId == otherTyped.taskId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamMemberId.hashCode, taskId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMemberId'] = nativeToJson<String>(teamMemberId);
|
|
||||||
json['taskId'] = nativeToJson<String>(taskId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMemberTaskVariables({
|
|
||||||
required this.teamMemberId,
|
|
||||||
required this.taskId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateMessageVariablesBuilder {
|
|
||||||
String conversationId;
|
|
||||||
String senderId;
|
|
||||||
String content;
|
|
||||||
Optional<bool> _isSystem = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateMessageVariablesBuilder isSystem(bool? t) {
|
|
||||||
_isSystem.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMessageVariablesBuilder(this._dataConnect, {required this.conversationId,required this.senderId,required this.content,});
|
|
||||||
Deserializer<CreateMessageData> dataDeserializer = (dynamic json) => CreateMessageData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateMessageVariables> varsSerializer = (CreateMessageVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateMessageData, CreateMessageVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateMessageData, CreateMessageVariables> ref() {
|
|
||||||
CreateMessageVariables vars= CreateMessageVariables(conversationId: conversationId,senderId: senderId,content: content,isSystem: _isSystem,);
|
|
||||||
return _dataConnect.mutation("createMessage", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMessageMessageInsert {
|
|
||||||
final String id;
|
|
||||||
CreateMessageMessageInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMessageMessageInsert otherTyped = other as CreateMessageMessageInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMessageMessageInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMessageData {
|
|
||||||
final CreateMessageMessageInsert message_insert;
|
|
||||||
CreateMessageData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
message_insert = CreateMessageMessageInsert.fromJson(json['message_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMessageData otherTyped = other as CreateMessageData;
|
|
||||||
return message_insert == otherTyped.message_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => message_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['message_insert'] = message_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMessageData({
|
|
||||||
required this.message_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateMessageVariables {
|
|
||||||
final String conversationId;
|
|
||||||
final String senderId;
|
|
||||||
final String content;
|
|
||||||
late final Optional<bool>isSystem;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateMessageVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
conversationId = nativeFromJson<String>(json['conversationId']),
|
|
||||||
senderId = nativeFromJson<String>(json['senderId']),
|
|
||||||
content = nativeFromJson<String>(json['content']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
isSystem = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isSystem.value = json['isSystem'] == null ? null : nativeFromJson<bool>(json['isSystem']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateMessageVariables otherTyped = other as CreateMessageVariables;
|
|
||||||
return conversationId == otherTyped.conversationId &&
|
|
||||||
senderId == otherTyped.senderId &&
|
|
||||||
content == otherTyped.content &&
|
|
||||||
isSystem == otherTyped.isSystem;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([conversationId.hashCode, senderId.hashCode, content.hashCode, isSystem.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversationId'] = nativeToJson<String>(conversationId);
|
|
||||||
json['senderId'] = nativeToJson<String>(senderId);
|
|
||||||
json['content'] = nativeToJson<String>(content);
|
|
||||||
if(isSystem.state == OptionalState.set) {
|
|
||||||
json['isSystem'] = isSystem.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateMessageVariables({
|
|
||||||
required this.conversationId,
|
|
||||||
required this.senderId,
|
|
||||||
required this.content,
|
|
||||||
required this.isSystem,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,412 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateOrderVariablesBuilder {
|
|
||||||
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String businessId;
|
|
||||||
OrderType orderType;
|
|
||||||
Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _endDate = Optional.optional((json) => json['endDate'] = Timestamp.fromJson(json['endDate']), defaultSerializer);
|
|
||||||
Optional<OrderDuration> _duration = Optional.optional((data) => OrderDuration.values.byName(data), enumSerializer);
|
|
||||||
Optional<int> _lunchBreak = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _total = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _eventName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String teamHubId;
|
|
||||||
Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<Timestamp> _permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer);
|
|
||||||
Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _detectedConflicts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<String> _poReference = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateOrderVariablesBuilder vendorId(String? t) {
|
|
||||||
_vendorId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder status(OrderStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder date(Timestamp? t) {
|
|
||||||
_date.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder startDate(Timestamp? t) {
|
|
||||||
_startDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder endDate(Timestamp? t) {
|
|
||||||
_endDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder duration(OrderDuration? t) {
|
|
||||||
_duration.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder lunchBreak(int? t) {
|
|
||||||
_lunchBreak.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder total(double? t) {
|
|
||||||
_total.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder eventName(String? t) {
|
|
||||||
_eventName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder assignedStaff(AnyValue? t) {
|
|
||||||
_assignedStaff.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder shifts(AnyValue? t) {
|
|
||||||
_shifts.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder requested(int? t) {
|
|
||||||
_requested.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder recurringDays(AnyValue? t) {
|
|
||||||
_recurringDays.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder permanentStartDate(Timestamp? t) {
|
|
||||||
_permanentStartDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder permanentDays(AnyValue? t) {
|
|
||||||
_permanentDays.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder detectedConflicts(AnyValue? t) {
|
|
||||||
_detectedConflicts.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateOrderVariablesBuilder poReference(String? t) {
|
|
||||||
_poReference.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateOrderVariablesBuilder(this._dataConnect, {required this.businessId,required this.orderType,required this.teamHubId,});
|
|
||||||
Deserializer<CreateOrderData> dataDeserializer = (dynamic json) => CreateOrderData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateOrderVariables> varsSerializer = (CreateOrderVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateOrderData, CreateOrderVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateOrderData, CreateOrderVariables> ref() {
|
|
||||||
CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,teamHubId: teamHubId,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
|
|
||||||
return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateOrderOrderInsert {
|
|
||||||
final String id;
|
|
||||||
CreateOrderOrderInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateOrderOrderInsert otherTyped = other as CreateOrderOrderInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateOrderOrderInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateOrderData {
|
|
||||||
final CreateOrderOrderInsert order_insert;
|
|
||||||
CreateOrderData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
order_insert = CreateOrderOrderInsert.fromJson(json['order_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateOrderData otherTyped = other as CreateOrderData;
|
|
||||||
return order_insert == otherTyped.order_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => order_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['order_insert'] = order_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateOrderData({
|
|
||||||
required this.order_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateOrderVariables {
|
|
||||||
late final Optional<String>vendorId;
|
|
||||||
final String businessId;
|
|
||||||
final OrderType orderType;
|
|
||||||
late final Optional<OrderStatus>status;
|
|
||||||
late final Optional<Timestamp>date;
|
|
||||||
late final Optional<Timestamp>startDate;
|
|
||||||
late final Optional<Timestamp>endDate;
|
|
||||||
late final Optional<OrderDuration>duration;
|
|
||||||
late final Optional<int>lunchBreak;
|
|
||||||
late final Optional<double>total;
|
|
||||||
late final Optional<String>eventName;
|
|
||||||
late final Optional<AnyValue>assignedStaff;
|
|
||||||
late final Optional<AnyValue>shifts;
|
|
||||||
late final Optional<int>requested;
|
|
||||||
final String teamHubId;
|
|
||||||
late final Optional<AnyValue>recurringDays;
|
|
||||||
late final Optional<Timestamp>permanentStartDate;
|
|
||||||
late final Optional<AnyValue>permanentDays;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
late final Optional<AnyValue>detectedConflicts;
|
|
||||||
late final Optional<String>poReference;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateOrderVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
businessId = nativeFromJson<String>(json['businessId']),
|
|
||||||
orderType = OrderType.values.byName(json['orderType']),
|
|
||||||
teamHubId = nativeFromJson<String>(json['teamHubId']) {
|
|
||||||
|
|
||||||
|
|
||||||
vendorId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorId.value = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']);
|
|
||||||
|
|
||||||
|
|
||||||
startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
|
|
||||||
startDate.value = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']);
|
|
||||||
|
|
||||||
|
|
||||||
endDate = Optional.optional((json) => json['endDate'] = Timestamp.fromJson(json['endDate']), defaultSerializer);
|
|
||||||
endDate.value = json['endDate'] == null ? null : Timestamp.fromJson(json['endDate']);
|
|
||||||
|
|
||||||
|
|
||||||
duration = Optional.optional((data) => OrderDuration.values.byName(data), enumSerializer);
|
|
||||||
duration.value = json['duration'] == null ? null : OrderDuration.values.byName(json['duration']);
|
|
||||||
|
|
||||||
|
|
||||||
lunchBreak = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
lunchBreak.value = json['lunchBreak'] == null ? null : nativeFromJson<int>(json['lunchBreak']);
|
|
||||||
|
|
||||||
|
|
||||||
total = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
total.value = json['total'] == null ? null : nativeFromJson<double>(json['total']);
|
|
||||||
|
|
||||||
|
|
||||||
eventName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
eventName.value = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
|
|
||||||
|
|
||||||
|
|
||||||
assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
assignedStaff.value = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']);
|
|
||||||
|
|
||||||
|
|
||||||
shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
shifts.value = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']);
|
|
||||||
|
|
||||||
|
|
||||||
requested = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']);
|
|
||||||
|
|
||||||
|
|
||||||
permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer);
|
|
||||||
permanentStartDate.value = json['permanentStartDate'] == null ? null : Timestamp.fromJson(json['permanentStartDate']);
|
|
||||||
|
|
||||||
|
|
||||||
permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
permanentDays.value = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']);
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
|
|
||||||
detectedConflicts = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
detectedConflicts.value = json['detectedConflicts'] == null ? null : AnyValue.fromJson(json['detectedConflicts']);
|
|
||||||
|
|
||||||
|
|
||||||
poReference = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
poReference.value = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateOrderVariables otherTyped = other as CreateOrderVariables;
|
|
||||||
return vendorId == otherTyped.vendorId &&
|
|
||||||
businessId == otherTyped.businessId &&
|
|
||||||
orderType == otherTyped.orderType &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
date == otherTyped.date &&
|
|
||||||
startDate == otherTyped.startDate &&
|
|
||||||
endDate == otherTyped.endDate &&
|
|
||||||
duration == otherTyped.duration &&
|
|
||||||
lunchBreak == otherTyped.lunchBreak &&
|
|
||||||
total == otherTyped.total &&
|
|
||||||
eventName == otherTyped.eventName &&
|
|
||||||
assignedStaff == otherTyped.assignedStaff &&
|
|
||||||
shifts == otherTyped.shifts &&
|
|
||||||
requested == otherTyped.requested &&
|
|
||||||
teamHubId == otherTyped.teamHubId &&
|
|
||||||
recurringDays == otherTyped.recurringDays &&
|
|
||||||
permanentStartDate == otherTyped.permanentStartDate &&
|
|
||||||
permanentDays == otherTyped.permanentDays &&
|
|
||||||
notes == otherTyped.notes &&
|
|
||||||
detectedConflicts == otherTyped.detectedConflicts &&
|
|
||||||
poReference == otherTyped.poReference;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, teamHubId.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if(vendorId.state == OptionalState.set) {
|
|
||||||
json['vendorId'] = vendorId.toJson();
|
|
||||||
}
|
|
||||||
json['businessId'] = nativeToJson<String>(businessId);
|
|
||||||
json['orderType'] =
|
|
||||||
orderType.name
|
|
||||||
;
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
if(date.state == OptionalState.set) {
|
|
||||||
json['date'] = date.toJson();
|
|
||||||
}
|
|
||||||
if(startDate.state == OptionalState.set) {
|
|
||||||
json['startDate'] = startDate.toJson();
|
|
||||||
}
|
|
||||||
if(endDate.state == OptionalState.set) {
|
|
||||||
json['endDate'] = endDate.toJson();
|
|
||||||
}
|
|
||||||
if(duration.state == OptionalState.set) {
|
|
||||||
json['duration'] = duration.toJson();
|
|
||||||
}
|
|
||||||
if(lunchBreak.state == OptionalState.set) {
|
|
||||||
json['lunchBreak'] = lunchBreak.toJson();
|
|
||||||
}
|
|
||||||
if(total.state == OptionalState.set) {
|
|
||||||
json['total'] = total.toJson();
|
|
||||||
}
|
|
||||||
if(eventName.state == OptionalState.set) {
|
|
||||||
json['eventName'] = eventName.toJson();
|
|
||||||
}
|
|
||||||
if(assignedStaff.state == OptionalState.set) {
|
|
||||||
json['assignedStaff'] = assignedStaff.toJson();
|
|
||||||
}
|
|
||||||
if(shifts.state == OptionalState.set) {
|
|
||||||
json['shifts'] = shifts.toJson();
|
|
||||||
}
|
|
||||||
if(requested.state == OptionalState.set) {
|
|
||||||
json['requested'] = requested.toJson();
|
|
||||||
}
|
|
||||||
json['teamHubId'] = nativeToJson<String>(teamHubId);
|
|
||||||
if(recurringDays.state == OptionalState.set) {
|
|
||||||
json['recurringDays'] = recurringDays.toJson();
|
|
||||||
}
|
|
||||||
if(permanentStartDate.state == OptionalState.set) {
|
|
||||||
json['permanentStartDate'] = permanentStartDate.toJson();
|
|
||||||
}
|
|
||||||
if(permanentDays.state == OptionalState.set) {
|
|
||||||
json['permanentDays'] = permanentDays.toJson();
|
|
||||||
}
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
if(detectedConflicts.state == OptionalState.set) {
|
|
||||||
json['detectedConflicts'] = detectedConflicts.toJson();
|
|
||||||
}
|
|
||||||
if(poReference.state == OptionalState.set) {
|
|
||||||
json['poReference'] = poReference.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateOrderVariables({
|
|
||||||
required this.vendorId,
|
|
||||||
required this.businessId,
|
|
||||||
required this.orderType,
|
|
||||||
required this.status,
|
|
||||||
required this.date,
|
|
||||||
required this.startDate,
|
|
||||||
required this.endDate,
|
|
||||||
required this.duration,
|
|
||||||
required this.lunchBreak,
|
|
||||||
required this.total,
|
|
||||||
required this.eventName,
|
|
||||||
required this.assignedStaff,
|
|
||||||
required this.shifts,
|
|
||||||
required this.requested,
|
|
||||||
required this.teamHubId,
|
|
||||||
required this.recurringDays,
|
|
||||||
required this.permanentStartDate,
|
|
||||||
required this.permanentDays,
|
|
||||||
required this.notes,
|
|
||||||
required this.detectedConflicts,
|
|
||||||
required this.poReference,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateRecentPaymentVariablesBuilder {
|
|
||||||
Optional<String> _workedTime = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<RecentPaymentStatus> _status = Optional.optional((data) => RecentPaymentStatus.values.byName(data), enumSerializer);
|
|
||||||
String staffId;
|
|
||||||
String applicationId;
|
|
||||||
String invoiceId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateRecentPaymentVariablesBuilder workedTime(String? t) {
|
|
||||||
_workedTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRecentPaymentVariablesBuilder(this._dataConnect, {required this.staffId,required this.applicationId,required this.invoiceId,});
|
|
||||||
Deserializer<CreateRecentPaymentData> dataDeserializer = (dynamic json) => CreateRecentPaymentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateRecentPaymentVariables> varsSerializer = (CreateRecentPaymentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateRecentPaymentData, CreateRecentPaymentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateRecentPaymentData, CreateRecentPaymentVariables> ref() {
|
|
||||||
CreateRecentPaymentVariables vars= CreateRecentPaymentVariables(workedTime: _workedTime,status: _status,staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,);
|
|
||||||
return _dataConnect.mutation("createRecentPayment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRecentPaymentRecentPaymentInsert {
|
|
||||||
final String id;
|
|
||||||
CreateRecentPaymentRecentPaymentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRecentPaymentRecentPaymentInsert otherTyped = other as CreateRecentPaymentRecentPaymentInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRecentPaymentRecentPaymentInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRecentPaymentData {
|
|
||||||
final CreateRecentPaymentRecentPaymentInsert recentPayment_insert;
|
|
||||||
CreateRecentPaymentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
recentPayment_insert = CreateRecentPaymentRecentPaymentInsert.fromJson(json['recentPayment_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRecentPaymentData otherTyped = other as CreateRecentPaymentData;
|
|
||||||
return recentPayment_insert == otherTyped.recentPayment_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => recentPayment_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['recentPayment_insert'] = recentPayment_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRecentPaymentData({
|
|
||||||
required this.recentPayment_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRecentPaymentVariables {
|
|
||||||
late final Optional<String>workedTime;
|
|
||||||
late final Optional<RecentPaymentStatus>status;
|
|
||||||
final String staffId;
|
|
||||||
final String applicationId;
|
|
||||||
final String invoiceId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateRecentPaymentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
applicationId = nativeFromJson<String>(json['applicationId']),
|
|
||||||
invoiceId = nativeFromJson<String>(json['invoiceId']) {
|
|
||||||
|
|
||||||
|
|
||||||
workedTime = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
workedTime.value = json['workedTime'] == null ? null : nativeFromJson<String>(json['workedTime']);
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => RecentPaymentStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : RecentPaymentStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRecentPaymentVariables otherTyped = other as CreateRecentPaymentVariables;
|
|
||||||
return workedTime == otherTyped.workedTime &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
applicationId == otherTyped.applicationId &&
|
|
||||||
invoiceId == otherTyped.invoiceId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([workedTime.hashCode, status.hashCode, staffId.hashCode, applicationId.hashCode, invoiceId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if(workedTime.state == OptionalState.set) {
|
|
||||||
json['workedTime'] = workedTime.toJson();
|
|
||||||
}
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['applicationId'] = nativeToJson<String>(applicationId);
|
|
||||||
json['invoiceId'] = nativeToJson<String>(invoiceId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRecentPaymentVariables({
|
|
||||||
required this.workedTime,
|
|
||||||
required this.status,
|
|
||||||
required this.staffId,
|
|
||||||
required this.applicationId,
|
|
||||||
required this.invoiceId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,140 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateRoleVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
double costPerHour;
|
|
||||||
String vendorId;
|
|
||||||
String roleCategoryId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateRoleVariablesBuilder(this._dataConnect, {required this.name,required this.costPerHour,required this.vendorId,required this.roleCategoryId,});
|
|
||||||
Deserializer<CreateRoleData> dataDeserializer = (dynamic json) => CreateRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateRoleVariables> varsSerializer = (CreateRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateRoleData, CreateRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateRoleData, CreateRoleVariables> ref() {
|
|
||||||
CreateRoleVariables vars= CreateRoleVariables(name: name,costPerHour: costPerHour,vendorId: vendorId,roleCategoryId: roleCategoryId,);
|
|
||||||
return _dataConnect.mutation("createRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleRoleInsert {
|
|
||||||
final String id;
|
|
||||||
CreateRoleRoleInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleRoleInsert otherTyped = other as CreateRoleRoleInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleRoleInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleData {
|
|
||||||
final CreateRoleRoleInsert role_insert;
|
|
||||||
CreateRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
role_insert = CreateRoleRoleInsert.fromJson(json['role_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleData otherTyped = other as CreateRoleData;
|
|
||||||
return role_insert == otherTyped.role_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => role_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['role_insert'] = role_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleData({
|
|
||||||
required this.role_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleVariables {
|
|
||||||
final String name;
|
|
||||||
final double costPerHour;
|
|
||||||
final String vendorId;
|
|
||||||
final String roleCategoryId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
costPerHour = nativeFromJson<double>(json['costPerHour']),
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
|
||||||
roleCategoryId = nativeFromJson<String>(json['roleCategoryId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleVariables otherTyped = other as CreateRoleVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
costPerHour == otherTyped.costPerHour &&
|
|
||||||
vendorId == otherTyped.vendorId &&
|
|
||||||
roleCategoryId == otherTyped.roleCategoryId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, costPerHour.hashCode, vendorId.hashCode, roleCategoryId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
json['costPerHour'] = nativeToJson<double>(costPerHour);
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
json['roleCategoryId'] = nativeToJson<String>(roleCategoryId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.costPerHour,
|
|
||||||
required this.vendorId,
|
|
||||||
required this.roleCategoryId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,130 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateRoleCategoryVariablesBuilder {
|
|
||||||
String roleName;
|
|
||||||
RoleCategoryType category;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
CreateRoleCategoryVariablesBuilder(this._dataConnect, {required this.roleName,required this.category,});
|
|
||||||
Deserializer<CreateRoleCategoryData> dataDeserializer = (dynamic json) => CreateRoleCategoryData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateRoleCategoryVariables> varsSerializer = (CreateRoleCategoryVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateRoleCategoryData, CreateRoleCategoryVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateRoleCategoryData, CreateRoleCategoryVariables> ref() {
|
|
||||||
CreateRoleCategoryVariables vars= CreateRoleCategoryVariables(roleName: roleName,category: category,);
|
|
||||||
return _dataConnect.mutation("createRoleCategory", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleCategoryRoleCategoryInsert {
|
|
||||||
final String id;
|
|
||||||
CreateRoleCategoryRoleCategoryInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleCategoryRoleCategoryInsert otherTyped = other as CreateRoleCategoryRoleCategoryInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleCategoryRoleCategoryInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleCategoryData {
|
|
||||||
final CreateRoleCategoryRoleCategoryInsert roleCategory_insert;
|
|
||||||
CreateRoleCategoryData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
roleCategory_insert = CreateRoleCategoryRoleCategoryInsert.fromJson(json['roleCategory_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleCategoryData otherTyped = other as CreateRoleCategoryData;
|
|
||||||
return roleCategory_insert == otherTyped.roleCategory_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => roleCategory_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['roleCategory_insert'] = roleCategory_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleCategoryData({
|
|
||||||
required this.roleCategory_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateRoleCategoryVariables {
|
|
||||||
final String roleName;
|
|
||||||
final RoleCategoryType category;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateRoleCategoryVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
roleName = nativeFromJson<String>(json['roleName']),
|
|
||||||
category = RoleCategoryType.values.byName(json['category']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateRoleCategoryVariables otherTyped = other as CreateRoleCategoryVariables;
|
|
||||||
return roleName == otherTyped.roleName &&
|
|
||||||
category == otherTyped.category;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([roleName.hashCode, category.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['roleName'] = nativeToJson<String>(roleName);
|
|
||||||
json['category'] =
|
|
||||||
category.name
|
|
||||||
;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateRoleCategoryVariables({
|
|
||||||
required this.roleName,
|
|
||||||
required this.category,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,464 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateShiftVariablesBuilder {
|
|
||||||
String title;
|
|
||||||
String orderId;
|
|
||||||
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _startTime = Optional.optional((json) => json['startTime'] = Timestamp.fromJson(json['startTime']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _endTime = Optional.optional((json) => json['endTime'] = Timestamp.fromJson(json['endTime']), defaultSerializer);
|
|
||||||
Optional<double> _hours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _cost = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _locationAddress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _latitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _longitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _placeId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _street = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _country = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<ShiftStatus> _status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<int> _workersNeeded = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _filled = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _filledAt = Optional.optional((json) => json['filledAt'] = Timestamp.fromJson(json['filledAt']), defaultSerializer);
|
|
||||||
Optional<List<AnyValue>> _managers = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
Optional<int> _durationDays = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateShiftVariablesBuilder date(Timestamp? t) {
|
|
||||||
_date.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder startTime(Timestamp? t) {
|
|
||||||
_startTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder endTime(Timestamp? t) {
|
|
||||||
_endTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder hours(double? t) {
|
|
||||||
_hours.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder cost(double? t) {
|
|
||||||
_cost.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder location(String? t) {
|
|
||||||
_location.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder locationAddress(String? t) {
|
|
||||||
_locationAddress.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder latitude(double? t) {
|
|
||||||
_latitude.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder longitude(double? t) {
|
|
||||||
_longitude.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder placeId(String? t) {
|
|
||||||
_placeId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder state(String? t) {
|
|
||||||
_state.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder street(String? t) {
|
|
||||||
_street.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder country(String? t) {
|
|
||||||
_country.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder status(ShiftStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder workersNeeded(int? t) {
|
|
||||||
_workersNeeded.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder filled(int? t) {
|
|
||||||
_filled.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder filledAt(Timestamp? t) {
|
|
||||||
_filledAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder managers(List<AnyValue>? t) {
|
|
||||||
_managers.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder durationDays(int? t) {
|
|
||||||
_durationDays.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftVariablesBuilder createdBy(String? t) {
|
|
||||||
_createdBy.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftVariablesBuilder(this._dataConnect, {required this.title,required this.orderId,});
|
|
||||||
Deserializer<CreateShiftData> dataDeserializer = (dynamic json) => CreateShiftData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateShiftVariables> varsSerializer = (CreateShiftVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateShiftData, CreateShiftVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateShiftData, CreateShiftVariables> ref() {
|
|
||||||
CreateShiftVariables vars= CreateShiftVariables(title: title,orderId: orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,placeId: _placeId,city: _city,state: _state,street: _street,country: _country,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,createdBy: _createdBy,);
|
|
||||||
return _dataConnect.mutation("createShift", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftShiftInsert {
|
|
||||||
final String id;
|
|
||||||
CreateShiftShiftInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftShiftInsert otherTyped = other as CreateShiftShiftInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftShiftInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftData {
|
|
||||||
final CreateShiftShiftInsert shift_insert;
|
|
||||||
CreateShiftData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shift_insert = CreateShiftShiftInsert.fromJson(json['shift_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftData otherTyped = other as CreateShiftData;
|
|
||||||
return shift_insert == otherTyped.shift_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => shift_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shift_insert'] = shift_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftData({
|
|
||||||
required this.shift_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftVariables {
|
|
||||||
final String title;
|
|
||||||
final String orderId;
|
|
||||||
late final Optional<Timestamp>date;
|
|
||||||
late final Optional<Timestamp>startTime;
|
|
||||||
late final Optional<Timestamp>endTime;
|
|
||||||
late final Optional<double>hours;
|
|
||||||
late final Optional<double>cost;
|
|
||||||
late final Optional<String>location;
|
|
||||||
late final Optional<String>locationAddress;
|
|
||||||
late final Optional<double>latitude;
|
|
||||||
late final Optional<double>longitude;
|
|
||||||
late final Optional<String>placeId;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<String>state;
|
|
||||||
late final Optional<String>street;
|
|
||||||
late final Optional<String>country;
|
|
||||||
late final Optional<String>description;
|
|
||||||
late final Optional<ShiftStatus>status;
|
|
||||||
late final Optional<int>workersNeeded;
|
|
||||||
late final Optional<int>filled;
|
|
||||||
late final Optional<Timestamp>filledAt;
|
|
||||||
late final Optional<List<AnyValue>>managers;
|
|
||||||
late final Optional<int>durationDays;
|
|
||||||
late final Optional<String>createdBy;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateShiftVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
title = nativeFromJson<String>(json['title']),
|
|
||||||
orderId = nativeFromJson<String>(json['orderId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']);
|
|
||||||
|
|
||||||
|
|
||||||
startTime = Optional.optional((json) => json['startTime'] = Timestamp.fromJson(json['startTime']), defaultSerializer);
|
|
||||||
startTime.value = json['startTime'] == null ? null : Timestamp.fromJson(json['startTime']);
|
|
||||||
|
|
||||||
|
|
||||||
endTime = Optional.optional((json) => json['endTime'] = Timestamp.fromJson(json['endTime']), defaultSerializer);
|
|
||||||
endTime.value = json['endTime'] == null ? null : Timestamp.fromJson(json['endTime']);
|
|
||||||
|
|
||||||
|
|
||||||
hours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hours.value = json['hours'] == null ? null : nativeFromJson<double>(json['hours']);
|
|
||||||
|
|
||||||
|
|
||||||
cost = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
cost.value = json['cost'] == null ? null : nativeFromJson<double>(json['cost']);
|
|
||||||
|
|
||||||
|
|
||||||
location = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
location.value = json['location'] == null ? null : nativeFromJson<String>(json['location']);
|
|
||||||
|
|
||||||
|
|
||||||
locationAddress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
locationAddress.value = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']);
|
|
||||||
|
|
||||||
|
|
||||||
latitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
latitude.value = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']);
|
|
||||||
|
|
||||||
|
|
||||||
longitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
longitude.value = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']);
|
|
||||||
|
|
||||||
|
|
||||||
placeId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
placeId.value = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']);
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
|
|
||||||
|
|
||||||
|
|
||||||
street = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
street.value = json['street'] == null ? null : nativeFromJson<String>(json['street']);
|
|
||||||
|
|
||||||
|
|
||||||
country = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
country.value = json['country'] == null ? null : nativeFromJson<String>(json['country']);
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : ShiftStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
workersNeeded = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
workersNeeded.value = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']);
|
|
||||||
|
|
||||||
|
|
||||||
filled = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
filled.value = json['filled'] == null ? null : nativeFromJson<int>(json['filled']);
|
|
||||||
|
|
||||||
|
|
||||||
filledAt = Optional.optional((json) => json['filledAt'] = Timestamp.fromJson(json['filledAt']), defaultSerializer);
|
|
||||||
filledAt.value = json['filledAt'] == null ? null : Timestamp.fromJson(json['filledAt']);
|
|
||||||
|
|
||||||
|
|
||||||
managers = Optional.optional(listDeserializer(AnyValue.fromJson), listSerializer(defaultSerializer));
|
|
||||||
managers.value = json['managers'] == null ? null : (json['managers'] as List<dynamic>)
|
|
||||||
.map((e) => AnyValue.fromJson(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
|
|
||||||
durationDays = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
durationDays.value = json['durationDays'] == null ? null : nativeFromJson<int>(json['durationDays']);
|
|
||||||
|
|
||||||
|
|
||||||
createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
createdBy.value = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftVariables otherTyped = other as CreateShiftVariables;
|
|
||||||
return title == otherTyped.title &&
|
|
||||||
orderId == otherTyped.orderId &&
|
|
||||||
date == otherTyped.date &&
|
|
||||||
startTime == otherTyped.startTime &&
|
|
||||||
endTime == otherTyped.endTime &&
|
|
||||||
hours == otherTyped.hours &&
|
|
||||||
cost == otherTyped.cost &&
|
|
||||||
location == otherTyped.location &&
|
|
||||||
locationAddress == otherTyped.locationAddress &&
|
|
||||||
latitude == otherTyped.latitude &&
|
|
||||||
longitude == otherTyped.longitude &&
|
|
||||||
placeId == otherTyped.placeId &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
state == otherTyped.state &&
|
|
||||||
street == otherTyped.street &&
|
|
||||||
country == otherTyped.country &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
workersNeeded == otherTyped.workersNeeded &&
|
|
||||||
filled == otherTyped.filled &&
|
|
||||||
filledAt == otherTyped.filledAt &&
|
|
||||||
managers == otherTyped.managers &&
|
|
||||||
durationDays == otherTyped.durationDays &&
|
|
||||||
createdBy == otherTyped.createdBy;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdBy.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['title'] = nativeToJson<String>(title);
|
|
||||||
json['orderId'] = nativeToJson<String>(orderId);
|
|
||||||
if(date.state == OptionalState.set) {
|
|
||||||
json['date'] = date.toJson();
|
|
||||||
}
|
|
||||||
if(startTime.state == OptionalState.set) {
|
|
||||||
json['startTime'] = startTime.toJson();
|
|
||||||
}
|
|
||||||
if(endTime.state == OptionalState.set) {
|
|
||||||
json['endTime'] = endTime.toJson();
|
|
||||||
}
|
|
||||||
if(hours.state == OptionalState.set) {
|
|
||||||
json['hours'] = hours.toJson();
|
|
||||||
}
|
|
||||||
if(cost.state == OptionalState.set) {
|
|
||||||
json['cost'] = cost.toJson();
|
|
||||||
}
|
|
||||||
if(location.state == OptionalState.set) {
|
|
||||||
json['location'] = location.toJson();
|
|
||||||
}
|
|
||||||
if(locationAddress.state == OptionalState.set) {
|
|
||||||
json['locationAddress'] = locationAddress.toJson();
|
|
||||||
}
|
|
||||||
if(latitude.state == OptionalState.set) {
|
|
||||||
json['latitude'] = latitude.toJson();
|
|
||||||
}
|
|
||||||
if(longitude.state == OptionalState.set) {
|
|
||||||
json['longitude'] = longitude.toJson();
|
|
||||||
}
|
|
||||||
if(placeId.state == OptionalState.set) {
|
|
||||||
json['placeId'] = placeId.toJson();
|
|
||||||
}
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(state.state == OptionalState.set) {
|
|
||||||
json['state'] = state.toJson();
|
|
||||||
}
|
|
||||||
if(street.state == OptionalState.set) {
|
|
||||||
json['street'] = street.toJson();
|
|
||||||
}
|
|
||||||
if(country.state == OptionalState.set) {
|
|
||||||
json['country'] = country.toJson();
|
|
||||||
}
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
if(workersNeeded.state == OptionalState.set) {
|
|
||||||
json['workersNeeded'] = workersNeeded.toJson();
|
|
||||||
}
|
|
||||||
if(filled.state == OptionalState.set) {
|
|
||||||
json['filled'] = filled.toJson();
|
|
||||||
}
|
|
||||||
if(filledAt.state == OptionalState.set) {
|
|
||||||
json['filledAt'] = filledAt.toJson();
|
|
||||||
}
|
|
||||||
if(managers.state == OptionalState.set) {
|
|
||||||
json['managers'] = managers.toJson();
|
|
||||||
}
|
|
||||||
if(durationDays.state == OptionalState.set) {
|
|
||||||
json['durationDays'] = durationDays.toJson();
|
|
||||||
}
|
|
||||||
if(createdBy.state == OptionalState.set) {
|
|
||||||
json['createdBy'] = createdBy.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftVariables({
|
|
||||||
required this.title,
|
|
||||||
required this.orderId,
|
|
||||||
required this.date,
|
|
||||||
required this.startTime,
|
|
||||||
required this.endTime,
|
|
||||||
required this.hours,
|
|
||||||
required this.cost,
|
|
||||||
required this.location,
|
|
||||||
required this.locationAddress,
|
|
||||||
required this.latitude,
|
|
||||||
required this.longitude,
|
|
||||||
required this.placeId,
|
|
||||||
required this.city,
|
|
||||||
required this.state,
|
|
||||||
required this.street,
|
|
||||||
required this.country,
|
|
||||||
required this.description,
|
|
||||||
required this.status,
|
|
||||||
required this.workersNeeded,
|
|
||||||
required this.filled,
|
|
||||||
required this.filledAt,
|
|
||||||
required this.managers,
|
|
||||||
required this.durationDays,
|
|
||||||
required this.createdBy,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,264 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateShiftRoleVariablesBuilder {
|
|
||||||
String shiftId;
|
|
||||||
String roleId;
|
|
||||||
int count;
|
|
||||||
Optional<int> _assigned = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _startTime = Optional.optional((json) => json['startTime'] = Timestamp.fromJson(json['startTime']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _endTime = Optional.optional((json) => json['endTime'] = Timestamp.fromJson(json['endTime']), defaultSerializer);
|
|
||||||
Optional<double> _hours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _department = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _uniform = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<BreakDuration> _breakType = Optional.optional((data) => BreakDuration.values.byName(data), enumSerializer);
|
|
||||||
Optional<double> _totalValue = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateShiftRoleVariablesBuilder assigned(int? t) {
|
|
||||||
_assigned.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder startTime(Timestamp? t) {
|
|
||||||
_startTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder endTime(Timestamp? t) {
|
|
||||||
_endTime.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder hours(double? t) {
|
|
||||||
_hours.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder department(String? t) {
|
|
||||||
_department.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder uniform(String? t) {
|
|
||||||
_uniform.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder breakType(BreakDuration? t) {
|
|
||||||
_breakType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateShiftRoleVariablesBuilder totalValue(double? t) {
|
|
||||||
_totalValue.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftRoleVariablesBuilder(this._dataConnect, {required this.shiftId,required this.roleId,required this.count,});
|
|
||||||
Deserializer<CreateShiftRoleData> dataDeserializer = (dynamic json) => CreateShiftRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateShiftRoleVariables> varsSerializer = (CreateShiftRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateShiftRoleData, CreateShiftRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateShiftRoleData, CreateShiftRoleVariables> ref() {
|
|
||||||
CreateShiftRoleVariables vars= CreateShiftRoleVariables(shiftId: shiftId,roleId: roleId,count: count,assigned: _assigned,startTime: _startTime,endTime: _endTime,hours: _hours,department: _department,uniform: _uniform,breakType: _breakType,totalValue: _totalValue,);
|
|
||||||
return _dataConnect.mutation("createShiftRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftRoleShiftRoleInsert {
|
|
||||||
final String shiftId;
|
|
||||||
final String roleId;
|
|
||||||
CreateShiftRoleShiftRoleInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftRoleShiftRoleInsert otherTyped = other as CreateShiftRoleShiftRoleInsert;
|
|
||||||
return shiftId == otherTyped.shiftId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([shiftId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftRoleShiftRoleInsert({
|
|
||||||
required this.shiftId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftRoleData {
|
|
||||||
final CreateShiftRoleShiftRoleInsert shiftRole_insert;
|
|
||||||
CreateShiftRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shiftRole_insert = CreateShiftRoleShiftRoleInsert.fromJson(json['shiftRole_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftRoleData otherTyped = other as CreateShiftRoleData;
|
|
||||||
return shiftRole_insert == otherTyped.shiftRole_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => shiftRole_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftRole_insert'] = shiftRole_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftRoleData({
|
|
||||||
required this.shiftRole_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateShiftRoleVariables {
|
|
||||||
final String shiftId;
|
|
||||||
final String roleId;
|
|
||||||
final int count;
|
|
||||||
late final Optional<int>assigned;
|
|
||||||
late final Optional<Timestamp>startTime;
|
|
||||||
late final Optional<Timestamp>endTime;
|
|
||||||
late final Optional<double>hours;
|
|
||||||
late final Optional<String>department;
|
|
||||||
late final Optional<String>uniform;
|
|
||||||
late final Optional<BreakDuration>breakType;
|
|
||||||
late final Optional<double>totalValue;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateShiftRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']),
|
|
||||||
count = nativeFromJson<int>(json['count']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
assigned = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
assigned.value = json['assigned'] == null ? null : nativeFromJson<int>(json['assigned']);
|
|
||||||
|
|
||||||
|
|
||||||
startTime = Optional.optional((json) => json['startTime'] = Timestamp.fromJson(json['startTime']), defaultSerializer);
|
|
||||||
startTime.value = json['startTime'] == null ? null : Timestamp.fromJson(json['startTime']);
|
|
||||||
|
|
||||||
|
|
||||||
endTime = Optional.optional((json) => json['endTime'] = Timestamp.fromJson(json['endTime']), defaultSerializer);
|
|
||||||
endTime.value = json['endTime'] == null ? null : Timestamp.fromJson(json['endTime']);
|
|
||||||
|
|
||||||
|
|
||||||
hours = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hours.value = json['hours'] == null ? null : nativeFromJson<double>(json['hours']);
|
|
||||||
|
|
||||||
|
|
||||||
department = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
department.value = json['department'] == null ? null : nativeFromJson<String>(json['department']);
|
|
||||||
|
|
||||||
|
|
||||||
uniform = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
uniform.value = json['uniform'] == null ? null : nativeFromJson<String>(json['uniform']);
|
|
||||||
|
|
||||||
|
|
||||||
breakType = Optional.optional((data) => BreakDuration.values.byName(data), enumSerializer);
|
|
||||||
breakType.value = json['breakType'] == null ? null : BreakDuration.values.byName(json['breakType']);
|
|
||||||
|
|
||||||
|
|
||||||
totalValue = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalValue.value = json['totalValue'] == null ? null : nativeFromJson<double>(json['totalValue']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateShiftRoleVariables otherTyped = other as CreateShiftRoleVariables;
|
|
||||||
return shiftId == otherTyped.shiftId &&
|
|
||||||
roleId == otherTyped.roleId &&
|
|
||||||
count == otherTyped.count &&
|
|
||||||
assigned == otherTyped.assigned &&
|
|
||||||
startTime == otherTyped.startTime &&
|
|
||||||
endTime == otherTyped.endTime &&
|
|
||||||
hours == otherTyped.hours &&
|
|
||||||
department == otherTyped.department &&
|
|
||||||
uniform == otherTyped.uniform &&
|
|
||||||
breakType == otherTyped.breakType &&
|
|
||||||
totalValue == otherTyped.totalValue;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([shiftId.hashCode, roleId.hashCode, count.hashCode, assigned.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, department.hashCode, uniform.hashCode, breakType.hashCode, totalValue.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
json['count'] = nativeToJson<int>(count);
|
|
||||||
if(assigned.state == OptionalState.set) {
|
|
||||||
json['assigned'] = assigned.toJson();
|
|
||||||
}
|
|
||||||
if(startTime.state == OptionalState.set) {
|
|
||||||
json['startTime'] = startTime.toJson();
|
|
||||||
}
|
|
||||||
if(endTime.state == OptionalState.set) {
|
|
||||||
json['endTime'] = endTime.toJson();
|
|
||||||
}
|
|
||||||
if(hours.state == OptionalState.set) {
|
|
||||||
json['hours'] = hours.toJson();
|
|
||||||
}
|
|
||||||
if(department.state == OptionalState.set) {
|
|
||||||
json['department'] = department.toJson();
|
|
||||||
}
|
|
||||||
if(uniform.state == OptionalState.set) {
|
|
||||||
json['uniform'] = uniform.toJson();
|
|
||||||
}
|
|
||||||
if(breakType.state == OptionalState.set) {
|
|
||||||
json['breakType'] = breakType.toJson();
|
|
||||||
}
|
|
||||||
if(totalValue.state == OptionalState.set) {
|
|
||||||
json['totalValue'] = totalValue.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateShiftRoleVariables({
|
|
||||||
required this.shiftId,
|
|
||||||
required this.roleId,
|
|
||||||
required this.count,
|
|
||||||
required this.assigned,
|
|
||||||
required this.startTime,
|
|
||||||
required this.endTime,
|
|
||||||
required this.hours,
|
|
||||||
required this.department,
|
|
||||||
required this.uniform,
|
|
||||||
required this.breakType,
|
|
||||||
required this.totalValue,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,618 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffVariablesBuilder {
|
|
||||||
String userId;
|
|
||||||
String fullName;
|
|
||||||
Optional<String> _level = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _role = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _totalShifts = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _averageRating = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _onTimeRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _noShowCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _cancellationCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _reliabilityScore = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _bio = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<List<String>> _skills = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
Optional<List<String>> _industries = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
Optional<List<String>> _preferredLocations = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
Optional<int> _maxDistanceMiles = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _languages = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<AnyValue> _itemsAttire = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<int> _xp = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _badges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<bool> _isRecommended = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _ownerId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<DepartmentType> _department = Optional.optional((data) => DepartmentType.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _hubId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _manager = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<EnglishProficiency> _english = Optional.optional((data) => EnglishProficiency.values.byName(data), enumSerializer);
|
|
||||||
Optional<BackgroundCheckStatus> _backgroundCheckStatus = Optional.optional((data) => BackgroundCheckStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<EmploymentType> _employmentType = Optional.optional((data) => EmploymentType.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _initial = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _englishRequired = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _addres = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffVariablesBuilder level(String? t) {
|
|
||||||
_level.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder role(String? t) {
|
|
||||||
_role.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder phone(String? t) {
|
|
||||||
_phone.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder photoUrl(String? t) {
|
|
||||||
_photoUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder totalShifts(int? t) {
|
|
||||||
_totalShifts.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder averageRating(double? t) {
|
|
||||||
_averageRating.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder onTimeRate(int? t) {
|
|
||||||
_onTimeRate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder noShowCount(int? t) {
|
|
||||||
_noShowCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder cancellationCount(int? t) {
|
|
||||||
_cancellationCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder reliabilityScore(int? t) {
|
|
||||||
_reliabilityScore.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder bio(String? t) {
|
|
||||||
_bio.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder skills(List<String>? t) {
|
|
||||||
_skills.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder industries(List<String>? t) {
|
|
||||||
_industries.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder preferredLocations(List<String>? t) {
|
|
||||||
_preferredLocations.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder maxDistanceMiles(int? t) {
|
|
||||||
_maxDistanceMiles.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder languages(AnyValue? t) {
|
|
||||||
_languages.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder itemsAttire(AnyValue? t) {
|
|
||||||
_itemsAttire.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder xp(int? t) {
|
|
||||||
_xp.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder badges(AnyValue? t) {
|
|
||||||
_badges.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder isRecommended(bool? t) {
|
|
||||||
_isRecommended.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder ownerId(String? t) {
|
|
||||||
_ownerId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder department(DepartmentType? t) {
|
|
||||||
_department.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder hubId(String? t) {
|
|
||||||
_hubId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder manager(String? t) {
|
|
||||||
_manager.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder english(EnglishProficiency? t) {
|
|
||||||
_english.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder backgroundCheckStatus(BackgroundCheckStatus? t) {
|
|
||||||
_backgroundCheckStatus.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder employmentType(EmploymentType? t) {
|
|
||||||
_employmentType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder initial(String? t) {
|
|
||||||
_initial.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder englishRequired(bool? t) {
|
|
||||||
_englishRequired.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffVariablesBuilder addres(String? t) {
|
|
||||||
_addres.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffVariablesBuilder(this._dataConnect, {required this.userId,required this.fullName,});
|
|
||||||
Deserializer<CreateStaffData> dataDeserializer = (dynamic json) => CreateStaffData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffVariables> varsSerializer = (CreateStaffVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffData, CreateStaffVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffData, CreateStaffVariables> ref() {
|
|
||||||
CreateStaffVariables vars= CreateStaffVariables(userId: userId,fullName: fullName,level: _level,role: _role,phone: _phone,email: _email,photoUrl: _photoUrl,totalShifts: _totalShifts,averageRating: _averageRating,onTimeRate: _onTimeRate,noShowCount: _noShowCount,cancellationCount: _cancellationCount,reliabilityScore: _reliabilityScore,bio: _bio,skills: _skills,industries: _industries,preferredLocations: _preferredLocations,maxDistanceMiles: _maxDistanceMiles,languages: _languages,itemsAttire: _itemsAttire,xp: _xp,badges: _badges,isRecommended: _isRecommended,ownerId: _ownerId,department: _department,hubId: _hubId,manager: _manager,english: _english,backgroundCheckStatus: _backgroundCheckStatus,employmentType: _employmentType,initial: _initial,englishRequired: _englishRequired,city: _city,addres: _addres,);
|
|
||||||
return _dataConnect.mutation("CreateStaff", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffStaffInsert {
|
|
||||||
final String id;
|
|
||||||
CreateStaffStaffInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffStaffInsert otherTyped = other as CreateStaffStaffInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffStaffInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffData {
|
|
||||||
final CreateStaffStaffInsert staff_insert;
|
|
||||||
CreateStaffData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staff_insert = CreateStaffStaffInsert.fromJson(json['staff_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffData otherTyped = other as CreateStaffData;
|
|
||||||
return staff_insert == otherTyped.staff_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staff_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staff_insert'] = staff_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffData({
|
|
||||||
required this.staff_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffVariables {
|
|
||||||
final String userId;
|
|
||||||
final String fullName;
|
|
||||||
late final Optional<String>level;
|
|
||||||
late final Optional<String>role;
|
|
||||||
late final Optional<String>phone;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>photoUrl;
|
|
||||||
late final Optional<int>totalShifts;
|
|
||||||
late final Optional<double>averageRating;
|
|
||||||
late final Optional<int>onTimeRate;
|
|
||||||
late final Optional<int>noShowCount;
|
|
||||||
late final Optional<int>cancellationCount;
|
|
||||||
late final Optional<int>reliabilityScore;
|
|
||||||
late final Optional<String>bio;
|
|
||||||
late final Optional<List<String>>skills;
|
|
||||||
late final Optional<List<String>>industries;
|
|
||||||
late final Optional<List<String>>preferredLocations;
|
|
||||||
late final Optional<int>maxDistanceMiles;
|
|
||||||
late final Optional<AnyValue>languages;
|
|
||||||
late final Optional<AnyValue>itemsAttire;
|
|
||||||
late final Optional<int>xp;
|
|
||||||
late final Optional<AnyValue>badges;
|
|
||||||
late final Optional<bool>isRecommended;
|
|
||||||
late final Optional<String>ownerId;
|
|
||||||
late final Optional<DepartmentType>department;
|
|
||||||
late final Optional<String>hubId;
|
|
||||||
late final Optional<String>manager;
|
|
||||||
late final Optional<EnglishProficiency>english;
|
|
||||||
late final Optional<BackgroundCheckStatus>backgroundCheckStatus;
|
|
||||||
late final Optional<EmploymentType>employmentType;
|
|
||||||
late final Optional<String>initial;
|
|
||||||
late final Optional<bool>englishRequired;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<String>addres;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
userId = nativeFromJson<String>(json['userId']),
|
|
||||||
fullName = nativeFromJson<String>(json['fullName']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
level = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
level.value = json['level'] == null ? null : nativeFromJson<String>(json['level']);
|
|
||||||
|
|
||||||
|
|
||||||
role = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
role.value = json['role'] == null ? null : nativeFromJson<String>(json['role']);
|
|
||||||
|
|
||||||
|
|
||||||
phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
phone.value = json['phone'] == null ? null : nativeFromJson<String>(json['phone']);
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
photoUrl.value = json['photoUrl'] == null ? null : nativeFromJson<String>(json['photoUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
totalShifts = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalShifts.value = json['totalShifts'] == null ? null : nativeFromJson<int>(json['totalShifts']);
|
|
||||||
|
|
||||||
|
|
||||||
averageRating = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
averageRating.value = json['averageRating'] == null ? null : nativeFromJson<double>(json['averageRating']);
|
|
||||||
|
|
||||||
|
|
||||||
onTimeRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
onTimeRate.value = json['onTimeRate'] == null ? null : nativeFromJson<int>(json['onTimeRate']);
|
|
||||||
|
|
||||||
|
|
||||||
noShowCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
noShowCount.value = json['noShowCount'] == null ? null : nativeFromJson<int>(json['noShowCount']);
|
|
||||||
|
|
||||||
|
|
||||||
cancellationCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
cancellationCount.value = json['cancellationCount'] == null ? null : nativeFromJson<int>(json['cancellationCount']);
|
|
||||||
|
|
||||||
|
|
||||||
reliabilityScore = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
reliabilityScore.value = json['reliabilityScore'] == null ? null : nativeFromJson<int>(json['reliabilityScore']);
|
|
||||||
|
|
||||||
|
|
||||||
bio = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
bio.value = json['bio'] == null ? null : nativeFromJson<String>(json['bio']);
|
|
||||||
|
|
||||||
|
|
||||||
skills = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
skills.value = json['skills'] == null ? null : (json['skills'] as List<dynamic>)
|
|
||||||
.map((e) => nativeFromJson<String>(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
|
|
||||||
industries = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
industries.value = json['industries'] == null ? null : (json['industries'] as List<dynamic>)
|
|
||||||
.map((e) => nativeFromJson<String>(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
|
|
||||||
preferredLocations = Optional.optional(listDeserializer(nativeFromJson), listSerializer(nativeToJson));
|
|
||||||
preferredLocations.value = json['preferredLocations'] == null ? null : (json['preferredLocations'] as List<dynamic>)
|
|
||||||
.map((e) => nativeFromJson<String>(e))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
|
|
||||||
maxDistanceMiles = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
maxDistanceMiles.value = json['maxDistanceMiles'] == null ? null : nativeFromJson<int>(json['maxDistanceMiles']);
|
|
||||||
|
|
||||||
|
|
||||||
languages = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
languages.value = json['languages'] == null ? null : AnyValue.fromJson(json['languages']);
|
|
||||||
|
|
||||||
|
|
||||||
itemsAttire = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
itemsAttire.value = json['itemsAttire'] == null ? null : AnyValue.fromJson(json['itemsAttire']);
|
|
||||||
|
|
||||||
|
|
||||||
xp = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
xp.value = json['xp'] == null ? null : nativeFromJson<int>(json['xp']);
|
|
||||||
|
|
||||||
|
|
||||||
badges = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
badges.value = json['badges'] == null ? null : AnyValue.fromJson(json['badges']);
|
|
||||||
|
|
||||||
|
|
||||||
isRecommended = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isRecommended.value = json['isRecommended'] == null ? null : nativeFromJson<bool>(json['isRecommended']);
|
|
||||||
|
|
||||||
|
|
||||||
ownerId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
ownerId.value = json['ownerId'] == null ? null : nativeFromJson<String>(json['ownerId']);
|
|
||||||
|
|
||||||
|
|
||||||
department = Optional.optional((data) => DepartmentType.values.byName(data), enumSerializer);
|
|
||||||
department.value = json['department'] == null ? null : DepartmentType.values.byName(json['department']);
|
|
||||||
|
|
||||||
|
|
||||||
hubId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
hubId.value = json['hubId'] == null ? null : nativeFromJson<String>(json['hubId']);
|
|
||||||
|
|
||||||
|
|
||||||
manager = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
manager.value = json['manager'] == null ? null : nativeFromJson<String>(json['manager']);
|
|
||||||
|
|
||||||
|
|
||||||
english = Optional.optional((data) => EnglishProficiency.values.byName(data), enumSerializer);
|
|
||||||
english.value = json['english'] == null ? null : EnglishProficiency.values.byName(json['english']);
|
|
||||||
|
|
||||||
|
|
||||||
backgroundCheckStatus = Optional.optional((data) => BackgroundCheckStatus.values.byName(data), enumSerializer);
|
|
||||||
backgroundCheckStatus.value = json['backgroundCheckStatus'] == null ? null : BackgroundCheckStatus.values.byName(json['backgroundCheckStatus']);
|
|
||||||
|
|
||||||
|
|
||||||
employmentType = Optional.optional((data) => EmploymentType.values.byName(data), enumSerializer);
|
|
||||||
employmentType.value = json['employmentType'] == null ? null : EmploymentType.values.byName(json['employmentType']);
|
|
||||||
|
|
||||||
|
|
||||||
initial = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
initial.value = json['initial'] == null ? null : nativeFromJson<String>(json['initial']);
|
|
||||||
|
|
||||||
|
|
||||||
englishRequired = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
englishRequired.value = json['englishRequired'] == null ? null : nativeFromJson<bool>(json['englishRequired']);
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
addres = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
addres.value = json['addres'] == null ? null : nativeFromJson<String>(json['addres']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffVariables otherTyped = other as CreateStaffVariables;
|
|
||||||
return userId == otherTyped.userId &&
|
|
||||||
fullName == otherTyped.fullName &&
|
|
||||||
level == otherTyped.level &&
|
|
||||||
role == otherTyped.role &&
|
|
||||||
phone == otherTyped.phone &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
photoUrl == otherTyped.photoUrl &&
|
|
||||||
totalShifts == otherTyped.totalShifts &&
|
|
||||||
averageRating == otherTyped.averageRating &&
|
|
||||||
onTimeRate == otherTyped.onTimeRate &&
|
|
||||||
noShowCount == otherTyped.noShowCount &&
|
|
||||||
cancellationCount == otherTyped.cancellationCount &&
|
|
||||||
reliabilityScore == otherTyped.reliabilityScore &&
|
|
||||||
bio == otherTyped.bio &&
|
|
||||||
skills == otherTyped.skills &&
|
|
||||||
industries == otherTyped.industries &&
|
|
||||||
preferredLocations == otherTyped.preferredLocations &&
|
|
||||||
maxDistanceMiles == otherTyped.maxDistanceMiles &&
|
|
||||||
languages == otherTyped.languages &&
|
|
||||||
itemsAttire == otherTyped.itemsAttire &&
|
|
||||||
xp == otherTyped.xp &&
|
|
||||||
badges == otherTyped.badges &&
|
|
||||||
isRecommended == otherTyped.isRecommended &&
|
|
||||||
ownerId == otherTyped.ownerId &&
|
|
||||||
department == otherTyped.department &&
|
|
||||||
hubId == otherTyped.hubId &&
|
|
||||||
manager == otherTyped.manager &&
|
|
||||||
english == otherTyped.english &&
|
|
||||||
backgroundCheckStatus == otherTyped.backgroundCheckStatus &&
|
|
||||||
employmentType == otherTyped.employmentType &&
|
|
||||||
initial == otherTyped.initial &&
|
|
||||||
englishRequired == otherTyped.englishRequired &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
addres == otherTyped.addres;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([userId.hashCode, fullName.hashCode, level.hashCode, role.hashCode, phone.hashCode, email.hashCode, photoUrl.hashCode, totalShifts.hashCode, averageRating.hashCode, onTimeRate.hashCode, noShowCount.hashCode, cancellationCount.hashCode, reliabilityScore.hashCode, bio.hashCode, skills.hashCode, industries.hashCode, preferredLocations.hashCode, maxDistanceMiles.hashCode, languages.hashCode, itemsAttire.hashCode, xp.hashCode, badges.hashCode, isRecommended.hashCode, ownerId.hashCode, department.hashCode, hubId.hashCode, manager.hashCode, english.hashCode, backgroundCheckStatus.hashCode, employmentType.hashCode, initial.hashCode, englishRequired.hashCode, city.hashCode, addres.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
json['fullName'] = nativeToJson<String>(fullName);
|
|
||||||
if(level.state == OptionalState.set) {
|
|
||||||
json['level'] = level.toJson();
|
|
||||||
}
|
|
||||||
if(role.state == OptionalState.set) {
|
|
||||||
json['role'] = role.toJson();
|
|
||||||
}
|
|
||||||
if(phone.state == OptionalState.set) {
|
|
||||||
json['phone'] = phone.toJson();
|
|
||||||
}
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(photoUrl.state == OptionalState.set) {
|
|
||||||
json['photoUrl'] = photoUrl.toJson();
|
|
||||||
}
|
|
||||||
if(totalShifts.state == OptionalState.set) {
|
|
||||||
json['totalShifts'] = totalShifts.toJson();
|
|
||||||
}
|
|
||||||
if(averageRating.state == OptionalState.set) {
|
|
||||||
json['averageRating'] = averageRating.toJson();
|
|
||||||
}
|
|
||||||
if(onTimeRate.state == OptionalState.set) {
|
|
||||||
json['onTimeRate'] = onTimeRate.toJson();
|
|
||||||
}
|
|
||||||
if(noShowCount.state == OptionalState.set) {
|
|
||||||
json['noShowCount'] = noShowCount.toJson();
|
|
||||||
}
|
|
||||||
if(cancellationCount.state == OptionalState.set) {
|
|
||||||
json['cancellationCount'] = cancellationCount.toJson();
|
|
||||||
}
|
|
||||||
if(reliabilityScore.state == OptionalState.set) {
|
|
||||||
json['reliabilityScore'] = reliabilityScore.toJson();
|
|
||||||
}
|
|
||||||
if(bio.state == OptionalState.set) {
|
|
||||||
json['bio'] = bio.toJson();
|
|
||||||
}
|
|
||||||
if(skills.state == OptionalState.set) {
|
|
||||||
json['skills'] = skills.toJson();
|
|
||||||
}
|
|
||||||
if(industries.state == OptionalState.set) {
|
|
||||||
json['industries'] = industries.toJson();
|
|
||||||
}
|
|
||||||
if(preferredLocations.state == OptionalState.set) {
|
|
||||||
json['preferredLocations'] = preferredLocations.toJson();
|
|
||||||
}
|
|
||||||
if(maxDistanceMiles.state == OptionalState.set) {
|
|
||||||
json['maxDistanceMiles'] = maxDistanceMiles.toJson();
|
|
||||||
}
|
|
||||||
if(languages.state == OptionalState.set) {
|
|
||||||
json['languages'] = languages.toJson();
|
|
||||||
}
|
|
||||||
if(itemsAttire.state == OptionalState.set) {
|
|
||||||
json['itemsAttire'] = itemsAttire.toJson();
|
|
||||||
}
|
|
||||||
if(xp.state == OptionalState.set) {
|
|
||||||
json['xp'] = xp.toJson();
|
|
||||||
}
|
|
||||||
if(badges.state == OptionalState.set) {
|
|
||||||
json['badges'] = badges.toJson();
|
|
||||||
}
|
|
||||||
if(isRecommended.state == OptionalState.set) {
|
|
||||||
json['isRecommended'] = isRecommended.toJson();
|
|
||||||
}
|
|
||||||
if(ownerId.state == OptionalState.set) {
|
|
||||||
json['ownerId'] = ownerId.toJson();
|
|
||||||
}
|
|
||||||
if(department.state == OptionalState.set) {
|
|
||||||
json['department'] = department.toJson();
|
|
||||||
}
|
|
||||||
if(hubId.state == OptionalState.set) {
|
|
||||||
json['hubId'] = hubId.toJson();
|
|
||||||
}
|
|
||||||
if(manager.state == OptionalState.set) {
|
|
||||||
json['manager'] = manager.toJson();
|
|
||||||
}
|
|
||||||
if(english.state == OptionalState.set) {
|
|
||||||
json['english'] = english.toJson();
|
|
||||||
}
|
|
||||||
if(backgroundCheckStatus.state == OptionalState.set) {
|
|
||||||
json['backgroundCheckStatus'] = backgroundCheckStatus.toJson();
|
|
||||||
}
|
|
||||||
if(employmentType.state == OptionalState.set) {
|
|
||||||
json['employmentType'] = employmentType.toJson();
|
|
||||||
}
|
|
||||||
if(initial.state == OptionalState.set) {
|
|
||||||
json['initial'] = initial.toJson();
|
|
||||||
}
|
|
||||||
if(englishRequired.state == OptionalState.set) {
|
|
||||||
json['englishRequired'] = englishRequired.toJson();
|
|
||||||
}
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(addres.state == OptionalState.set) {
|
|
||||||
json['addres'] = addres.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffVariables({
|
|
||||||
required this.userId,
|
|
||||||
required this.fullName,
|
|
||||||
required this.level,
|
|
||||||
required this.role,
|
|
||||||
required this.phone,
|
|
||||||
required this.email,
|
|
||||||
required this.photoUrl,
|
|
||||||
required this.totalShifts,
|
|
||||||
required this.averageRating,
|
|
||||||
required this.onTimeRate,
|
|
||||||
required this.noShowCount,
|
|
||||||
required this.cancellationCount,
|
|
||||||
required this.reliabilityScore,
|
|
||||||
required this.bio,
|
|
||||||
required this.skills,
|
|
||||||
required this.industries,
|
|
||||||
required this.preferredLocations,
|
|
||||||
required this.maxDistanceMiles,
|
|
||||||
required this.languages,
|
|
||||||
required this.itemsAttire,
|
|
||||||
required this.xp,
|
|
||||||
required this.badges,
|
|
||||||
required this.isRecommended,
|
|
||||||
required this.ownerId,
|
|
||||||
required this.department,
|
|
||||||
required this.hubId,
|
|
||||||
required this.manager,
|
|
||||||
required this.english,
|
|
||||||
required this.backgroundCheckStatus,
|
|
||||||
required this.employmentType,
|
|
||||||
required this.initial,
|
|
||||||
required this.englishRequired,
|
|
||||||
required this.city,
|
|
||||||
required this.addres,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,187 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffAvailabilityVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
DayOfWeek day;
|
|
||||||
AvailabilitySlot slot;
|
|
||||||
Optional<AvailabilityStatus> _status = Optional.optional((data) => AvailabilityStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) {
|
|
||||||
_status.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityVariablesBuilder(this._dataConnect, {required this.staffId,required this.day,required this.slot,});
|
|
||||||
Deserializer<CreateStaffAvailabilityData> dataDeserializer = (dynamic json) => CreateStaffAvailabilityData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffAvailabilityVariables> varsSerializer = (CreateStaffAvailabilityVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffAvailabilityData, CreateStaffAvailabilityVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffAvailabilityData, CreateStaffAvailabilityVariables> ref() {
|
|
||||||
CreateStaffAvailabilityVariables vars= CreateStaffAvailabilityVariables(staffId: staffId,day: day,slot: slot,status: _status,notes: _notes,);
|
|
||||||
return _dataConnect.mutation("createStaffAvailability", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityStaffAvailabilityInsert {
|
|
||||||
final String staffId;
|
|
||||||
final EnumValue<DayOfWeek> day;
|
|
||||||
final EnumValue<AvailabilitySlot> slot;
|
|
||||||
CreateStaffAvailabilityStaffAvailabilityInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
day = dayOfWeekDeserializer(json['day']),
|
|
||||||
slot = availabilitySlotDeserializer(json['slot']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityStaffAvailabilityInsert otherTyped = other as CreateStaffAvailabilityStaffAvailabilityInsert;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
day == otherTyped.day &&
|
|
||||||
slot == otherTyped.slot;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, day.hashCode, slot.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['day'] =
|
|
||||||
dayOfWeekSerializer(day)
|
|
||||||
;
|
|
||||||
json['slot'] =
|
|
||||||
availabilitySlotSerializer(slot)
|
|
||||||
;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityStaffAvailabilityInsert({
|
|
||||||
required this.staffId,
|
|
||||||
required this.day,
|
|
||||||
required this.slot,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityData {
|
|
||||||
final CreateStaffAvailabilityStaffAvailabilityInsert staffAvailability_insert;
|
|
||||||
CreateStaffAvailabilityData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffAvailability_insert = CreateStaffAvailabilityStaffAvailabilityInsert.fromJson(json['staffAvailability_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityData otherTyped = other as CreateStaffAvailabilityData;
|
|
||||||
return staffAvailability_insert == otherTyped.staffAvailability_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffAvailability_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffAvailability_insert'] = staffAvailability_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityData({
|
|
||||||
required this.staffAvailability_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityVariables {
|
|
||||||
final String staffId;
|
|
||||||
final DayOfWeek day;
|
|
||||||
final AvailabilitySlot slot;
|
|
||||||
late final Optional<AvailabilityStatus>status;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffAvailabilityVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
day = DayOfWeek.values.byName(json['day']),
|
|
||||||
slot = AvailabilitySlot.values.byName(json['slot']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
status = Optional.optional((data) => AvailabilityStatus.values.byName(data), enumSerializer);
|
|
||||||
status.value = json['status'] == null ? null : AvailabilityStatus.values.byName(json['status']);
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityVariables otherTyped = other as CreateStaffAvailabilityVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
day == otherTyped.day &&
|
|
||||||
slot == otherTyped.slot &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
notes == otherTyped.notes;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, day.hashCode, slot.hashCode, status.hashCode, notes.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['day'] =
|
|
||||||
day.name
|
|
||||||
;
|
|
||||||
json['slot'] =
|
|
||||||
slot.name
|
|
||||||
;
|
|
||||||
if(status.state == OptionalState.set) {
|
|
||||||
json['status'] = status.toJson();
|
|
||||||
}
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.day,
|
|
||||||
required this.slot,
|
|
||||||
required this.status,
|
|
||||||
required this.notes,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffAvailabilityStatsVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
Optional<int> _needWorkIndex = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _utilizationPercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _predictedAvailabilityScore = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _scheduledHoursThisPeriod = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _desiredHoursThisPeriod = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _lastShiftDate = Optional.optional((json) => json['lastShiftDate'] = Timestamp.fromJson(json['lastShiftDate']), defaultSerializer);
|
|
||||||
Optional<int> _acceptanceRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) {
|
|
||||||
_needWorkIndex.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) {
|
|
||||||
_utilizationPercentage.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) {
|
|
||||||
_predictedAvailabilityScore.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) {
|
|
||||||
_scheduledHoursThisPeriod.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) {
|
|
||||||
_desiredHoursThisPeriod.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) {
|
|
||||||
_lastShiftDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) {
|
|
||||||
_acceptanceRate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityStatsVariablesBuilder(this._dataConnect, {required this.staffId,});
|
|
||||||
Deserializer<CreateStaffAvailabilityStatsData> dataDeserializer = (dynamic json) => CreateStaffAvailabilityStatsData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffAvailabilityStatsVariables> varsSerializer = (CreateStaffAvailabilityStatsVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffAvailabilityStatsData, CreateStaffAvailabilityStatsVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffAvailabilityStatsData, CreateStaffAvailabilityStatsVariables> ref() {
|
|
||||||
CreateStaffAvailabilityStatsVariables vars= CreateStaffAvailabilityStatsVariables(staffId: staffId,needWorkIndex: _needWorkIndex,utilizationPercentage: _utilizationPercentage,predictedAvailabilityScore: _predictedAvailabilityScore,scheduledHoursThisPeriod: _scheduledHoursThisPeriod,desiredHoursThisPeriod: _desiredHoursThisPeriod,lastShiftDate: _lastShiftDate,acceptanceRate: _acceptanceRate,);
|
|
||||||
return _dataConnect.mutation("createStaffAvailabilityStats", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert {
|
|
||||||
final String staffId;
|
|
||||||
CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert otherTyped = other as CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert;
|
|
||||||
return staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffId.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert({
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityStatsData {
|
|
||||||
final CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert staffAvailabilityStats_insert;
|
|
||||||
CreateStaffAvailabilityStatsData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffAvailabilityStats_insert = CreateStaffAvailabilityStatsStaffAvailabilityStatsInsert.fromJson(json['staffAvailabilityStats_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityStatsData otherTyped = other as CreateStaffAvailabilityStatsData;
|
|
||||||
return staffAvailabilityStats_insert == otherTyped.staffAvailabilityStats_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffAvailabilityStats_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffAvailabilityStats_insert'] = staffAvailabilityStats_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityStatsData({
|
|
||||||
required this.staffAvailabilityStats_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffAvailabilityStatsVariables {
|
|
||||||
final String staffId;
|
|
||||||
late final Optional<int>needWorkIndex;
|
|
||||||
late final Optional<int>utilizationPercentage;
|
|
||||||
late final Optional<int>predictedAvailabilityScore;
|
|
||||||
late final Optional<int>scheduledHoursThisPeriod;
|
|
||||||
late final Optional<int>desiredHoursThisPeriod;
|
|
||||||
late final Optional<Timestamp>lastShiftDate;
|
|
||||||
late final Optional<int>acceptanceRate;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffAvailabilityStatsVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
needWorkIndex = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
needWorkIndex.value = json['needWorkIndex'] == null ? null : nativeFromJson<int>(json['needWorkIndex']);
|
|
||||||
|
|
||||||
|
|
||||||
utilizationPercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
utilizationPercentage.value = json['utilizationPercentage'] == null ? null : nativeFromJson<int>(json['utilizationPercentage']);
|
|
||||||
|
|
||||||
|
|
||||||
predictedAvailabilityScore = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
predictedAvailabilityScore.value = json['predictedAvailabilityScore'] == null ? null : nativeFromJson<int>(json['predictedAvailabilityScore']);
|
|
||||||
|
|
||||||
|
|
||||||
scheduledHoursThisPeriod = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
scheduledHoursThisPeriod.value = json['scheduledHoursThisPeriod'] == null ? null : nativeFromJson<int>(json['scheduledHoursThisPeriod']);
|
|
||||||
|
|
||||||
|
|
||||||
desiredHoursThisPeriod = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
desiredHoursThisPeriod.value = json['desiredHoursThisPeriod'] == null ? null : nativeFromJson<int>(json['desiredHoursThisPeriod']);
|
|
||||||
|
|
||||||
|
|
||||||
lastShiftDate = Optional.optional((json) => json['lastShiftDate'] = Timestamp.fromJson(json['lastShiftDate']), defaultSerializer);
|
|
||||||
lastShiftDate.value = json['lastShiftDate'] == null ? null : Timestamp.fromJson(json['lastShiftDate']);
|
|
||||||
|
|
||||||
|
|
||||||
acceptanceRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
acceptanceRate.value = json['acceptanceRate'] == null ? null : nativeFromJson<int>(json['acceptanceRate']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffAvailabilityStatsVariables otherTyped = other as CreateStaffAvailabilityStatsVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
needWorkIndex == otherTyped.needWorkIndex &&
|
|
||||||
utilizationPercentage == otherTyped.utilizationPercentage &&
|
|
||||||
predictedAvailabilityScore == otherTyped.predictedAvailabilityScore &&
|
|
||||||
scheduledHoursThisPeriod == otherTyped.scheduledHoursThisPeriod &&
|
|
||||||
desiredHoursThisPeriod == otherTyped.desiredHoursThisPeriod &&
|
|
||||||
lastShiftDate == otherTyped.lastShiftDate &&
|
|
||||||
acceptanceRate == otherTyped.acceptanceRate;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, needWorkIndex.hashCode, utilizationPercentage.hashCode, predictedAvailabilityScore.hashCode, scheduledHoursThisPeriod.hashCode, desiredHoursThisPeriod.hashCode, lastShiftDate.hashCode, acceptanceRate.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
if(needWorkIndex.state == OptionalState.set) {
|
|
||||||
json['needWorkIndex'] = needWorkIndex.toJson();
|
|
||||||
}
|
|
||||||
if(utilizationPercentage.state == OptionalState.set) {
|
|
||||||
json['utilizationPercentage'] = utilizationPercentage.toJson();
|
|
||||||
}
|
|
||||||
if(predictedAvailabilityScore.state == OptionalState.set) {
|
|
||||||
json['predictedAvailabilityScore'] = predictedAvailabilityScore.toJson();
|
|
||||||
}
|
|
||||||
if(scheduledHoursThisPeriod.state == OptionalState.set) {
|
|
||||||
json['scheduledHoursThisPeriod'] = scheduledHoursThisPeriod.toJson();
|
|
||||||
}
|
|
||||||
if(desiredHoursThisPeriod.state == OptionalState.set) {
|
|
||||||
json['desiredHoursThisPeriod'] = desiredHoursThisPeriod.toJson();
|
|
||||||
}
|
|
||||||
if(lastShiftDate.state == OptionalState.set) {
|
|
||||||
json['lastShiftDate'] = lastShiftDate.toJson();
|
|
||||||
}
|
|
||||||
if(acceptanceRate.state == OptionalState.set) {
|
|
||||||
json['acceptanceRate'] = acceptanceRate.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffAvailabilityStatsVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.needWorkIndex,
|
|
||||||
required this.utilizationPercentage,
|
|
||||||
required this.predictedAvailabilityScore,
|
|
||||||
required this.scheduledHoursThisPeriod,
|
|
||||||
required this.desiredHoursThisPeriod,
|
|
||||||
required this.lastShiftDate,
|
|
||||||
required this.acceptanceRate,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffCourseVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String courseId;
|
|
||||||
Optional<int> _progressPercent = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _completed = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _completedAt = Optional.optional((json) => json['completedAt'] = Timestamp.fromJson(json['completedAt']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _startedAt = Optional.optional((json) => json['startedAt'] = Timestamp.fromJson(json['startedAt']), defaultSerializer);
|
|
||||||
Optional<Timestamp> _lastAccessedAt = Optional.optional((json) => json['lastAccessedAt'] = Timestamp.fromJson(json['lastAccessedAt']), defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffCourseVariablesBuilder progressPercent(int? t) {
|
|
||||||
_progressPercent.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffCourseVariablesBuilder completed(bool? t) {
|
|
||||||
_completed.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffCourseVariablesBuilder completedAt(Timestamp? t) {
|
|
||||||
_completedAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffCourseVariablesBuilder startedAt(Timestamp? t) {
|
|
||||||
_startedAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffCourseVariablesBuilder lastAccessedAt(Timestamp? t) {
|
|
||||||
_lastAccessedAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffCourseVariablesBuilder(this._dataConnect, {required this.staffId,required this.courseId,});
|
|
||||||
Deserializer<CreateStaffCourseData> dataDeserializer = (dynamic json) => CreateStaffCourseData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffCourseVariables> varsSerializer = (CreateStaffCourseVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffCourseData, CreateStaffCourseVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffCourseData, CreateStaffCourseVariables> ref() {
|
|
||||||
CreateStaffCourseVariables vars= CreateStaffCourseVariables(staffId: staffId,courseId: courseId,progressPercent: _progressPercent,completed: _completed,completedAt: _completedAt,startedAt: _startedAt,lastAccessedAt: _lastAccessedAt,);
|
|
||||||
return _dataConnect.mutation("createStaffCourse", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffCourseStaffCourseInsert {
|
|
||||||
final String id;
|
|
||||||
CreateStaffCourseStaffCourseInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffCourseStaffCourseInsert otherTyped = other as CreateStaffCourseStaffCourseInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffCourseStaffCourseInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffCourseData {
|
|
||||||
final CreateStaffCourseStaffCourseInsert staffCourse_insert;
|
|
||||||
CreateStaffCourseData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffCourse_insert = CreateStaffCourseStaffCourseInsert.fromJson(json['staffCourse_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffCourseData otherTyped = other as CreateStaffCourseData;
|
|
||||||
return staffCourse_insert == otherTyped.staffCourse_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffCourse_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffCourse_insert'] = staffCourse_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffCourseData({
|
|
||||||
required this.staffCourse_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffCourseVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String courseId;
|
|
||||||
late final Optional<int>progressPercent;
|
|
||||||
late final Optional<bool>completed;
|
|
||||||
late final Optional<Timestamp>completedAt;
|
|
||||||
late final Optional<Timestamp>startedAt;
|
|
||||||
late final Optional<Timestamp>lastAccessedAt;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffCourseVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
courseId = nativeFromJson<String>(json['courseId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
progressPercent = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
progressPercent.value = json['progressPercent'] == null ? null : nativeFromJson<int>(json['progressPercent']);
|
|
||||||
|
|
||||||
|
|
||||||
completed = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
completed.value = json['completed'] == null ? null : nativeFromJson<bool>(json['completed']);
|
|
||||||
|
|
||||||
|
|
||||||
completedAt = Optional.optional((json) => json['completedAt'] = Timestamp.fromJson(json['completedAt']), defaultSerializer);
|
|
||||||
completedAt.value = json['completedAt'] == null ? null : Timestamp.fromJson(json['completedAt']);
|
|
||||||
|
|
||||||
|
|
||||||
startedAt = Optional.optional((json) => json['startedAt'] = Timestamp.fromJson(json['startedAt']), defaultSerializer);
|
|
||||||
startedAt.value = json['startedAt'] == null ? null : Timestamp.fromJson(json['startedAt']);
|
|
||||||
|
|
||||||
|
|
||||||
lastAccessedAt = Optional.optional((json) => json['lastAccessedAt'] = Timestamp.fromJson(json['lastAccessedAt']), defaultSerializer);
|
|
||||||
lastAccessedAt.value = json['lastAccessedAt'] == null ? null : Timestamp.fromJson(json['lastAccessedAt']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffCourseVariables otherTyped = other as CreateStaffCourseVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
courseId == otherTyped.courseId &&
|
|
||||||
progressPercent == otherTyped.progressPercent &&
|
|
||||||
completed == otherTyped.completed &&
|
|
||||||
completedAt == otherTyped.completedAt &&
|
|
||||||
startedAt == otherTyped.startedAt &&
|
|
||||||
lastAccessedAt == otherTyped.lastAccessedAt;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, courseId.hashCode, progressPercent.hashCode, completed.hashCode, completedAt.hashCode, startedAt.hashCode, lastAccessedAt.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['courseId'] = nativeToJson<String>(courseId);
|
|
||||||
if(progressPercent.state == OptionalState.set) {
|
|
||||||
json['progressPercent'] = progressPercent.toJson();
|
|
||||||
}
|
|
||||||
if(completed.state == OptionalState.set) {
|
|
||||||
json['completed'] = completed.toJson();
|
|
||||||
}
|
|
||||||
if(completedAt.state == OptionalState.set) {
|
|
||||||
json['completedAt'] = completedAt.toJson();
|
|
||||||
}
|
|
||||||
if(startedAt.state == OptionalState.set) {
|
|
||||||
json['startedAt'] = startedAt.toJson();
|
|
||||||
}
|
|
||||||
if(lastAccessedAt.state == OptionalState.set) {
|
|
||||||
json['lastAccessedAt'] = lastAccessedAt.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffCourseVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.courseId,
|
|
||||||
required this.progressPercent,
|
|
||||||
required this.completed,
|
|
||||||
required this.completedAt,
|
|
||||||
required this.startedAt,
|
|
||||||
required this.lastAccessedAt,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffDocumentVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String staffName;
|
|
||||||
String documentId;
|
|
||||||
DocumentStatus status;
|
|
||||||
Optional<String> _documentUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _expiryDate = Optional.optional((json) => json['expiryDate'] = Timestamp.fromJson(json['expiryDate']), defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffDocumentVariablesBuilder documentUrl(String? t) {
|
|
||||||
_documentUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) {
|
|
||||||
_expiryDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffDocumentVariablesBuilder(this._dataConnect, {required this.staffId,required this.staffName,required this.documentId,required this.status,});
|
|
||||||
Deserializer<CreateStaffDocumentData> dataDeserializer = (dynamic json) => CreateStaffDocumentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffDocumentVariables> varsSerializer = (CreateStaffDocumentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffDocumentData, CreateStaffDocumentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffDocumentData, CreateStaffDocumentVariables> ref() {
|
|
||||||
CreateStaffDocumentVariables vars= CreateStaffDocumentVariables(staffId: staffId,staffName: staffName,documentId: documentId,status: status,documentUrl: _documentUrl,expiryDate: _expiryDate,);
|
|
||||||
return _dataConnect.mutation("createStaffDocument", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffDocumentStaffDocumentInsert {
|
|
||||||
final String staffId;
|
|
||||||
final String documentId;
|
|
||||||
CreateStaffDocumentStaffDocumentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
documentId = nativeFromJson<String>(json['documentId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffDocumentStaffDocumentInsert otherTyped = other as CreateStaffDocumentStaffDocumentInsert;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
documentId == otherTyped.documentId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, documentId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['documentId'] = nativeToJson<String>(documentId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffDocumentStaffDocumentInsert({
|
|
||||||
required this.staffId,
|
|
||||||
required this.documentId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffDocumentData {
|
|
||||||
final CreateStaffDocumentStaffDocumentInsert staffDocument_insert;
|
|
||||||
CreateStaffDocumentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffDocument_insert = CreateStaffDocumentStaffDocumentInsert.fromJson(json['staffDocument_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffDocumentData otherTyped = other as CreateStaffDocumentData;
|
|
||||||
return staffDocument_insert == otherTyped.staffDocument_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffDocument_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffDocument_insert'] = staffDocument_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffDocumentData({
|
|
||||||
required this.staffDocument_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffDocumentVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String staffName;
|
|
||||||
final String documentId;
|
|
||||||
final DocumentStatus status;
|
|
||||||
late final Optional<String>documentUrl;
|
|
||||||
late final Optional<Timestamp>expiryDate;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffDocumentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
staffName = nativeFromJson<String>(json['staffName']),
|
|
||||||
documentId = nativeFromJson<String>(json['documentId']),
|
|
||||||
status = DocumentStatus.values.byName(json['status']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
documentUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
documentUrl.value = json['documentUrl'] == null ? null : nativeFromJson<String>(json['documentUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
expiryDate = Optional.optional((json) => json['expiryDate'] = Timestamp.fromJson(json['expiryDate']), defaultSerializer);
|
|
||||||
expiryDate.value = json['expiryDate'] == null ? null : Timestamp.fromJson(json['expiryDate']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffDocumentVariables otherTyped = other as CreateStaffDocumentVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
staffName == otherTyped.staffName &&
|
|
||||||
documentId == otherTyped.documentId &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
documentUrl == otherTyped.documentUrl &&
|
|
||||||
expiryDate == otherTyped.expiryDate;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, staffName.hashCode, documentId.hashCode, status.hashCode, documentUrl.hashCode, expiryDate.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['staffName'] = nativeToJson<String>(staffName);
|
|
||||||
json['documentId'] = nativeToJson<String>(documentId);
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
if(documentUrl.state == OptionalState.set) {
|
|
||||||
json['documentUrl'] = documentUrl.toJson();
|
|
||||||
}
|
|
||||||
if(expiryDate.state == OptionalState.set) {
|
|
||||||
json['expiryDate'] = expiryDate.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffDocumentVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.staffName,
|
|
||||||
required this.documentId,
|
|
||||||
required this.status,
|
|
||||||
required this.documentUrl,
|
|
||||||
required this.expiryDate,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateStaffRoleVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String roleId;
|
|
||||||
Optional<RoleType> _roleType = Optional.optional((data) => RoleType.values.byName(data), enumSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateStaffRoleVariablesBuilder roleType(RoleType? t) {
|
|
||||||
_roleType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffRoleVariablesBuilder(this._dataConnect, {required this.staffId,required this.roleId,});
|
|
||||||
Deserializer<CreateStaffRoleData> dataDeserializer = (dynamic json) => CreateStaffRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateStaffRoleVariables> varsSerializer = (CreateStaffRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateStaffRoleData, CreateStaffRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateStaffRoleData, CreateStaffRoleVariables> ref() {
|
|
||||||
CreateStaffRoleVariables vars= CreateStaffRoleVariables(staffId: staffId,roleId: roleId,roleType: _roleType,);
|
|
||||||
return _dataConnect.mutation("createStaffRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffRoleStaffRoleInsert {
|
|
||||||
final String staffId;
|
|
||||||
final String roleId;
|
|
||||||
CreateStaffRoleStaffRoleInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffRoleStaffRoleInsert otherTyped = other as CreateStaffRoleStaffRoleInsert;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffRoleStaffRoleInsert({
|
|
||||||
required this.staffId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffRoleData {
|
|
||||||
final CreateStaffRoleStaffRoleInsert staffRole_insert;
|
|
||||||
CreateStaffRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffRole_insert = CreateStaffRoleStaffRoleInsert.fromJson(json['staffRole_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffRoleData otherTyped = other as CreateStaffRoleData;
|
|
||||||
return staffRole_insert == otherTyped.staffRole_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffRole_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffRole_insert'] = staffRole_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffRoleData({
|
|
||||||
required this.staffRole_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateStaffRoleVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String roleId;
|
|
||||||
late final Optional<RoleType>roleType;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateStaffRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
roleType = Optional.optional((data) => RoleType.values.byName(data), enumSerializer);
|
|
||||||
roleType.value = json['roleType'] == null ? null : RoleType.values.byName(json['roleType']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateStaffRoleVariables otherTyped = other as CreateStaffRoleVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
roleId == otherTyped.roleId &&
|
|
||||||
roleType == otherTyped.roleType;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, roleId.hashCode, roleType.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
if(roleType.state == OptionalState.set) {
|
|
||||||
json['roleType'] = roleType.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateStaffRoleVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.roleId,
|
|
||||||
required this.roleType,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,255 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTaskVariablesBuilder {
|
|
||||||
String taskName;
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
TaskPriority priority;
|
|
||||||
TaskStatus status;
|
|
||||||
Optional<Timestamp> _dueDate = Optional.optional((json) => json['dueDate'] = Timestamp.fromJson(json['dueDate']), defaultSerializer);
|
|
||||||
Optional<int> _progress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _orderIndex = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _commentCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _attachmentCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _files = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
String ownerId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTaskVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder dueDate(Timestamp? t) {
|
|
||||||
_dueDate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder progress(int? t) {
|
|
||||||
_progress.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder orderIndex(int? t) {
|
|
||||||
_orderIndex.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder commentCount(int? t) {
|
|
||||||
_commentCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder attachmentCount(int? t) {
|
|
||||||
_attachmentCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaskVariablesBuilder files(AnyValue? t) {
|
|
||||||
_files.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskVariablesBuilder(this._dataConnect, {required this.taskName,required this.priority,required this.status,required this.ownerId,});
|
|
||||||
Deserializer<CreateTaskData> dataDeserializer = (dynamic json) => CreateTaskData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTaskVariables> varsSerializer = (CreateTaskVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTaskData, CreateTaskVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTaskData, CreateTaskVariables> ref() {
|
|
||||||
CreateTaskVariables vars= CreateTaskVariables(taskName: taskName,description: _description,priority: priority,status: status,dueDate: _dueDate,progress: _progress,orderIndex: _orderIndex,commentCount: _commentCount,attachmentCount: _attachmentCount,files: _files,ownerId: ownerId,);
|
|
||||||
return _dataConnect.mutation("createTask", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskTaskInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTaskTaskInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskTaskInsert otherTyped = other as CreateTaskTaskInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskTaskInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskData {
|
|
||||||
final CreateTaskTaskInsert task_insert;
|
|
||||||
CreateTaskData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
task_insert = CreateTaskTaskInsert.fromJson(json['task_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskData otherTyped = other as CreateTaskData;
|
|
||||||
return task_insert == otherTyped.task_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => task_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['task_insert'] = task_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskData({
|
|
||||||
required this.task_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskVariables {
|
|
||||||
final String taskName;
|
|
||||||
late final Optional<String>description;
|
|
||||||
final TaskPriority priority;
|
|
||||||
final TaskStatus status;
|
|
||||||
late final Optional<Timestamp>dueDate;
|
|
||||||
late final Optional<int>progress;
|
|
||||||
late final Optional<int>orderIndex;
|
|
||||||
late final Optional<int>commentCount;
|
|
||||||
late final Optional<int>attachmentCount;
|
|
||||||
late final Optional<AnyValue>files;
|
|
||||||
final String ownerId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTaskVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
taskName = nativeFromJson<String>(json['taskName']),
|
|
||||||
priority = TaskPriority.values.byName(json['priority']),
|
|
||||||
status = TaskStatus.values.byName(json['status']),
|
|
||||||
ownerId = nativeFromJson<String>(json['ownerId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dueDate = Optional.optional((json) => json['dueDate'] = Timestamp.fromJson(json['dueDate']), defaultSerializer);
|
|
||||||
dueDate.value = json['dueDate'] == null ? null : Timestamp.fromJson(json['dueDate']);
|
|
||||||
|
|
||||||
|
|
||||||
progress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
progress.value = json['progress'] == null ? null : nativeFromJson<int>(json['progress']);
|
|
||||||
|
|
||||||
|
|
||||||
orderIndex = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
orderIndex.value = json['orderIndex'] == null ? null : nativeFromJson<int>(json['orderIndex']);
|
|
||||||
|
|
||||||
|
|
||||||
commentCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
commentCount.value = json['commentCount'] == null ? null : nativeFromJson<int>(json['commentCount']);
|
|
||||||
|
|
||||||
|
|
||||||
attachmentCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
attachmentCount.value = json['attachmentCount'] == null ? null : nativeFromJson<int>(json['attachmentCount']);
|
|
||||||
|
|
||||||
|
|
||||||
files = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
files.value = json['files'] == null ? null : AnyValue.fromJson(json['files']);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskVariables otherTyped = other as CreateTaskVariables;
|
|
||||||
return taskName == otherTyped.taskName &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
priority == otherTyped.priority &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
dueDate == otherTyped.dueDate &&
|
|
||||||
progress == otherTyped.progress &&
|
|
||||||
orderIndex == otherTyped.orderIndex &&
|
|
||||||
commentCount == otherTyped.commentCount &&
|
|
||||||
attachmentCount == otherTyped.attachmentCount &&
|
|
||||||
files == otherTyped.files &&
|
|
||||||
ownerId == otherTyped.ownerId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([taskName.hashCode, description.hashCode, priority.hashCode, status.hashCode, dueDate.hashCode, progress.hashCode, orderIndex.hashCode, commentCount.hashCode, attachmentCount.hashCode, files.hashCode, ownerId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['taskName'] = nativeToJson<String>(taskName);
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
json['priority'] =
|
|
||||||
priority.name
|
|
||||||
;
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
if(dueDate.state == OptionalState.set) {
|
|
||||||
json['dueDate'] = dueDate.toJson();
|
|
||||||
}
|
|
||||||
if(progress.state == OptionalState.set) {
|
|
||||||
json['progress'] = progress.toJson();
|
|
||||||
}
|
|
||||||
if(orderIndex.state == OptionalState.set) {
|
|
||||||
json['orderIndex'] = orderIndex.toJson();
|
|
||||||
}
|
|
||||||
if(commentCount.state == OptionalState.set) {
|
|
||||||
json['commentCount'] = commentCount.toJson();
|
|
||||||
}
|
|
||||||
if(attachmentCount.state == OptionalState.set) {
|
|
||||||
json['attachmentCount'] = attachmentCount.toJson();
|
|
||||||
}
|
|
||||||
if(files.state == OptionalState.set) {
|
|
||||||
json['files'] = files.toJson();
|
|
||||||
}
|
|
||||||
json['ownerId'] = nativeToJson<String>(ownerId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskVariables({
|
|
||||||
required this.taskName,
|
|
||||||
required this.description,
|
|
||||||
required this.priority,
|
|
||||||
required this.status,
|
|
||||||
required this.dueDate,
|
|
||||||
required this.progress,
|
|
||||||
required this.orderIndex,
|
|
||||||
required this.commentCount,
|
|
||||||
required this.attachmentCount,
|
|
||||||
required this.files,
|
|
||||||
required this.ownerId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTaskCommentVariablesBuilder {
|
|
||||||
String taskId;
|
|
||||||
String teamMemberId;
|
|
||||||
String comment;
|
|
||||||
Optional<bool> _isSystem = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTaskCommentVariablesBuilder isSystem(bool? t) {
|
|
||||||
_isSystem.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskCommentVariablesBuilder(this._dataConnect, {required this.taskId,required this.teamMemberId,required this.comment,});
|
|
||||||
Deserializer<CreateTaskCommentData> dataDeserializer = (dynamic json) => CreateTaskCommentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTaskCommentVariables> varsSerializer = (CreateTaskCommentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTaskCommentData, CreateTaskCommentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTaskCommentData, CreateTaskCommentVariables> ref() {
|
|
||||||
CreateTaskCommentVariables vars= CreateTaskCommentVariables(taskId: taskId,teamMemberId: teamMemberId,comment: comment,isSystem: _isSystem,);
|
|
||||||
return _dataConnect.mutation("createTaskComment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskCommentTaskCommentInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTaskCommentTaskCommentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskCommentTaskCommentInsert otherTyped = other as CreateTaskCommentTaskCommentInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskCommentTaskCommentInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskCommentData {
|
|
||||||
final CreateTaskCommentTaskCommentInsert taskComment_insert;
|
|
||||||
CreateTaskCommentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
taskComment_insert = CreateTaskCommentTaskCommentInsert.fromJson(json['taskComment_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskCommentData otherTyped = other as CreateTaskCommentData;
|
|
||||||
return taskComment_insert == otherTyped.taskComment_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => taskComment_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['taskComment_insert'] = taskComment_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskCommentData({
|
|
||||||
required this.taskComment_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaskCommentVariables {
|
|
||||||
final String taskId;
|
|
||||||
final String teamMemberId;
|
|
||||||
final String comment;
|
|
||||||
late final Optional<bool>isSystem;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTaskCommentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
taskId = nativeFromJson<String>(json['taskId']),
|
|
||||||
teamMemberId = nativeFromJson<String>(json['teamMemberId']),
|
|
||||||
comment = nativeFromJson<String>(json['comment']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
isSystem = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isSystem.value = json['isSystem'] == null ? null : nativeFromJson<bool>(json['isSystem']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaskCommentVariables otherTyped = other as CreateTaskCommentVariables;
|
|
||||||
return taskId == otherTyped.taskId &&
|
|
||||||
teamMemberId == otherTyped.teamMemberId &&
|
|
||||||
comment == otherTyped.comment &&
|
|
||||||
isSystem == otherTyped.isSystem;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([taskId.hashCode, teamMemberId.hashCode, comment.hashCode, isSystem.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['taskId'] = nativeToJson<String>(taskId);
|
|
||||||
json['teamMemberId'] = nativeToJson<String>(teamMemberId);
|
|
||||||
json['comment'] = nativeToJson<String>(comment);
|
|
||||||
if(isSystem.state == OptionalState.set) {
|
|
||||||
json['isSystem'] = isSystem.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaskCommentVariables({
|
|
||||||
required this.taskId,
|
|
||||||
required this.teamMemberId,
|
|
||||||
required this.comment,
|
|
||||||
required this.isSystem,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,546 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTaxFormVariablesBuilder {
|
|
||||||
TaxFormType formType;
|
|
||||||
String firstName;
|
|
||||||
String lastName;
|
|
||||||
Optional<String> _mInitial = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _oLastName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer);
|
|
||||||
int socialSN;
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String address;
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _apt = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _zipCode = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<MaritalStatus> _marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<bool> _multipleJob = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _childrens = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _otherDeps = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _totalCredits = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _otherInconme = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _deductions = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _extraWithholding = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<CitizenshipStatus> _citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<String> _uscis = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _passportNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _countryIssue = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _signature = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
TaxFormStatus status;
|
|
||||||
String staffId;
|
|
||||||
Optional<String> _createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder mInitial(String? t) {
|
|
||||||
_mInitial.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder oLastName(String? t) {
|
|
||||||
_oLastName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder dob(Timestamp? t) {
|
|
||||||
_dob.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder phone(String? t) {
|
|
||||||
_phone.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder apt(String? t) {
|
|
||||||
_apt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder state(String? t) {
|
|
||||||
_state.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder zipCode(String? t) {
|
|
||||||
_zipCode.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder marital(MaritalStatus? t) {
|
|
||||||
_marital.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder multipleJob(bool? t) {
|
|
||||||
_multipleJob.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder childrens(int? t) {
|
|
||||||
_childrens.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder otherDeps(int? t) {
|
|
||||||
_otherDeps.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder totalCredits(double? t) {
|
|
||||||
_totalCredits.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder otherInconme(double? t) {
|
|
||||||
_otherInconme.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder deductions(double? t) {
|
|
||||||
_deductions.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder extraWithholding(double? t) {
|
|
||||||
_extraWithholding.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) {
|
|
||||||
_citizen.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder uscis(String? t) {
|
|
||||||
_uscis.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder passportNumber(String? t) {
|
|
||||||
_passportNumber.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder countryIssue(String? t) {
|
|
||||||
_countryIssue.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) {
|
|
||||||
_prepartorOrTranslator.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder signature(String? t) {
|
|
||||||
_signature.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder date(Timestamp? t) {
|
|
||||||
_date.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTaxFormVariablesBuilder createdBy(String? t) {
|
|
||||||
_createdBy.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.firstName,required this.lastName,required this.socialSN,required this.address,required this.status,required this.staffId,});
|
|
||||||
Deserializer<CreateTaxFormData> dataDeserializer = (dynamic json) => CreateTaxFormData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTaxFormVariables> varsSerializer = (CreateTaxFormVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTaxFormData, CreateTaxFormVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTaxFormData, CreateTaxFormVariables> ref() {
|
|
||||||
CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,firstName: firstName,lastName: lastName,mInitial: _mInitial,oLastName: _oLastName,dob: _dob,socialSN: socialSN,email: _email,phone: _phone,address: address,city: _city,apt: _apt,state: _state,zipCode: _zipCode,marital: _marital,multipleJob: _multipleJob,childrens: _childrens,otherDeps: _otherDeps,totalCredits: _totalCredits,otherInconme: _otherInconme,deductions: _deductions,extraWithholding: _extraWithholding,citizen: _citizen,uscis: _uscis,passportNumber: _passportNumber,countryIssue: _countryIssue,prepartorOrTranslator: _prepartorOrTranslator,signature: _signature,date: _date,status: status,staffId: staffId,createdBy: _createdBy,);
|
|
||||||
return _dataConnect.mutation("createTaxForm", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaxFormTaxFormInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTaxFormTaxFormInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaxFormTaxFormInsert otherTyped = other as CreateTaxFormTaxFormInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaxFormTaxFormInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaxFormData {
|
|
||||||
final CreateTaxFormTaxFormInsert taxForm_insert;
|
|
||||||
CreateTaxFormData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
taxForm_insert = CreateTaxFormTaxFormInsert.fromJson(json['taxForm_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaxFormData otherTyped = other as CreateTaxFormData;
|
|
||||||
return taxForm_insert == otherTyped.taxForm_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => taxForm_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['taxForm_insert'] = taxForm_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaxFormData({
|
|
||||||
required this.taxForm_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTaxFormVariables {
|
|
||||||
final TaxFormType formType;
|
|
||||||
final String firstName;
|
|
||||||
final String lastName;
|
|
||||||
late final Optional<String>mInitial;
|
|
||||||
late final Optional<String>oLastName;
|
|
||||||
late final Optional<Timestamp>dob;
|
|
||||||
final int socialSN;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>phone;
|
|
||||||
final String address;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<String>apt;
|
|
||||||
late final Optional<String>state;
|
|
||||||
late final Optional<String>zipCode;
|
|
||||||
late final Optional<MaritalStatus>marital;
|
|
||||||
late final Optional<bool>multipleJob;
|
|
||||||
late final Optional<int>childrens;
|
|
||||||
late final Optional<int>otherDeps;
|
|
||||||
late final Optional<double>totalCredits;
|
|
||||||
late final Optional<double>otherInconme;
|
|
||||||
late final Optional<double>deductions;
|
|
||||||
late final Optional<double>extraWithholding;
|
|
||||||
late final Optional<CitizenshipStatus>citizen;
|
|
||||||
late final Optional<String>uscis;
|
|
||||||
late final Optional<String>passportNumber;
|
|
||||||
late final Optional<String>countryIssue;
|
|
||||||
late final Optional<bool>prepartorOrTranslator;
|
|
||||||
late final Optional<String>signature;
|
|
||||||
late final Optional<Timestamp>date;
|
|
||||||
final TaxFormStatus status;
|
|
||||||
final String staffId;
|
|
||||||
late final Optional<String>createdBy;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTaxFormVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
formType = TaxFormType.values.byName(json['formType']),
|
|
||||||
firstName = nativeFromJson<String>(json['firstName']),
|
|
||||||
lastName = nativeFromJson<String>(json['lastName']),
|
|
||||||
socialSN = nativeFromJson<int>(json['socialSN']),
|
|
||||||
address = nativeFromJson<String>(json['address']),
|
|
||||||
status = TaxFormStatus.values.byName(json['status']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mInitial = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
mInitial.value = json['mInitial'] == null ? null : nativeFromJson<String>(json['mInitial']);
|
|
||||||
|
|
||||||
|
|
||||||
oLastName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
oLastName.value = json['oLastName'] == null ? null : nativeFromJson<String>(json['oLastName']);
|
|
||||||
|
|
||||||
|
|
||||||
dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer);
|
|
||||||
dob.value = json['dob'] == null ? null : Timestamp.fromJson(json['dob']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
phone.value = json['phone'] == null ? null : nativeFromJson<String>(json['phone']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
apt = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
apt.value = json['apt'] == null ? null : nativeFromJson<String>(json['apt']);
|
|
||||||
|
|
||||||
|
|
||||||
state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
|
|
||||||
|
|
||||||
|
|
||||||
zipCode = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
zipCode.value = json['zipCode'] == null ? null : nativeFromJson<String>(json['zipCode']);
|
|
||||||
|
|
||||||
|
|
||||||
marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer);
|
|
||||||
marital.value = json['marital'] == null ? null : MaritalStatus.values.byName(json['marital']);
|
|
||||||
|
|
||||||
|
|
||||||
multipleJob = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
multipleJob.value = json['multipleJob'] == null ? null : nativeFromJson<bool>(json['multipleJob']);
|
|
||||||
|
|
||||||
|
|
||||||
childrens = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
childrens.value = json['childrens'] == null ? null : nativeFromJson<int>(json['childrens']);
|
|
||||||
|
|
||||||
|
|
||||||
otherDeps = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
otherDeps.value = json['otherDeps'] == null ? null : nativeFromJson<int>(json['otherDeps']);
|
|
||||||
|
|
||||||
|
|
||||||
totalCredits = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalCredits.value = json['totalCredits'] == null ? null : nativeFromJson<double>(json['totalCredits']);
|
|
||||||
|
|
||||||
|
|
||||||
otherInconme = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
otherInconme.value = json['otherInconme'] == null ? null : nativeFromJson<double>(json['otherInconme']);
|
|
||||||
|
|
||||||
|
|
||||||
deductions = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
deductions.value = json['deductions'] == null ? null : nativeFromJson<double>(json['deductions']);
|
|
||||||
|
|
||||||
|
|
||||||
extraWithholding = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
extraWithholding.value = json['extraWithholding'] == null ? null : nativeFromJson<double>(json['extraWithholding']);
|
|
||||||
|
|
||||||
|
|
||||||
citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer);
|
|
||||||
citizen.value = json['citizen'] == null ? null : CitizenshipStatus.values.byName(json['citizen']);
|
|
||||||
|
|
||||||
|
|
||||||
uscis = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
uscis.value = json['uscis'] == null ? null : nativeFromJson<String>(json['uscis']);
|
|
||||||
|
|
||||||
|
|
||||||
passportNumber = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
passportNumber.value = json['passportNumber'] == null ? null : nativeFromJson<String>(json['passportNumber']);
|
|
||||||
|
|
||||||
|
|
||||||
countryIssue = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
countryIssue.value = json['countryIssue'] == null ? null : nativeFromJson<String>(json['countryIssue']);
|
|
||||||
|
|
||||||
|
|
||||||
prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
prepartorOrTranslator.value = json['prepartorOrTranslator'] == null ? null : nativeFromJson<bool>(json['prepartorOrTranslator']);
|
|
||||||
|
|
||||||
|
|
||||||
signature = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
signature.value = json['signature'] == null ? null : nativeFromJson<String>(json['signature']);
|
|
||||||
|
|
||||||
|
|
||||||
date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
|
|
||||||
date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
createdBy.value = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTaxFormVariables otherTyped = other as CreateTaxFormVariables;
|
|
||||||
return formType == otherTyped.formType &&
|
|
||||||
firstName == otherTyped.firstName &&
|
|
||||||
lastName == otherTyped.lastName &&
|
|
||||||
mInitial == otherTyped.mInitial &&
|
|
||||||
oLastName == otherTyped.oLastName &&
|
|
||||||
dob == otherTyped.dob &&
|
|
||||||
socialSN == otherTyped.socialSN &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
phone == otherTyped.phone &&
|
|
||||||
address == otherTyped.address &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
apt == otherTyped.apt &&
|
|
||||||
state == otherTyped.state &&
|
|
||||||
zipCode == otherTyped.zipCode &&
|
|
||||||
marital == otherTyped.marital &&
|
|
||||||
multipleJob == otherTyped.multipleJob &&
|
|
||||||
childrens == otherTyped.childrens &&
|
|
||||||
otherDeps == otherTyped.otherDeps &&
|
|
||||||
totalCredits == otherTyped.totalCredits &&
|
|
||||||
otherInconme == otherTyped.otherInconme &&
|
|
||||||
deductions == otherTyped.deductions &&
|
|
||||||
extraWithholding == otherTyped.extraWithholding &&
|
|
||||||
citizen == otherTyped.citizen &&
|
|
||||||
uscis == otherTyped.uscis &&
|
|
||||||
passportNumber == otherTyped.passportNumber &&
|
|
||||||
countryIssue == otherTyped.countryIssue &&
|
|
||||||
prepartorOrTranslator == otherTyped.prepartorOrTranslator &&
|
|
||||||
signature == otherTyped.signature &&
|
|
||||||
date == otherTyped.date &&
|
|
||||||
status == otherTyped.status &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
createdBy == otherTyped.createdBy;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdBy.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['formType'] =
|
|
||||||
formType.name
|
|
||||||
;
|
|
||||||
json['firstName'] = nativeToJson<String>(firstName);
|
|
||||||
json['lastName'] = nativeToJson<String>(lastName);
|
|
||||||
if(mInitial.state == OptionalState.set) {
|
|
||||||
json['mInitial'] = mInitial.toJson();
|
|
||||||
}
|
|
||||||
if(oLastName.state == OptionalState.set) {
|
|
||||||
json['oLastName'] = oLastName.toJson();
|
|
||||||
}
|
|
||||||
if(dob.state == OptionalState.set) {
|
|
||||||
json['dob'] = dob.toJson();
|
|
||||||
}
|
|
||||||
json['socialSN'] = nativeToJson<int>(socialSN);
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(phone.state == OptionalState.set) {
|
|
||||||
json['phone'] = phone.toJson();
|
|
||||||
}
|
|
||||||
json['address'] = nativeToJson<String>(address);
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(apt.state == OptionalState.set) {
|
|
||||||
json['apt'] = apt.toJson();
|
|
||||||
}
|
|
||||||
if(state.state == OptionalState.set) {
|
|
||||||
json['state'] = state.toJson();
|
|
||||||
}
|
|
||||||
if(zipCode.state == OptionalState.set) {
|
|
||||||
json['zipCode'] = zipCode.toJson();
|
|
||||||
}
|
|
||||||
if(marital.state == OptionalState.set) {
|
|
||||||
json['marital'] = marital.toJson();
|
|
||||||
}
|
|
||||||
if(multipleJob.state == OptionalState.set) {
|
|
||||||
json['multipleJob'] = multipleJob.toJson();
|
|
||||||
}
|
|
||||||
if(childrens.state == OptionalState.set) {
|
|
||||||
json['childrens'] = childrens.toJson();
|
|
||||||
}
|
|
||||||
if(otherDeps.state == OptionalState.set) {
|
|
||||||
json['otherDeps'] = otherDeps.toJson();
|
|
||||||
}
|
|
||||||
if(totalCredits.state == OptionalState.set) {
|
|
||||||
json['totalCredits'] = totalCredits.toJson();
|
|
||||||
}
|
|
||||||
if(otherInconme.state == OptionalState.set) {
|
|
||||||
json['otherInconme'] = otherInconme.toJson();
|
|
||||||
}
|
|
||||||
if(deductions.state == OptionalState.set) {
|
|
||||||
json['deductions'] = deductions.toJson();
|
|
||||||
}
|
|
||||||
if(extraWithholding.state == OptionalState.set) {
|
|
||||||
json['extraWithholding'] = extraWithholding.toJson();
|
|
||||||
}
|
|
||||||
if(citizen.state == OptionalState.set) {
|
|
||||||
json['citizen'] = citizen.toJson();
|
|
||||||
}
|
|
||||||
if(uscis.state == OptionalState.set) {
|
|
||||||
json['uscis'] = uscis.toJson();
|
|
||||||
}
|
|
||||||
if(passportNumber.state == OptionalState.set) {
|
|
||||||
json['passportNumber'] = passportNumber.toJson();
|
|
||||||
}
|
|
||||||
if(countryIssue.state == OptionalState.set) {
|
|
||||||
json['countryIssue'] = countryIssue.toJson();
|
|
||||||
}
|
|
||||||
if(prepartorOrTranslator.state == OptionalState.set) {
|
|
||||||
json['prepartorOrTranslator'] = prepartorOrTranslator.toJson();
|
|
||||||
}
|
|
||||||
if(signature.state == OptionalState.set) {
|
|
||||||
json['signature'] = signature.toJson();
|
|
||||||
}
|
|
||||||
if(date.state == OptionalState.set) {
|
|
||||||
json['date'] = date.toJson();
|
|
||||||
}
|
|
||||||
json['status'] =
|
|
||||||
status.name
|
|
||||||
;
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
if(createdBy.state == OptionalState.set) {
|
|
||||||
json['createdBy'] = createdBy.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTaxFormVariables({
|
|
||||||
required this.formType,
|
|
||||||
required this.firstName,
|
|
||||||
required this.lastName,
|
|
||||||
required this.mInitial,
|
|
||||||
required this.oLastName,
|
|
||||||
required this.dob,
|
|
||||||
required this.socialSN,
|
|
||||||
required this.email,
|
|
||||||
required this.phone,
|
|
||||||
required this.address,
|
|
||||||
required this.city,
|
|
||||||
required this.apt,
|
|
||||||
required this.state,
|
|
||||||
required this.zipCode,
|
|
||||||
required this.marital,
|
|
||||||
required this.multipleJob,
|
|
||||||
required this.childrens,
|
|
||||||
required this.otherDeps,
|
|
||||||
required this.totalCredits,
|
|
||||||
required this.otherInconme,
|
|
||||||
required this.deductions,
|
|
||||||
required this.extraWithholding,
|
|
||||||
required this.citizen,
|
|
||||||
required this.uscis,
|
|
||||||
required this.passportNumber,
|
|
||||||
required this.countryIssue,
|
|
||||||
required this.prepartorOrTranslator,
|
|
||||||
required this.signature,
|
|
||||||
required this.date,
|
|
||||||
required this.status,
|
|
||||||
required this.staffId,
|
|
||||||
required this.createdBy,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,296 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTeamVariablesBuilder {
|
|
||||||
String teamName;
|
|
||||||
String ownerId;
|
|
||||||
String ownerName;
|
|
||||||
String ownerRole;
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _companyLogo = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _totalMembers = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _activeMembers = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _totalHubs = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _departments = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<int> _favoriteStaffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _blockedStaffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _favoriteStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
Optional<AnyValue> _blockedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTeamVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder companyLogo(String? t) {
|
|
||||||
_companyLogo.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder totalMembers(int? t) {
|
|
||||||
_totalMembers.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder activeMembers(int? t) {
|
|
||||||
_activeMembers.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder totalHubs(int? t) {
|
|
||||||
_totalHubs.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder departments(AnyValue? t) {
|
|
||||||
_departments.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder favoriteStaffCount(int? t) {
|
|
||||||
_favoriteStaffCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder blockedStaffCount(int? t) {
|
|
||||||
_blockedStaffCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) {
|
|
||||||
_favoriteStaff.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamVariablesBuilder blockedStaff(AnyValue? t) {
|
|
||||||
_blockedStaff.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamVariablesBuilder(this._dataConnect, {required this.teamName,required this.ownerId,required this.ownerName,required this.ownerRole,});
|
|
||||||
Deserializer<CreateTeamData> dataDeserializer = (dynamic json) => CreateTeamData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTeamVariables> varsSerializer = (CreateTeamVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTeamData, CreateTeamVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTeamData, CreateTeamVariables> ref() {
|
|
||||||
CreateTeamVariables vars= CreateTeamVariables(teamName: teamName,ownerId: ownerId,ownerName: ownerName,ownerRole: ownerRole,email: _email,companyLogo: _companyLogo,totalMembers: _totalMembers,activeMembers: _activeMembers,totalHubs: _totalHubs,departments: _departments,favoriteStaffCount: _favoriteStaffCount,blockedStaffCount: _blockedStaffCount,favoriteStaff: _favoriteStaff,blockedStaff: _blockedStaff,);
|
|
||||||
return _dataConnect.mutation("createTeam", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamTeamInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTeamTeamInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamTeamInsert otherTyped = other as CreateTeamTeamInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamTeamInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamData {
|
|
||||||
final CreateTeamTeamInsert team_insert;
|
|
||||||
CreateTeamData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
team_insert = CreateTeamTeamInsert.fromJson(json['team_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamData otherTyped = other as CreateTeamData;
|
|
||||||
return team_insert == otherTyped.team_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => team_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['team_insert'] = team_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamData({
|
|
||||||
required this.team_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamVariables {
|
|
||||||
final String teamName;
|
|
||||||
final String ownerId;
|
|
||||||
final String ownerName;
|
|
||||||
final String ownerRole;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>companyLogo;
|
|
||||||
late final Optional<int>totalMembers;
|
|
||||||
late final Optional<int>activeMembers;
|
|
||||||
late final Optional<int>totalHubs;
|
|
||||||
late final Optional<AnyValue>departments;
|
|
||||||
late final Optional<int>favoriteStaffCount;
|
|
||||||
late final Optional<int>blockedStaffCount;
|
|
||||||
late final Optional<AnyValue>favoriteStaff;
|
|
||||||
late final Optional<AnyValue>blockedStaff;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTeamVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
teamName = nativeFromJson<String>(json['teamName']),
|
|
||||||
ownerId = nativeFromJson<String>(json['ownerId']),
|
|
||||||
ownerName = nativeFromJson<String>(json['ownerName']),
|
|
||||||
ownerRole = nativeFromJson<String>(json['ownerRole']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
companyLogo = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
companyLogo.value = json['companyLogo'] == null ? null : nativeFromJson<String>(json['companyLogo']);
|
|
||||||
|
|
||||||
|
|
||||||
totalMembers = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalMembers.value = json['totalMembers'] == null ? null : nativeFromJson<int>(json['totalMembers']);
|
|
||||||
|
|
||||||
|
|
||||||
activeMembers = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
activeMembers.value = json['activeMembers'] == null ? null : nativeFromJson<int>(json['activeMembers']);
|
|
||||||
|
|
||||||
|
|
||||||
totalHubs = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
totalHubs.value = json['totalHubs'] == null ? null : nativeFromJson<int>(json['totalHubs']);
|
|
||||||
|
|
||||||
|
|
||||||
departments = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
departments.value = json['departments'] == null ? null : AnyValue.fromJson(json['departments']);
|
|
||||||
|
|
||||||
|
|
||||||
favoriteStaffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
favoriteStaffCount.value = json['favoriteStaffCount'] == null ? null : nativeFromJson<int>(json['favoriteStaffCount']);
|
|
||||||
|
|
||||||
|
|
||||||
blockedStaffCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
blockedStaffCount.value = json['blockedStaffCount'] == null ? null : nativeFromJson<int>(json['blockedStaffCount']);
|
|
||||||
|
|
||||||
|
|
||||||
favoriteStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
favoriteStaff.value = json['favoriteStaff'] == null ? null : AnyValue.fromJson(json['favoriteStaff']);
|
|
||||||
|
|
||||||
|
|
||||||
blockedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
blockedStaff.value = json['blockedStaff'] == null ? null : AnyValue.fromJson(json['blockedStaff']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamVariables otherTyped = other as CreateTeamVariables;
|
|
||||||
return teamName == otherTyped.teamName &&
|
|
||||||
ownerId == otherTyped.ownerId &&
|
|
||||||
ownerName == otherTyped.ownerName &&
|
|
||||||
ownerRole == otherTyped.ownerRole &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
companyLogo == otherTyped.companyLogo &&
|
|
||||||
totalMembers == otherTyped.totalMembers &&
|
|
||||||
activeMembers == otherTyped.activeMembers &&
|
|
||||||
totalHubs == otherTyped.totalHubs &&
|
|
||||||
departments == otherTyped.departments &&
|
|
||||||
favoriteStaffCount == otherTyped.favoriteStaffCount &&
|
|
||||||
blockedStaffCount == otherTyped.blockedStaffCount &&
|
|
||||||
favoriteStaff == otherTyped.favoriteStaff &&
|
|
||||||
blockedStaff == otherTyped.blockedStaff;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamName.hashCode, ownerId.hashCode, ownerName.hashCode, ownerRole.hashCode, email.hashCode, companyLogo.hashCode, totalMembers.hashCode, activeMembers.hashCode, totalHubs.hashCode, departments.hashCode, favoriteStaffCount.hashCode, blockedStaffCount.hashCode, favoriteStaff.hashCode, blockedStaff.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamName'] = nativeToJson<String>(teamName);
|
|
||||||
json['ownerId'] = nativeToJson<String>(ownerId);
|
|
||||||
json['ownerName'] = nativeToJson<String>(ownerName);
|
|
||||||
json['ownerRole'] = nativeToJson<String>(ownerRole);
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(companyLogo.state == OptionalState.set) {
|
|
||||||
json['companyLogo'] = companyLogo.toJson();
|
|
||||||
}
|
|
||||||
if(totalMembers.state == OptionalState.set) {
|
|
||||||
json['totalMembers'] = totalMembers.toJson();
|
|
||||||
}
|
|
||||||
if(activeMembers.state == OptionalState.set) {
|
|
||||||
json['activeMembers'] = activeMembers.toJson();
|
|
||||||
}
|
|
||||||
if(totalHubs.state == OptionalState.set) {
|
|
||||||
json['totalHubs'] = totalHubs.toJson();
|
|
||||||
}
|
|
||||||
if(departments.state == OptionalState.set) {
|
|
||||||
json['departments'] = departments.toJson();
|
|
||||||
}
|
|
||||||
if(favoriteStaffCount.state == OptionalState.set) {
|
|
||||||
json['favoriteStaffCount'] = favoriteStaffCount.toJson();
|
|
||||||
}
|
|
||||||
if(blockedStaffCount.state == OptionalState.set) {
|
|
||||||
json['blockedStaffCount'] = blockedStaffCount.toJson();
|
|
||||||
}
|
|
||||||
if(favoriteStaff.state == OptionalState.set) {
|
|
||||||
json['favoriteStaff'] = favoriteStaff.toJson();
|
|
||||||
}
|
|
||||||
if(blockedStaff.state == OptionalState.set) {
|
|
||||||
json['blockedStaff'] = blockedStaff.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamVariables({
|
|
||||||
required this.teamName,
|
|
||||||
required this.ownerId,
|
|
||||||
required this.ownerName,
|
|
||||||
required this.ownerRole,
|
|
||||||
required this.email,
|
|
||||||
required this.companyLogo,
|
|
||||||
required this.totalMembers,
|
|
||||||
required this.activeMembers,
|
|
||||||
required this.totalHubs,
|
|
||||||
required this.departments,
|
|
||||||
required this.favoriteStaffCount,
|
|
||||||
required this.blockedStaffCount,
|
|
||||||
required this.favoriteStaff,
|
|
||||||
required this.blockedStaff,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,304 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTeamHubVariablesBuilder {
|
|
||||||
String teamId;
|
|
||||||
String hubName;
|
|
||||||
String address;
|
|
||||||
Optional<String> _placeId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _latitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _longitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _street = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _country = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _zipCode = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<AnyValue> _departments = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTeamHubVariablesBuilder placeId(String? t) {
|
|
||||||
_placeId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder latitude(double? t) {
|
|
||||||
_latitude.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder longitude(double? t) {
|
|
||||||
_longitude.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder state(String? t) {
|
|
||||||
_state.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder street(String? t) {
|
|
||||||
_street.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder country(String? t) {
|
|
||||||
_country.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder zipCode(String? t) {
|
|
||||||
_zipCode.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder managerName(String? t) {
|
|
||||||
_managerName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder isActive(bool? t) {
|
|
||||||
_isActive.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamHubVariablesBuilder departments(AnyValue? t) {
|
|
||||||
_departments.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHubVariablesBuilder(this._dataConnect, {required this.teamId,required this.hubName,required this.address,});
|
|
||||||
Deserializer<CreateTeamHubData> dataDeserializer = (dynamic json) => CreateTeamHubData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTeamHubVariables> varsSerializer = (CreateTeamHubVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTeamHubData, CreateTeamHubVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTeamHubData, CreateTeamHubVariables> ref() {
|
|
||||||
CreateTeamHubVariables vars= CreateTeamHubVariables(teamId: teamId,hubName: hubName,address: address,placeId: _placeId,latitude: _latitude,longitude: _longitude,city: _city,state: _state,street: _street,country: _country,zipCode: _zipCode,managerName: _managerName,isActive: _isActive,departments: _departments,);
|
|
||||||
return _dataConnect.mutation("createTeamHub", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHubTeamHubInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTeamHubTeamHubInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHubTeamHubInsert otherTyped = other as CreateTeamHubTeamHubInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHubTeamHubInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHubData {
|
|
||||||
final CreateTeamHubTeamHubInsert teamHub_insert;
|
|
||||||
CreateTeamHubData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamHub_insert = CreateTeamHubTeamHubInsert.fromJson(json['teamHub_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHubData otherTyped = other as CreateTeamHubData;
|
|
||||||
return teamHub_insert == otherTyped.teamHub_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamHub_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamHub_insert'] = teamHub_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHubData({
|
|
||||||
required this.teamHub_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHubVariables {
|
|
||||||
final String teamId;
|
|
||||||
final String hubName;
|
|
||||||
final String address;
|
|
||||||
late final Optional<String>placeId;
|
|
||||||
late final Optional<double>latitude;
|
|
||||||
late final Optional<double>longitude;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<String>state;
|
|
||||||
late final Optional<String>street;
|
|
||||||
late final Optional<String>country;
|
|
||||||
late final Optional<String>zipCode;
|
|
||||||
late final Optional<String>managerName;
|
|
||||||
late final Optional<bool>isActive;
|
|
||||||
late final Optional<AnyValue>departments;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTeamHubVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
teamId = nativeFromJson<String>(json['teamId']),
|
|
||||||
hubName = nativeFromJson<String>(json['hubName']),
|
|
||||||
address = nativeFromJson<String>(json['address']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
placeId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
placeId.value = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']);
|
|
||||||
|
|
||||||
|
|
||||||
latitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
latitude.value = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']);
|
|
||||||
|
|
||||||
|
|
||||||
longitude = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
longitude.value = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']);
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
|
|
||||||
|
|
||||||
|
|
||||||
street = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
street.value = json['street'] == null ? null : nativeFromJson<String>(json['street']);
|
|
||||||
|
|
||||||
|
|
||||||
country = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
country.value = json['country'] == null ? null : nativeFromJson<String>(json['country']);
|
|
||||||
|
|
||||||
|
|
||||||
zipCode = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
zipCode.value = json['zipCode'] == null ? null : nativeFromJson<String>(json['zipCode']);
|
|
||||||
|
|
||||||
|
|
||||||
managerName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
managerName.value = json['managerName'] == null ? null : nativeFromJson<String>(json['managerName']);
|
|
||||||
|
|
||||||
|
|
||||||
isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isActive.value = json['isActive'] == null ? null : nativeFromJson<bool>(json['isActive']);
|
|
||||||
|
|
||||||
|
|
||||||
departments = Optional.optional(AnyValue.fromJson, defaultSerializer);
|
|
||||||
departments.value = json['departments'] == null ? null : AnyValue.fromJson(json['departments']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHubVariables otherTyped = other as CreateTeamHubVariables;
|
|
||||||
return teamId == otherTyped.teamId &&
|
|
||||||
hubName == otherTyped.hubName &&
|
|
||||||
address == otherTyped.address &&
|
|
||||||
placeId == otherTyped.placeId &&
|
|
||||||
latitude == otherTyped.latitude &&
|
|
||||||
longitude == otherTyped.longitude &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
state == otherTyped.state &&
|
|
||||||
street == otherTyped.street &&
|
|
||||||
country == otherTyped.country &&
|
|
||||||
zipCode == otherTyped.zipCode &&
|
|
||||||
managerName == otherTyped.managerName &&
|
|
||||||
isActive == otherTyped.isActive &&
|
|
||||||
departments == otherTyped.departments;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamId'] = nativeToJson<String>(teamId);
|
|
||||||
json['hubName'] = nativeToJson<String>(hubName);
|
|
||||||
json['address'] = nativeToJson<String>(address);
|
|
||||||
if(placeId.state == OptionalState.set) {
|
|
||||||
json['placeId'] = placeId.toJson();
|
|
||||||
}
|
|
||||||
if(latitude.state == OptionalState.set) {
|
|
||||||
json['latitude'] = latitude.toJson();
|
|
||||||
}
|
|
||||||
if(longitude.state == OptionalState.set) {
|
|
||||||
json['longitude'] = longitude.toJson();
|
|
||||||
}
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(state.state == OptionalState.set) {
|
|
||||||
json['state'] = state.toJson();
|
|
||||||
}
|
|
||||||
if(street.state == OptionalState.set) {
|
|
||||||
json['street'] = street.toJson();
|
|
||||||
}
|
|
||||||
if(country.state == OptionalState.set) {
|
|
||||||
json['country'] = country.toJson();
|
|
||||||
}
|
|
||||||
if(zipCode.state == OptionalState.set) {
|
|
||||||
json['zipCode'] = zipCode.toJson();
|
|
||||||
}
|
|
||||||
if(managerName.state == OptionalState.set) {
|
|
||||||
json['managerName'] = managerName.toJson();
|
|
||||||
}
|
|
||||||
if(isActive.state == OptionalState.set) {
|
|
||||||
json['isActive'] = isActive.toJson();
|
|
||||||
}
|
|
||||||
if(departments.state == OptionalState.set) {
|
|
||||||
json['departments'] = departments.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHubVariables({
|
|
||||||
required this.teamId,
|
|
||||||
required this.hubName,
|
|
||||||
required this.address,
|
|
||||||
required this.placeId,
|
|
||||||
required this.latitude,
|
|
||||||
required this.longitude,
|
|
||||||
required this.city,
|
|
||||||
required this.state,
|
|
||||||
required this.street,
|
|
||||||
required this.country,
|
|
||||||
required this.zipCode,
|
|
||||||
required this.managerName,
|
|
||||||
required this.isActive,
|
|
||||||
required this.departments,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTeamHudDepartmentVariablesBuilder {
|
|
||||||
String name;
|
|
||||||
Optional<String> _costCenter = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String teamHubId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) {
|
|
||||||
_costCenter.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHudDepartmentVariablesBuilder(this._dataConnect, {required this.name,required this.teamHubId,});
|
|
||||||
Deserializer<CreateTeamHudDepartmentData> dataDeserializer = (dynamic json) => CreateTeamHudDepartmentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTeamHudDepartmentVariables> varsSerializer = (CreateTeamHudDepartmentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTeamHudDepartmentData, CreateTeamHudDepartmentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTeamHudDepartmentData, CreateTeamHudDepartmentVariables> ref() {
|
|
||||||
CreateTeamHudDepartmentVariables vars= CreateTeamHudDepartmentVariables(name: name,costCenter: _costCenter,teamHubId: teamHubId,);
|
|
||||||
return _dataConnect.mutation("createTeamHudDepartment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHudDepartmentTeamHudDepartmentInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTeamHudDepartmentTeamHudDepartmentInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHudDepartmentTeamHudDepartmentInsert otherTyped = other as CreateTeamHudDepartmentTeamHudDepartmentInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHudDepartmentTeamHudDepartmentInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHudDepartmentData {
|
|
||||||
final CreateTeamHudDepartmentTeamHudDepartmentInsert teamHudDepartment_insert;
|
|
||||||
CreateTeamHudDepartmentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamHudDepartment_insert = CreateTeamHudDepartmentTeamHudDepartmentInsert.fromJson(json['teamHudDepartment_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHudDepartmentData otherTyped = other as CreateTeamHudDepartmentData;
|
|
||||||
return teamHudDepartment_insert == otherTyped.teamHudDepartment_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamHudDepartment_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamHudDepartment_insert'] = teamHudDepartment_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHudDepartmentData({
|
|
||||||
required this.teamHudDepartment_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamHudDepartmentVariables {
|
|
||||||
final String name;
|
|
||||||
late final Optional<String>costCenter;
|
|
||||||
final String teamHubId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTeamHudDepartmentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
name = nativeFromJson<String>(json['name']),
|
|
||||||
teamHubId = nativeFromJson<String>(json['teamHubId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
costCenter = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
costCenter.value = json['costCenter'] == null ? null : nativeFromJson<String>(json['costCenter']);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamHudDepartmentVariables otherTyped = other as CreateTeamHudDepartmentVariables;
|
|
||||||
return name == otherTyped.name &&
|
|
||||||
costCenter == otherTyped.costCenter &&
|
|
||||||
teamHubId == otherTyped.teamHubId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([name.hashCode, costCenter.hashCode, teamHubId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['name'] = nativeToJson<String>(name);
|
|
||||||
if(costCenter.state == OptionalState.set) {
|
|
||||||
json['costCenter'] = costCenter.toJson();
|
|
||||||
}
|
|
||||||
json['teamHubId'] = nativeToJson<String>(teamHubId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamHudDepartmentVariables({
|
|
||||||
required this.name,
|
|
||||||
required this.costCenter,
|
|
||||||
required this.teamHubId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,216 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateTeamMemberVariablesBuilder {
|
|
||||||
String teamId;
|
|
||||||
TeamMemberRole role;
|
|
||||||
Optional<String> _title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _department = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _teamHubId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
String userId;
|
|
||||||
Optional<TeamMemberInviteStatus> _inviteStatus = Optional.optional((data) => TeamMemberInviteStatus.values.byName(data), enumSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateTeamMemberVariablesBuilder title(String? t) {
|
|
||||||
_title.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamMemberVariablesBuilder department(String? t) {
|
|
||||||
_department.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamMemberVariablesBuilder teamHubId(String? t) {
|
|
||||||
_teamHubId.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamMemberVariablesBuilder isActive(bool? t) {
|
|
||||||
_isActive.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) {
|
|
||||||
_inviteStatus.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamMemberVariablesBuilder(this._dataConnect, {required this.teamId,required this.role,required this.userId,});
|
|
||||||
Deserializer<CreateTeamMemberData> dataDeserializer = (dynamic json) => CreateTeamMemberData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateTeamMemberVariables> varsSerializer = (CreateTeamMemberVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateTeamMemberData, CreateTeamMemberVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateTeamMemberData, CreateTeamMemberVariables> ref() {
|
|
||||||
CreateTeamMemberVariables vars= CreateTeamMemberVariables(teamId: teamId,role: role,title: _title,department: _department,teamHubId: _teamHubId,isActive: _isActive,userId: userId,inviteStatus: _inviteStatus,);
|
|
||||||
return _dataConnect.mutation("createTeamMember", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamMemberTeamMemberInsert {
|
|
||||||
final String id;
|
|
||||||
CreateTeamMemberTeamMemberInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamMemberTeamMemberInsert otherTyped = other as CreateTeamMemberTeamMemberInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamMemberTeamMemberInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamMemberData {
|
|
||||||
final CreateTeamMemberTeamMemberInsert teamMember_insert;
|
|
||||||
CreateTeamMemberData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMember_insert = CreateTeamMemberTeamMemberInsert.fromJson(json['teamMember_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamMemberData otherTyped = other as CreateTeamMemberData;
|
|
||||||
return teamMember_insert == otherTyped.teamMember_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamMember_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMember_insert'] = teamMember_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamMemberData({
|
|
||||||
required this.teamMember_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateTeamMemberVariables {
|
|
||||||
final String teamId;
|
|
||||||
final TeamMemberRole role;
|
|
||||||
late final Optional<String>title;
|
|
||||||
late final Optional<String>department;
|
|
||||||
late final Optional<String>teamHubId;
|
|
||||||
late final Optional<bool>isActive;
|
|
||||||
final String userId;
|
|
||||||
late final Optional<TeamMemberInviteStatus>inviteStatus;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateTeamMemberVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
teamId = nativeFromJson<String>(json['teamId']),
|
|
||||||
role = TeamMemberRole.values.byName(json['role']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
title = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
title.value = json['title'] == null ? null : nativeFromJson<String>(json['title']);
|
|
||||||
|
|
||||||
|
|
||||||
department = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
department.value = json['department'] == null ? null : nativeFromJson<String>(json['department']);
|
|
||||||
|
|
||||||
|
|
||||||
teamHubId = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
teamHubId.value = json['teamHubId'] == null ? null : nativeFromJson<String>(json['teamHubId']);
|
|
||||||
|
|
||||||
|
|
||||||
isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isActive.value = json['isActive'] == null ? null : nativeFromJson<bool>(json['isActive']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
inviteStatus = Optional.optional((data) => TeamMemberInviteStatus.values.byName(data), enumSerializer);
|
|
||||||
inviteStatus.value = json['inviteStatus'] == null ? null : TeamMemberInviteStatus.values.byName(json['inviteStatus']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateTeamMemberVariables otherTyped = other as CreateTeamMemberVariables;
|
|
||||||
return teamId == otherTyped.teamId &&
|
|
||||||
role == otherTyped.role &&
|
|
||||||
title == otherTyped.title &&
|
|
||||||
department == otherTyped.department &&
|
|
||||||
teamHubId == otherTyped.teamHubId &&
|
|
||||||
isActive == otherTyped.isActive &&
|
|
||||||
userId == otherTyped.userId &&
|
|
||||||
inviteStatus == otherTyped.inviteStatus;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamId.hashCode, role.hashCode, title.hashCode, department.hashCode, teamHubId.hashCode, isActive.hashCode, userId.hashCode, inviteStatus.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamId'] = nativeToJson<String>(teamId);
|
|
||||||
json['role'] =
|
|
||||||
role.name
|
|
||||||
;
|
|
||||||
if(title.state == OptionalState.set) {
|
|
||||||
json['title'] = title.toJson();
|
|
||||||
}
|
|
||||||
if(department.state == OptionalState.set) {
|
|
||||||
json['department'] = department.toJson();
|
|
||||||
}
|
|
||||||
if(teamHubId.state == OptionalState.set) {
|
|
||||||
json['teamHubId'] = teamHubId.toJson();
|
|
||||||
}
|
|
||||||
if(isActive.state == OptionalState.set) {
|
|
||||||
json['isActive'] = isActive.toJson();
|
|
||||||
}
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
if(inviteStatus.state == OptionalState.set) {
|
|
||||||
json['inviteStatus'] = inviteStatus.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateTeamMemberVariables({
|
|
||||||
required this.teamId,
|
|
||||||
required this.role,
|
|
||||||
required this.title,
|
|
||||||
required this.department,
|
|
||||||
required this.teamHubId,
|
|
||||||
required this.isActive,
|
|
||||||
required this.userId,
|
|
||||||
required this.inviteStatus,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,194 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateUserVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _fullName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
UserBaseRole role;
|
|
||||||
Optional<String> _userRole = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateUserVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateUserVariablesBuilder fullName(String? t) {
|
|
||||||
_fullName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateUserVariablesBuilder userRole(String? t) {
|
|
||||||
_userRole.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateUserVariablesBuilder photoUrl(String? t) {
|
|
||||||
_photoUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserVariablesBuilder(this._dataConnect, {required this.id,required this.role,});
|
|
||||||
Deserializer<CreateUserData> dataDeserializer = (dynamic json) => CreateUserData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateUserVariables> varsSerializer = (CreateUserVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateUserData, CreateUserVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateUserData, CreateUserVariables> ref() {
|
|
||||||
CreateUserVariables vars= CreateUserVariables(id: id,email: _email,fullName: _fullName,role: role,userRole: _userRole,photoUrl: _photoUrl,);
|
|
||||||
return _dataConnect.mutation("CreateUser", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserUserInsert {
|
|
||||||
final String id;
|
|
||||||
CreateUserUserInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserUserInsert otherTyped = other as CreateUserUserInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserUserInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserData {
|
|
||||||
final CreateUserUserInsert user_insert;
|
|
||||||
CreateUserData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
user_insert = CreateUserUserInsert.fromJson(json['user_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserData otherTyped = other as CreateUserData;
|
|
||||||
return user_insert == otherTyped.user_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => user_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['user_insert'] = user_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserData({
|
|
||||||
required this.user_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserVariables {
|
|
||||||
final String id;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>fullName;
|
|
||||||
final UserBaseRole role;
|
|
||||||
late final Optional<String>userRole;
|
|
||||||
late final Optional<String>photoUrl;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateUserVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']),
|
|
||||||
role = UserBaseRole.values.byName(json['role']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
fullName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
fullName.value = json['fullName'] == null ? null : nativeFromJson<String>(json['fullName']);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
userRole = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
userRole.value = json['userRole'] == null ? null : nativeFromJson<String>(json['userRole']);
|
|
||||||
|
|
||||||
|
|
||||||
photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
photoUrl.value = json['photoUrl'] == null ? null : nativeFromJson<String>(json['photoUrl']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserVariables otherTyped = other as CreateUserVariables;
|
|
||||||
return id == otherTyped.id &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
fullName == otherTyped.fullName &&
|
|
||||||
role == otherTyped.role &&
|
|
||||||
userRole == otherTyped.userRole &&
|
|
||||||
photoUrl == otherTyped.photoUrl;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([id.hashCode, email.hashCode, fullName.hashCode, role.hashCode, userRole.hashCode, photoUrl.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(fullName.state == OptionalState.set) {
|
|
||||||
json['fullName'] = fullName.toJson();
|
|
||||||
}
|
|
||||||
json['role'] =
|
|
||||||
role.name
|
|
||||||
;
|
|
||||||
if(userRole.state == OptionalState.set) {
|
|
||||||
json['userRole'] = userRole.toJson();
|
|
||||||
}
|
|
||||||
if(photoUrl.state == OptionalState.set) {
|
|
||||||
json['photoUrl'] = photoUrl.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserVariables({
|
|
||||||
required this.id,
|
|
||||||
required this.email,
|
|
||||||
required this.fullName,
|
|
||||||
required this.role,
|
|
||||||
required this.userRole,
|
|
||||||
required this.photoUrl,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,167 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateUserConversationVariablesBuilder {
|
|
||||||
String conversationId;
|
|
||||||
String userId;
|
|
||||||
Optional<int> _unreadCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<Timestamp> _lastReadAt = Optional.optional((json) => json['lastReadAt'] = Timestamp.fromJson(json['lastReadAt']), defaultSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateUserConversationVariablesBuilder unreadCount(int? t) {
|
|
||||||
_unreadCount.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) {
|
|
||||||
_lastReadAt.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserConversationVariablesBuilder(this._dataConnect, {required this.conversationId,required this.userId,});
|
|
||||||
Deserializer<CreateUserConversationData> dataDeserializer = (dynamic json) => CreateUserConversationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateUserConversationVariables> varsSerializer = (CreateUserConversationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateUserConversationData, CreateUserConversationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateUserConversationData, CreateUserConversationVariables> ref() {
|
|
||||||
CreateUserConversationVariables vars= CreateUserConversationVariables(conversationId: conversationId,userId: userId,unreadCount: _unreadCount,lastReadAt: _lastReadAt,);
|
|
||||||
return _dataConnect.mutation("createUserConversation", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserConversationUserConversationInsert {
|
|
||||||
final String conversationId;
|
|
||||||
final String userId;
|
|
||||||
CreateUserConversationUserConversationInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
conversationId = nativeFromJson<String>(json['conversationId']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserConversationUserConversationInsert otherTyped = other as CreateUserConversationUserConversationInsert;
|
|
||||||
return conversationId == otherTyped.conversationId &&
|
|
||||||
userId == otherTyped.userId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([conversationId.hashCode, userId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversationId'] = nativeToJson<String>(conversationId);
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserConversationUserConversationInsert({
|
|
||||||
required this.conversationId,
|
|
||||||
required this.userId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserConversationData {
|
|
||||||
final CreateUserConversationUserConversationInsert userConversation_insert;
|
|
||||||
CreateUserConversationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
userConversation_insert = CreateUserConversationUserConversationInsert.fromJson(json['userConversation_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserConversationData otherTyped = other as CreateUserConversationData;
|
|
||||||
return userConversation_insert == otherTyped.userConversation_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => userConversation_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['userConversation_insert'] = userConversation_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserConversationData({
|
|
||||||
required this.userConversation_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateUserConversationVariables {
|
|
||||||
final String conversationId;
|
|
||||||
final String userId;
|
|
||||||
late final Optional<int>unreadCount;
|
|
||||||
late final Optional<Timestamp>lastReadAt;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateUserConversationVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
conversationId = nativeFromJson<String>(json['conversationId']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
unreadCount = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
unreadCount.value = json['unreadCount'] == null ? null : nativeFromJson<int>(json['unreadCount']);
|
|
||||||
|
|
||||||
|
|
||||||
lastReadAt = Optional.optional((json) => json['lastReadAt'] = Timestamp.fromJson(json['lastReadAt']), defaultSerializer);
|
|
||||||
lastReadAt.value = json['lastReadAt'] == null ? null : Timestamp.fromJson(json['lastReadAt']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateUserConversationVariables otherTyped = other as CreateUserConversationVariables;
|
|
||||||
return conversationId == otherTyped.conversationId &&
|
|
||||||
userId == otherTyped.userId &&
|
|
||||||
unreadCount == otherTyped.unreadCount &&
|
|
||||||
lastReadAt == otherTyped.lastReadAt;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([conversationId.hashCode, userId.hashCode, unreadCount.hashCode, lastReadAt.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversationId'] = nativeToJson<String>(conversationId);
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
if(unreadCount.state == OptionalState.set) {
|
|
||||||
json['unreadCount'] = unreadCount.toJson();
|
|
||||||
}
|
|
||||||
if(lastReadAt.state == OptionalState.set) {
|
|
||||||
json['lastReadAt'] = lastReadAt.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateUserConversationVariables({
|
|
||||||
required this.conversationId,
|
|
||||||
required this.userId,
|
|
||||||
required this.unreadCount,
|
|
||||||
required this.lastReadAt,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,402 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateVendorVariablesBuilder {
|
|
||||||
String userId;
|
|
||||||
String companyName;
|
|
||||||
Optional<String> _email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _billingAddress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _timezone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _legalName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _doingBusinessAs = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _region = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _serviceSpecialty = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<ApprovalStatus> _approvalStatus = Optional.optional((data) => ApprovalStatus.values.byName(data), enumSerializer);
|
|
||||||
Optional<bool> _isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _markup = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _fee = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _csat = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<VendorTier> _tier = Optional.optional((data) => VendorTier.values.byName(data), enumSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateVendorVariablesBuilder email(String? t) {
|
|
||||||
_email.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder phone(String? t) {
|
|
||||||
_phone.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder photoUrl(String? t) {
|
|
||||||
_photoUrl.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder address(String? t) {
|
|
||||||
_address.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder billingAddress(String? t) {
|
|
||||||
_billingAddress.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder timezone(String? t) {
|
|
||||||
_timezone.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder legalName(String? t) {
|
|
||||||
_legalName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder doingBusinessAs(String? t) {
|
|
||||||
_doingBusinessAs.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder region(String? t) {
|
|
||||||
_region.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder state(String? t) {
|
|
||||||
_state.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder city(String? t) {
|
|
||||||
_city.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder serviceSpecialty(String? t) {
|
|
||||||
_serviceSpecialty.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) {
|
|
||||||
_approvalStatus.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder isActive(bool? t) {
|
|
||||||
_isActive.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder markup(double? t) {
|
|
||||||
_markup.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder fee(double? t) {
|
|
||||||
_fee.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder csat(double? t) {
|
|
||||||
_csat.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorVariablesBuilder tier(VendorTier? t) {
|
|
||||||
_tier.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorVariablesBuilder(this._dataConnect, {required this.userId,required this.companyName,});
|
|
||||||
Deserializer<CreateVendorData> dataDeserializer = (dynamic json) => CreateVendorData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateVendorVariables> varsSerializer = (CreateVendorVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateVendorData, CreateVendorVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateVendorData, CreateVendorVariables> ref() {
|
|
||||||
CreateVendorVariables vars= CreateVendorVariables(userId: userId,companyName: companyName,email: _email,phone: _phone,photoUrl: _photoUrl,address: _address,billingAddress: _billingAddress,timezone: _timezone,legalName: _legalName,doingBusinessAs: _doingBusinessAs,region: _region,state: _state,city: _city,serviceSpecialty: _serviceSpecialty,approvalStatus: _approvalStatus,isActive: _isActive,markup: _markup,fee: _fee,csat: _csat,tier: _tier,);
|
|
||||||
return _dataConnect.mutation("createVendor", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorVendorInsert {
|
|
||||||
final String id;
|
|
||||||
CreateVendorVendorInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorVendorInsert otherTyped = other as CreateVendorVendorInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorVendorInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorData {
|
|
||||||
final CreateVendorVendorInsert vendor_insert;
|
|
||||||
CreateVendorData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendor_insert = CreateVendorVendorInsert.fromJson(json['vendor_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorData otherTyped = other as CreateVendorData;
|
|
||||||
return vendor_insert == otherTyped.vendor_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => vendor_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendor_insert'] = vendor_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorData({
|
|
||||||
required this.vendor_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorVariables {
|
|
||||||
final String userId;
|
|
||||||
final String companyName;
|
|
||||||
late final Optional<String>email;
|
|
||||||
late final Optional<String>phone;
|
|
||||||
late final Optional<String>photoUrl;
|
|
||||||
late final Optional<String>address;
|
|
||||||
late final Optional<String>billingAddress;
|
|
||||||
late final Optional<String>timezone;
|
|
||||||
late final Optional<String>legalName;
|
|
||||||
late final Optional<String>doingBusinessAs;
|
|
||||||
late final Optional<String>region;
|
|
||||||
late final Optional<String>state;
|
|
||||||
late final Optional<String>city;
|
|
||||||
late final Optional<String>serviceSpecialty;
|
|
||||||
late final Optional<ApprovalStatus>approvalStatus;
|
|
||||||
late final Optional<bool>isActive;
|
|
||||||
late final Optional<double>markup;
|
|
||||||
late final Optional<double>fee;
|
|
||||||
late final Optional<double>csat;
|
|
||||||
late final Optional<VendorTier>tier;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateVendorVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
userId = nativeFromJson<String>(json['userId']),
|
|
||||||
companyName = nativeFromJson<String>(json['companyName']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
email = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
email.value = json['email'] == null ? null : nativeFromJson<String>(json['email']);
|
|
||||||
|
|
||||||
|
|
||||||
phone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
phone.value = json['phone'] == null ? null : nativeFromJson<String>(json['phone']);
|
|
||||||
|
|
||||||
|
|
||||||
photoUrl = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
photoUrl.value = json['photoUrl'] == null ? null : nativeFromJson<String>(json['photoUrl']);
|
|
||||||
|
|
||||||
|
|
||||||
address = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
address.value = json['address'] == null ? null : nativeFromJson<String>(json['address']);
|
|
||||||
|
|
||||||
|
|
||||||
billingAddress = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
billingAddress.value = json['billingAddress'] == null ? null : nativeFromJson<String>(json['billingAddress']);
|
|
||||||
|
|
||||||
|
|
||||||
timezone = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
timezone.value = json['timezone'] == null ? null : nativeFromJson<String>(json['timezone']);
|
|
||||||
|
|
||||||
|
|
||||||
legalName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
legalName.value = json['legalName'] == null ? null : nativeFromJson<String>(json['legalName']);
|
|
||||||
|
|
||||||
|
|
||||||
doingBusinessAs = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
doingBusinessAs.value = json['doingBusinessAs'] == null ? null : nativeFromJson<String>(json['doingBusinessAs']);
|
|
||||||
|
|
||||||
|
|
||||||
region = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
region.value = json['region'] == null ? null : nativeFromJson<String>(json['region']);
|
|
||||||
|
|
||||||
|
|
||||||
state = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
|
|
||||||
|
|
||||||
|
|
||||||
city = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
|
|
||||||
|
|
||||||
|
|
||||||
serviceSpecialty = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
serviceSpecialty.value = json['serviceSpecialty'] == null ? null : nativeFromJson<String>(json['serviceSpecialty']);
|
|
||||||
|
|
||||||
|
|
||||||
approvalStatus = Optional.optional((data) => ApprovalStatus.values.byName(data), enumSerializer);
|
|
||||||
approvalStatus.value = json['approvalStatus'] == null ? null : ApprovalStatus.values.byName(json['approvalStatus']);
|
|
||||||
|
|
||||||
|
|
||||||
isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isActive.value = json['isActive'] == null ? null : nativeFromJson<bool>(json['isActive']);
|
|
||||||
|
|
||||||
|
|
||||||
markup = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
markup.value = json['markup'] == null ? null : nativeFromJson<double>(json['markup']);
|
|
||||||
|
|
||||||
|
|
||||||
fee = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
fee.value = json['fee'] == null ? null : nativeFromJson<double>(json['fee']);
|
|
||||||
|
|
||||||
|
|
||||||
csat = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
csat.value = json['csat'] == null ? null : nativeFromJson<double>(json['csat']);
|
|
||||||
|
|
||||||
|
|
||||||
tier = Optional.optional((data) => VendorTier.values.byName(data), enumSerializer);
|
|
||||||
tier.value = json['tier'] == null ? null : VendorTier.values.byName(json['tier']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorVariables otherTyped = other as CreateVendorVariables;
|
|
||||||
return userId == otherTyped.userId &&
|
|
||||||
companyName == otherTyped.companyName &&
|
|
||||||
email == otherTyped.email &&
|
|
||||||
phone == otherTyped.phone &&
|
|
||||||
photoUrl == otherTyped.photoUrl &&
|
|
||||||
address == otherTyped.address &&
|
|
||||||
billingAddress == otherTyped.billingAddress &&
|
|
||||||
timezone == otherTyped.timezone &&
|
|
||||||
legalName == otherTyped.legalName &&
|
|
||||||
doingBusinessAs == otherTyped.doingBusinessAs &&
|
|
||||||
region == otherTyped.region &&
|
|
||||||
state == otherTyped.state &&
|
|
||||||
city == otherTyped.city &&
|
|
||||||
serviceSpecialty == otherTyped.serviceSpecialty &&
|
|
||||||
approvalStatus == otherTyped.approvalStatus &&
|
|
||||||
isActive == otherTyped.isActive &&
|
|
||||||
markup == otherTyped.markup &&
|
|
||||||
fee == otherTyped.fee &&
|
|
||||||
csat == otherTyped.csat &&
|
|
||||||
tier == otherTyped.tier;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([userId.hashCode, companyName.hashCode, email.hashCode, phone.hashCode, photoUrl.hashCode, address.hashCode, billingAddress.hashCode, timezone.hashCode, legalName.hashCode, doingBusinessAs.hashCode, region.hashCode, state.hashCode, city.hashCode, serviceSpecialty.hashCode, approvalStatus.hashCode, isActive.hashCode, markup.hashCode, fee.hashCode, csat.hashCode, tier.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
json['companyName'] = nativeToJson<String>(companyName);
|
|
||||||
if(email.state == OptionalState.set) {
|
|
||||||
json['email'] = email.toJson();
|
|
||||||
}
|
|
||||||
if(phone.state == OptionalState.set) {
|
|
||||||
json['phone'] = phone.toJson();
|
|
||||||
}
|
|
||||||
if(photoUrl.state == OptionalState.set) {
|
|
||||||
json['photoUrl'] = photoUrl.toJson();
|
|
||||||
}
|
|
||||||
if(address.state == OptionalState.set) {
|
|
||||||
json['address'] = address.toJson();
|
|
||||||
}
|
|
||||||
if(billingAddress.state == OptionalState.set) {
|
|
||||||
json['billingAddress'] = billingAddress.toJson();
|
|
||||||
}
|
|
||||||
if(timezone.state == OptionalState.set) {
|
|
||||||
json['timezone'] = timezone.toJson();
|
|
||||||
}
|
|
||||||
if(legalName.state == OptionalState.set) {
|
|
||||||
json['legalName'] = legalName.toJson();
|
|
||||||
}
|
|
||||||
if(doingBusinessAs.state == OptionalState.set) {
|
|
||||||
json['doingBusinessAs'] = doingBusinessAs.toJson();
|
|
||||||
}
|
|
||||||
if(region.state == OptionalState.set) {
|
|
||||||
json['region'] = region.toJson();
|
|
||||||
}
|
|
||||||
if(state.state == OptionalState.set) {
|
|
||||||
json['state'] = state.toJson();
|
|
||||||
}
|
|
||||||
if(city.state == OptionalState.set) {
|
|
||||||
json['city'] = city.toJson();
|
|
||||||
}
|
|
||||||
if(serviceSpecialty.state == OptionalState.set) {
|
|
||||||
json['serviceSpecialty'] = serviceSpecialty.toJson();
|
|
||||||
}
|
|
||||||
if(approvalStatus.state == OptionalState.set) {
|
|
||||||
json['approvalStatus'] = approvalStatus.toJson();
|
|
||||||
}
|
|
||||||
if(isActive.state == OptionalState.set) {
|
|
||||||
json['isActive'] = isActive.toJson();
|
|
||||||
}
|
|
||||||
if(markup.state == OptionalState.set) {
|
|
||||||
json['markup'] = markup.toJson();
|
|
||||||
}
|
|
||||||
if(fee.state == OptionalState.set) {
|
|
||||||
json['fee'] = fee.toJson();
|
|
||||||
}
|
|
||||||
if(csat.state == OptionalState.set) {
|
|
||||||
json['csat'] = csat.toJson();
|
|
||||||
}
|
|
||||||
if(tier.state == OptionalState.set) {
|
|
||||||
json['tier'] = tier.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorVariables({
|
|
||||||
required this.userId,
|
|
||||||
required this.companyName,
|
|
||||||
required this.email,
|
|
||||||
required this.phone,
|
|
||||||
required this.photoUrl,
|
|
||||||
required this.address,
|
|
||||||
required this.billingAddress,
|
|
||||||
required this.timezone,
|
|
||||||
required this.legalName,
|
|
||||||
required this.doingBusinessAs,
|
|
||||||
required this.region,
|
|
||||||
required this.state,
|
|
||||||
required this.city,
|
|
||||||
required this.serviceSpecialty,
|
|
||||||
required this.approvalStatus,
|
|
||||||
required this.isActive,
|
|
||||||
required this.markup,
|
|
||||||
required this.fee,
|
|
||||||
required this.csat,
|
|
||||||
required this.tier,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,207 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateVendorBenefitPlanVariablesBuilder {
|
|
||||||
String vendorId;
|
|
||||||
String title;
|
|
||||||
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _requestLabel = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<int> _total = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateVendorBenefitPlanVariablesBuilder description(String? t) {
|
|
||||||
_description.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorBenefitPlanVariablesBuilder requestLabel(String? t) {
|
|
||||||
_requestLabel.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorBenefitPlanVariablesBuilder total(int? t) {
|
|
||||||
_total.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorBenefitPlanVariablesBuilder isActive(bool? t) {
|
|
||||||
_isActive.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) {
|
|
||||||
_createdBy.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorBenefitPlanVariablesBuilder(this._dataConnect, {required this.vendorId,required this.title,});
|
|
||||||
Deserializer<CreateVendorBenefitPlanData> dataDeserializer = (dynamic json) => CreateVendorBenefitPlanData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateVendorBenefitPlanVariables> varsSerializer = (CreateVendorBenefitPlanVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateVendorBenefitPlanData, CreateVendorBenefitPlanVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateVendorBenefitPlanData, CreateVendorBenefitPlanVariables> ref() {
|
|
||||||
CreateVendorBenefitPlanVariables vars= CreateVendorBenefitPlanVariables(vendorId: vendorId,title: title,description: _description,requestLabel: _requestLabel,total: _total,isActive: _isActive,createdBy: _createdBy,);
|
|
||||||
return _dataConnect.mutation("createVendorBenefitPlan", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorBenefitPlanVendorBenefitPlanInsert {
|
|
||||||
final String id;
|
|
||||||
CreateVendorBenefitPlanVendorBenefitPlanInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorBenefitPlanVendorBenefitPlanInsert otherTyped = other as CreateVendorBenefitPlanVendorBenefitPlanInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorBenefitPlanVendorBenefitPlanInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorBenefitPlanData {
|
|
||||||
final CreateVendorBenefitPlanVendorBenefitPlanInsert vendorBenefitPlan_insert;
|
|
||||||
CreateVendorBenefitPlanData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendorBenefitPlan_insert = CreateVendorBenefitPlanVendorBenefitPlanInsert.fromJson(json['vendorBenefitPlan_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorBenefitPlanData otherTyped = other as CreateVendorBenefitPlanData;
|
|
||||||
return vendorBenefitPlan_insert == otherTyped.vendorBenefitPlan_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => vendorBenefitPlan_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorBenefitPlan_insert'] = vendorBenefitPlan_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorBenefitPlanData({
|
|
||||||
required this.vendorBenefitPlan_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorBenefitPlanVariables {
|
|
||||||
final String vendorId;
|
|
||||||
final String title;
|
|
||||||
late final Optional<String>description;
|
|
||||||
late final Optional<String>requestLabel;
|
|
||||||
late final Optional<int>total;
|
|
||||||
late final Optional<bool>isActive;
|
|
||||||
late final Optional<String>createdBy;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateVendorBenefitPlanVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
|
||||||
title = nativeFromJson<String>(json['title']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
description = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
|
|
||||||
|
|
||||||
|
|
||||||
requestLabel = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
requestLabel.value = json['requestLabel'] == null ? null : nativeFromJson<String>(json['requestLabel']);
|
|
||||||
|
|
||||||
|
|
||||||
total = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
total.value = json['total'] == null ? null : nativeFromJson<int>(json['total']);
|
|
||||||
|
|
||||||
|
|
||||||
isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isActive.value = json['isActive'] == null ? null : nativeFromJson<bool>(json['isActive']);
|
|
||||||
|
|
||||||
|
|
||||||
createdBy = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
createdBy.value = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorBenefitPlanVariables otherTyped = other as CreateVendorBenefitPlanVariables;
|
|
||||||
return vendorId == otherTyped.vendorId &&
|
|
||||||
title == otherTyped.title &&
|
|
||||||
description == otherTyped.description &&
|
|
||||||
requestLabel == otherTyped.requestLabel &&
|
|
||||||
total == otherTyped.total &&
|
|
||||||
isActive == otherTyped.isActive &&
|
|
||||||
createdBy == otherTyped.createdBy;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorId.hashCode, title.hashCode, description.hashCode, requestLabel.hashCode, total.hashCode, isActive.hashCode, createdBy.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
json['title'] = nativeToJson<String>(title);
|
|
||||||
if(description.state == OptionalState.set) {
|
|
||||||
json['description'] = description.toJson();
|
|
||||||
}
|
|
||||||
if(requestLabel.state == OptionalState.set) {
|
|
||||||
json['requestLabel'] = requestLabel.toJson();
|
|
||||||
}
|
|
||||||
if(total.state == OptionalState.set) {
|
|
||||||
json['total'] = total.toJson();
|
|
||||||
}
|
|
||||||
if(isActive.state == OptionalState.set) {
|
|
||||||
json['isActive'] = isActive.toJson();
|
|
||||||
}
|
|
||||||
if(createdBy.state == OptionalState.set) {
|
|
||||||
json['createdBy'] = createdBy.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorBenefitPlanVariables({
|
|
||||||
required this.vendorId,
|
|
||||||
required this.title,
|
|
||||||
required this.description,
|
|
||||||
required this.requestLabel,
|
|
||||||
required this.total,
|
|
||||||
required this.isActive,
|
|
||||||
required this.createdBy,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,245 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateVendorRateVariablesBuilder {
|
|
||||||
String vendorId;
|
|
||||||
Optional<String> _roleName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<CategoryType> _category = Optional.optional((data) => CategoryType.values.byName(data), enumSerializer);
|
|
||||||
Optional<double> _clientRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _employeeWage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _markupPercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<double> _vendorFeePercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<bool> _isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateVendorRateVariablesBuilder roleName(String? t) {
|
|
||||||
_roleName.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder category(CategoryType? t) {
|
|
||||||
_category.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder clientRate(double? t) {
|
|
||||||
_clientRate.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder employeeWage(double? t) {
|
|
||||||
_employeeWage.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder markupPercentage(double? t) {
|
|
||||||
_markupPercentage.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) {
|
|
||||||
_vendorFeePercentage.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder isActive(bool? t) {
|
|
||||||
_isActive.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
CreateVendorRateVariablesBuilder notes(String? t) {
|
|
||||||
_notes.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorRateVariablesBuilder(this._dataConnect, {required this.vendorId,});
|
|
||||||
Deserializer<CreateVendorRateData> dataDeserializer = (dynamic json) => CreateVendorRateData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateVendorRateVariables> varsSerializer = (CreateVendorRateVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateVendorRateData, CreateVendorRateVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateVendorRateData, CreateVendorRateVariables> ref() {
|
|
||||||
CreateVendorRateVariables vars= CreateVendorRateVariables(vendorId: vendorId,roleName: _roleName,category: _category,clientRate: _clientRate,employeeWage: _employeeWage,markupPercentage: _markupPercentage,vendorFeePercentage: _vendorFeePercentage,isActive: _isActive,notes: _notes,);
|
|
||||||
return _dataConnect.mutation("createVendorRate", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorRateVendorRateInsert {
|
|
||||||
final String id;
|
|
||||||
CreateVendorRateVendorRateInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorRateVendorRateInsert otherTyped = other as CreateVendorRateVendorRateInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorRateVendorRateInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorRateData {
|
|
||||||
final CreateVendorRateVendorRateInsert vendorRate_insert;
|
|
||||||
CreateVendorRateData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendorRate_insert = CreateVendorRateVendorRateInsert.fromJson(json['vendorRate_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorRateData otherTyped = other as CreateVendorRateData;
|
|
||||||
return vendorRate_insert == otherTyped.vendorRate_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => vendorRate_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorRate_insert'] = vendorRate_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorRateData({
|
|
||||||
required this.vendorRate_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateVendorRateVariables {
|
|
||||||
final String vendorId;
|
|
||||||
late final Optional<String>roleName;
|
|
||||||
late final Optional<CategoryType>category;
|
|
||||||
late final Optional<double>clientRate;
|
|
||||||
late final Optional<double>employeeWage;
|
|
||||||
late final Optional<double>markupPercentage;
|
|
||||||
late final Optional<double>vendorFeePercentage;
|
|
||||||
late final Optional<bool>isActive;
|
|
||||||
late final Optional<String>notes;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateVendorRateVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
roleName = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
roleName.value = json['roleName'] == null ? null : nativeFromJson<String>(json['roleName']);
|
|
||||||
|
|
||||||
|
|
||||||
category = Optional.optional((data) => CategoryType.values.byName(data), enumSerializer);
|
|
||||||
category.value = json['category'] == null ? null : CategoryType.values.byName(json['category']);
|
|
||||||
|
|
||||||
|
|
||||||
clientRate = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
clientRate.value = json['clientRate'] == null ? null : nativeFromJson<double>(json['clientRate']);
|
|
||||||
|
|
||||||
|
|
||||||
employeeWage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
employeeWage.value = json['employeeWage'] == null ? null : nativeFromJson<double>(json['employeeWage']);
|
|
||||||
|
|
||||||
|
|
||||||
markupPercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
markupPercentage.value = json['markupPercentage'] == null ? null : nativeFromJson<double>(json['markupPercentage']);
|
|
||||||
|
|
||||||
|
|
||||||
vendorFeePercentage = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
vendorFeePercentage.value = json['vendorFeePercentage'] == null ? null : nativeFromJson<double>(json['vendorFeePercentage']);
|
|
||||||
|
|
||||||
|
|
||||||
isActive = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
isActive.value = json['isActive'] == null ? null : nativeFromJson<bool>(json['isActive']);
|
|
||||||
|
|
||||||
|
|
||||||
notes = Optional.optional(nativeFromJson, nativeToJson);
|
|
||||||
notes.value = json['notes'] == null ? null : nativeFromJson<String>(json['notes']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateVendorRateVariables otherTyped = other as CreateVendorRateVariables;
|
|
||||||
return vendorId == otherTyped.vendorId &&
|
|
||||||
roleName == otherTyped.roleName &&
|
|
||||||
category == otherTyped.category &&
|
|
||||||
clientRate == otherTyped.clientRate &&
|
|
||||||
employeeWage == otherTyped.employeeWage &&
|
|
||||||
markupPercentage == otherTyped.markupPercentage &&
|
|
||||||
vendorFeePercentage == otherTyped.vendorFeePercentage &&
|
|
||||||
isActive == otherTyped.isActive &&
|
|
||||||
notes == otherTyped.notes;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorId.hashCode, roleName.hashCode, category.hashCode, clientRate.hashCode, employeeWage.hashCode, markupPercentage.hashCode, vendorFeePercentage.hashCode, isActive.hashCode, notes.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
if(roleName.state == OptionalState.set) {
|
|
||||||
json['roleName'] = roleName.toJson();
|
|
||||||
}
|
|
||||||
if(category.state == OptionalState.set) {
|
|
||||||
json['category'] = category.toJson();
|
|
||||||
}
|
|
||||||
if(clientRate.state == OptionalState.set) {
|
|
||||||
json['clientRate'] = clientRate.toJson();
|
|
||||||
}
|
|
||||||
if(employeeWage.state == OptionalState.set) {
|
|
||||||
json['employeeWage'] = employeeWage.toJson();
|
|
||||||
}
|
|
||||||
if(markupPercentage.state == OptionalState.set) {
|
|
||||||
json['markupPercentage'] = markupPercentage.toJson();
|
|
||||||
}
|
|
||||||
if(vendorFeePercentage.state == OptionalState.set) {
|
|
||||||
json['vendorFeePercentage'] = vendorFeePercentage.toJson();
|
|
||||||
}
|
|
||||||
if(isActive.state == OptionalState.set) {
|
|
||||||
json['isActive'] = isActive.toJson();
|
|
||||||
}
|
|
||||||
if(notes.state == OptionalState.set) {
|
|
||||||
json['notes'] = notes.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateVendorRateVariables({
|
|
||||||
required this.vendorId,
|
|
||||||
required this.roleName,
|
|
||||||
required this.category,
|
|
||||||
required this.clientRate,
|
|
||||||
required this.employeeWage,
|
|
||||||
required this.markupPercentage,
|
|
||||||
required this.vendorFeePercentage,
|
|
||||||
required this.isActive,
|
|
||||||
required this.notes,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class CreateWorkforceVariablesBuilder {
|
|
||||||
String vendorId;
|
|
||||||
String staffId;
|
|
||||||
String workforceNumber;
|
|
||||||
Optional<WorkforceEmploymentType> _employmentType = Optional.optional((data) => WorkforceEmploymentType.values.byName(data), enumSerializer);
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect; CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) {
|
|
||||||
_employmentType.value = t;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateWorkforceVariablesBuilder(this._dataConnect, {required this.vendorId,required this.staffId,required this.workforceNumber,});
|
|
||||||
Deserializer<CreateWorkforceData> dataDeserializer = (dynamic json) => CreateWorkforceData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<CreateWorkforceVariables> varsSerializer = (CreateWorkforceVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<CreateWorkforceData, CreateWorkforceVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<CreateWorkforceData, CreateWorkforceVariables> ref() {
|
|
||||||
CreateWorkforceVariables vars= CreateWorkforceVariables(vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,employmentType: _employmentType,);
|
|
||||||
return _dataConnect.mutation("createWorkforce", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateWorkforceWorkforceInsert {
|
|
||||||
final String id;
|
|
||||||
CreateWorkforceWorkforceInsert.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateWorkforceWorkforceInsert otherTyped = other as CreateWorkforceWorkforceInsert;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateWorkforceWorkforceInsert({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateWorkforceData {
|
|
||||||
final CreateWorkforceWorkforceInsert workforce_insert;
|
|
||||||
CreateWorkforceData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
workforce_insert = CreateWorkforceWorkforceInsert.fromJson(json['workforce_insert']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateWorkforceData otherTyped = other as CreateWorkforceData;
|
|
||||||
return workforce_insert == otherTyped.workforce_insert;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => workforce_insert.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['workforce_insert'] = workforce_insert.toJson();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateWorkforceData({
|
|
||||||
required this.workforce_insert,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class CreateWorkforceVariables {
|
|
||||||
final String vendorId;
|
|
||||||
final String staffId;
|
|
||||||
final String workforceNumber;
|
|
||||||
late final Optional<WorkforceEmploymentType>employmentType;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
CreateWorkforceVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
vendorId = nativeFromJson<String>(json['vendorId']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
workforceNumber = nativeFromJson<String>(json['workforceNumber']) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
employmentType = Optional.optional((data) => WorkforceEmploymentType.values.byName(data), enumSerializer);
|
|
||||||
employmentType.value = json['employmentType'] == null ? null : WorkforceEmploymentType.values.byName(json['employmentType']);
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CreateWorkforceVariables otherTyped = other as CreateWorkforceVariables;
|
|
||||||
return vendorId == otherTyped.vendorId &&
|
|
||||||
staffId == otherTyped.staffId &&
|
|
||||||
workforceNumber == otherTyped.workforceNumber &&
|
|
||||||
employmentType == otherTyped.employmentType;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorId.hashCode, staffId.hashCode, workforceNumber.hashCode, employmentType.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorId'] = nativeToJson<String>(vendorId);
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['workforceNumber'] = nativeToJson<String>(workforceNumber);
|
|
||||||
if(employmentType.state == OptionalState.set) {
|
|
||||||
json['employmentType'] = employmentType.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateWorkforceVariables({
|
|
||||||
required this.vendorId,
|
|
||||||
required this.staffId,
|
|
||||||
required this.workforceNumber,
|
|
||||||
required this.employmentType,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeactivateWorkforceVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeactivateWorkforceVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeactivateWorkforceData> dataDeserializer = (dynamic json) => DeactivateWorkforceData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeactivateWorkforceVariables> varsSerializer = (DeactivateWorkforceVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeactivateWorkforceData, DeactivateWorkforceVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeactivateWorkforceData, DeactivateWorkforceVariables> ref() {
|
|
||||||
DeactivateWorkforceVariables vars= DeactivateWorkforceVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deactivateWorkforce", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeactivateWorkforceWorkforceUpdate {
|
|
||||||
final String id;
|
|
||||||
DeactivateWorkforceWorkforceUpdate.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeactivateWorkforceWorkforceUpdate otherTyped = other as DeactivateWorkforceWorkforceUpdate;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeactivateWorkforceWorkforceUpdate({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeactivateWorkforceData {
|
|
||||||
final DeactivateWorkforceWorkforceUpdate? workforce_update;
|
|
||||||
DeactivateWorkforceData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
workforce_update = json['workforce_update'] == null ? null : DeactivateWorkforceWorkforceUpdate.fromJson(json['workforce_update']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeactivateWorkforceData otherTyped = other as DeactivateWorkforceData;
|
|
||||||
return workforce_update == otherTyped.workforce_update;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => workforce_update.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (workforce_update != null) {
|
|
||||||
json['workforce_update'] = workforce_update!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeactivateWorkforceData({
|
|
||||||
this.workforce_update,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeactivateWorkforceVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeactivateWorkforceVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeactivateWorkforceVariables otherTyped = other as DeactivateWorkforceVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeactivateWorkforceVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteAccountVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteAccountVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteAccountData> dataDeserializer = (dynamic json) => DeleteAccountData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteAccountVariables> varsSerializer = (DeleteAccountVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteAccountData, DeleteAccountVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteAccountData, DeleteAccountVariables> ref() {
|
|
||||||
DeleteAccountVariables vars= DeleteAccountVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteAccount", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAccountAccountDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteAccountAccountDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAccountAccountDelete otherTyped = other as DeleteAccountAccountDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAccountAccountDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAccountData {
|
|
||||||
final DeleteAccountAccountDelete? account_delete;
|
|
||||||
DeleteAccountData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
account_delete = json['account_delete'] == null ? null : DeleteAccountAccountDelete.fromJson(json['account_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAccountData otherTyped = other as DeleteAccountData;
|
|
||||||
return account_delete == otherTyped.account_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => account_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (account_delete != null) {
|
|
||||||
json['account_delete'] = account_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAccountData({
|
|
||||||
this.account_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAccountVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteAccountVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAccountVariables otherTyped = other as DeleteAccountVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAccountVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteActivityLogVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteActivityLogVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteActivityLogData> dataDeserializer = (dynamic json) => DeleteActivityLogData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteActivityLogVariables> varsSerializer = (DeleteActivityLogVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteActivityLogData, DeleteActivityLogVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteActivityLogData, DeleteActivityLogVariables> ref() {
|
|
||||||
DeleteActivityLogVariables vars= DeleteActivityLogVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteActivityLog", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteActivityLogActivityLogDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteActivityLogActivityLogDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteActivityLogActivityLogDelete otherTyped = other as DeleteActivityLogActivityLogDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteActivityLogActivityLogDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteActivityLogData {
|
|
||||||
final DeleteActivityLogActivityLogDelete? activityLog_delete;
|
|
||||||
DeleteActivityLogData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
activityLog_delete = json['activityLog_delete'] == null ? null : DeleteActivityLogActivityLogDelete.fromJson(json['activityLog_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteActivityLogData otherTyped = other as DeleteActivityLogData;
|
|
||||||
return activityLog_delete == otherTyped.activityLog_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => activityLog_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (activityLog_delete != null) {
|
|
||||||
json['activityLog_delete'] = activityLog_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteActivityLogData({
|
|
||||||
this.activityLog_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteActivityLogVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteActivityLogVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteActivityLogVariables otherTyped = other as DeleteActivityLogVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteActivityLogVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteApplicationVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteApplicationVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteApplicationData> dataDeserializer = (dynamic json) => DeleteApplicationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteApplicationVariables> varsSerializer = (DeleteApplicationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteApplicationData, DeleteApplicationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteApplicationData, DeleteApplicationVariables> ref() {
|
|
||||||
DeleteApplicationVariables vars= DeleteApplicationVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteApplication", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteApplicationApplicationDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteApplicationApplicationDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteApplicationApplicationDelete otherTyped = other as DeleteApplicationApplicationDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteApplicationApplicationDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteApplicationData {
|
|
||||||
final DeleteApplicationApplicationDelete? application_delete;
|
|
||||||
DeleteApplicationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
application_delete = json['application_delete'] == null ? null : DeleteApplicationApplicationDelete.fromJson(json['application_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteApplicationData otherTyped = other as DeleteApplicationData;
|
|
||||||
return application_delete == otherTyped.application_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => application_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (application_delete != null) {
|
|
||||||
json['application_delete'] = application_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteApplicationData({
|
|
||||||
this.application_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteApplicationVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteApplicationVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteApplicationVariables otherTyped = other as DeleteApplicationVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteApplicationVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteAssignmentVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteAssignmentVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteAssignmentData> dataDeserializer = (dynamic json) => DeleteAssignmentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteAssignmentVariables> varsSerializer = (DeleteAssignmentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteAssignmentData, DeleteAssignmentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteAssignmentData, DeleteAssignmentVariables> ref() {
|
|
||||||
DeleteAssignmentVariables vars= DeleteAssignmentVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("DeleteAssignment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAssignmentAssignmentDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteAssignmentAssignmentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAssignmentAssignmentDelete otherTyped = other as DeleteAssignmentAssignmentDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAssignmentAssignmentDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAssignmentData {
|
|
||||||
final DeleteAssignmentAssignmentDelete? assignment_delete;
|
|
||||||
DeleteAssignmentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
assignment_delete = json['assignment_delete'] == null ? null : DeleteAssignmentAssignmentDelete.fromJson(json['assignment_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAssignmentData otherTyped = other as DeleteAssignmentData;
|
|
||||||
return assignment_delete == otherTyped.assignment_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => assignment_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (assignment_delete != null) {
|
|
||||||
json['assignment_delete'] = assignment_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAssignmentData({
|
|
||||||
this.assignment_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAssignmentVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteAssignmentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAssignmentVariables otherTyped = other as DeleteAssignmentVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAssignmentVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteAttireOptionVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteAttireOptionVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteAttireOptionData> dataDeserializer = (dynamic json) => DeleteAttireOptionData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteAttireOptionVariables> varsSerializer = (DeleteAttireOptionVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteAttireOptionData, DeleteAttireOptionVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteAttireOptionData, DeleteAttireOptionVariables> ref() {
|
|
||||||
DeleteAttireOptionVariables vars= DeleteAttireOptionVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteAttireOption", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAttireOptionAttireOptionDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteAttireOptionAttireOptionDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAttireOptionAttireOptionDelete otherTyped = other as DeleteAttireOptionAttireOptionDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAttireOptionAttireOptionDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAttireOptionData {
|
|
||||||
final DeleteAttireOptionAttireOptionDelete? attireOption_delete;
|
|
||||||
DeleteAttireOptionData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
attireOption_delete = json['attireOption_delete'] == null ? null : DeleteAttireOptionAttireOptionDelete.fromJson(json['attireOption_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAttireOptionData otherTyped = other as DeleteAttireOptionData;
|
|
||||||
return attireOption_delete == otherTyped.attireOption_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => attireOption_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (attireOption_delete != null) {
|
|
||||||
json['attireOption_delete'] = attireOption_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAttireOptionData({
|
|
||||||
this.attireOption_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteAttireOptionVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteAttireOptionVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteAttireOptionVariables otherTyped = other as DeleteAttireOptionVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteAttireOptionVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteBenefitsDataVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String vendorBenefitPlanId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteBenefitsDataVariablesBuilder(this._dataConnect, {required this.staffId,required this.vendorBenefitPlanId,});
|
|
||||||
Deserializer<DeleteBenefitsDataData> dataDeserializer = (dynamic json) => DeleteBenefitsDataData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteBenefitsDataVariables> varsSerializer = (DeleteBenefitsDataVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteBenefitsDataData, DeleteBenefitsDataVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteBenefitsDataData, DeleteBenefitsDataVariables> ref() {
|
|
||||||
DeleteBenefitsDataVariables vars= DeleteBenefitsDataVariables(staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,);
|
|
||||||
return _dataConnect.mutation("deleteBenefitsData", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBenefitsDataBenefitsDataDelete {
|
|
||||||
final String vendorBenefitPlanId;
|
|
||||||
final String staffId;
|
|
||||||
DeleteBenefitsDataBenefitsDataDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendorBenefitPlanId = nativeFromJson<String>(json['vendorBenefitPlanId']),
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBenefitsDataBenefitsDataDelete otherTyped = other as DeleteBenefitsDataBenefitsDataDelete;
|
|
||||||
return vendorBenefitPlanId == otherTyped.vendorBenefitPlanId &&
|
|
||||||
staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([vendorBenefitPlanId.hashCode, staffId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['vendorBenefitPlanId'] = nativeToJson<String>(vendorBenefitPlanId);
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBenefitsDataBenefitsDataDelete({
|
|
||||||
required this.vendorBenefitPlanId,
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBenefitsDataData {
|
|
||||||
final DeleteBenefitsDataBenefitsDataDelete? benefitsData_delete;
|
|
||||||
DeleteBenefitsDataData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
benefitsData_delete = json['benefitsData_delete'] == null ? null : DeleteBenefitsDataBenefitsDataDelete.fromJson(json['benefitsData_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBenefitsDataData otherTyped = other as DeleteBenefitsDataData;
|
|
||||||
return benefitsData_delete == otherTyped.benefitsData_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => benefitsData_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (benefitsData_delete != null) {
|
|
||||||
json['benefitsData_delete'] = benefitsData_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBenefitsDataData({
|
|
||||||
this.benefitsData_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBenefitsDataVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String vendorBenefitPlanId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteBenefitsDataVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
vendorBenefitPlanId = nativeFromJson<String>(json['vendorBenefitPlanId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBenefitsDataVariables otherTyped = other as DeleteBenefitsDataVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
vendorBenefitPlanId == otherTyped.vendorBenefitPlanId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, vendorBenefitPlanId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['vendorBenefitPlanId'] = nativeToJson<String>(vendorBenefitPlanId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBenefitsDataVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.vendorBenefitPlanId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteBusinessVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteBusinessVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteBusinessData> dataDeserializer = (dynamic json) => DeleteBusinessData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteBusinessVariables> varsSerializer = (DeleteBusinessVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteBusinessData, DeleteBusinessVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteBusinessData, DeleteBusinessVariables> ref() {
|
|
||||||
DeleteBusinessVariables vars= DeleteBusinessVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteBusiness", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBusinessBusinessDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteBusinessBusinessDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBusinessBusinessDelete otherTyped = other as DeleteBusinessBusinessDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBusinessBusinessDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBusinessData {
|
|
||||||
final DeleteBusinessBusinessDelete? business_delete;
|
|
||||||
DeleteBusinessData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
business_delete = json['business_delete'] == null ? null : DeleteBusinessBusinessDelete.fromJson(json['business_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBusinessData otherTyped = other as DeleteBusinessData;
|
|
||||||
return business_delete == otherTyped.business_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => business_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (business_delete != null) {
|
|
||||||
json['business_delete'] = business_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBusinessData({
|
|
||||||
this.business_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteBusinessVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteBusinessVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteBusinessVariables otherTyped = other as DeleteBusinessVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteBusinessVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteCategoryVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteCategoryVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteCategoryData> dataDeserializer = (dynamic json) => DeleteCategoryData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteCategoryVariables> varsSerializer = (DeleteCategoryVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteCategoryData, DeleteCategoryVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteCategoryData, DeleteCategoryVariables> ref() {
|
|
||||||
DeleteCategoryVariables vars= DeleteCategoryVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteCategory", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCategoryCategoryDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteCategoryCategoryDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCategoryCategoryDelete otherTyped = other as DeleteCategoryCategoryDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCategoryCategoryDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCategoryData {
|
|
||||||
final DeleteCategoryCategoryDelete? category_delete;
|
|
||||||
DeleteCategoryData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
category_delete = json['category_delete'] == null ? null : DeleteCategoryCategoryDelete.fromJson(json['category_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCategoryData otherTyped = other as DeleteCategoryData;
|
|
||||||
return category_delete == otherTyped.category_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => category_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (category_delete != null) {
|
|
||||||
json['category_delete'] = category_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCategoryData({
|
|
||||||
this.category_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCategoryVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteCategoryVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCategoryVariables otherTyped = other as DeleteCategoryVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCategoryVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteCertificateVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteCertificateVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteCertificateData> dataDeserializer = (dynamic json) => DeleteCertificateData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteCertificateVariables> varsSerializer = (DeleteCertificateVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteCertificateData, DeleteCertificateVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteCertificateData, DeleteCertificateVariables> ref() {
|
|
||||||
DeleteCertificateVariables vars= DeleteCertificateVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("DeleteCertificate", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCertificateCertificateDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteCertificateCertificateDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCertificateCertificateDelete otherTyped = other as DeleteCertificateCertificateDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCertificateCertificateDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCertificateData {
|
|
||||||
final DeleteCertificateCertificateDelete? certificate_delete;
|
|
||||||
DeleteCertificateData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
certificate_delete = json['certificate_delete'] == null ? null : DeleteCertificateCertificateDelete.fromJson(json['certificate_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCertificateData otherTyped = other as DeleteCertificateData;
|
|
||||||
return certificate_delete == otherTyped.certificate_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => certificate_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (certificate_delete != null) {
|
|
||||||
json['certificate_delete'] = certificate_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCertificateData({
|
|
||||||
this.certificate_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCertificateVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteCertificateVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCertificateVariables otherTyped = other as DeleteCertificateVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCertificateVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteClientFeedbackVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteClientFeedbackVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteClientFeedbackData> dataDeserializer = (dynamic json) => DeleteClientFeedbackData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteClientFeedbackVariables> varsSerializer = (DeleteClientFeedbackVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteClientFeedbackData, DeleteClientFeedbackVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteClientFeedbackData, DeleteClientFeedbackVariables> ref() {
|
|
||||||
DeleteClientFeedbackVariables vars= DeleteClientFeedbackVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteClientFeedback", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteClientFeedbackClientFeedbackDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteClientFeedbackClientFeedbackDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteClientFeedbackClientFeedbackDelete otherTyped = other as DeleteClientFeedbackClientFeedbackDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteClientFeedbackClientFeedbackDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteClientFeedbackData {
|
|
||||||
final DeleteClientFeedbackClientFeedbackDelete? clientFeedback_delete;
|
|
||||||
DeleteClientFeedbackData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
clientFeedback_delete = json['clientFeedback_delete'] == null ? null : DeleteClientFeedbackClientFeedbackDelete.fromJson(json['clientFeedback_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteClientFeedbackData otherTyped = other as DeleteClientFeedbackData;
|
|
||||||
return clientFeedback_delete == otherTyped.clientFeedback_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => clientFeedback_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (clientFeedback_delete != null) {
|
|
||||||
json['clientFeedback_delete'] = clientFeedback_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteClientFeedbackData({
|
|
||||||
this.clientFeedback_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteClientFeedbackVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteClientFeedbackVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteClientFeedbackVariables otherTyped = other as DeleteClientFeedbackVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteClientFeedbackVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteConversationVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteConversationVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteConversationData> dataDeserializer = (dynamic json) => DeleteConversationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteConversationVariables> varsSerializer = (DeleteConversationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteConversationData, DeleteConversationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteConversationData, DeleteConversationVariables> ref() {
|
|
||||||
DeleteConversationVariables vars= DeleteConversationVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteConversation", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteConversationConversationDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteConversationConversationDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteConversationConversationDelete otherTyped = other as DeleteConversationConversationDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteConversationConversationDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteConversationData {
|
|
||||||
final DeleteConversationConversationDelete? conversation_delete;
|
|
||||||
DeleteConversationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
conversation_delete = json['conversation_delete'] == null ? null : DeleteConversationConversationDelete.fromJson(json['conversation_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteConversationData otherTyped = other as DeleteConversationData;
|
|
||||||
return conversation_delete == otherTyped.conversation_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => conversation_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (conversation_delete != null) {
|
|
||||||
json['conversation_delete'] = conversation_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteConversationData({
|
|
||||||
this.conversation_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteConversationVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteConversationVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteConversationVariables otherTyped = other as DeleteConversationVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteConversationVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteCourseVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteCourseVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteCourseData> dataDeserializer = (dynamic json) => DeleteCourseData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteCourseVariables> varsSerializer = (DeleteCourseVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteCourseData, DeleteCourseVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteCourseData, DeleteCourseVariables> ref() {
|
|
||||||
DeleteCourseVariables vars= DeleteCourseVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteCourse", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCourseCourseDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteCourseCourseDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCourseCourseDelete otherTyped = other as DeleteCourseCourseDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCourseCourseDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCourseData {
|
|
||||||
final DeleteCourseCourseDelete? course_delete;
|
|
||||||
DeleteCourseData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
course_delete = json['course_delete'] == null ? null : DeleteCourseCourseDelete.fromJson(json['course_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCourseData otherTyped = other as DeleteCourseData;
|
|
||||||
return course_delete == otherTyped.course_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => course_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (course_delete != null) {
|
|
||||||
json['course_delete'] = course_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCourseData({
|
|
||||||
this.course_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCourseVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteCourseVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCourseVariables otherTyped = other as DeleteCourseVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCourseVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteCustomRateCardVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteCustomRateCardVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteCustomRateCardData> dataDeserializer = (dynamic json) => DeleteCustomRateCardData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteCustomRateCardVariables> varsSerializer = (DeleteCustomRateCardVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteCustomRateCardData, DeleteCustomRateCardVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteCustomRateCardData, DeleteCustomRateCardVariables> ref() {
|
|
||||||
DeleteCustomRateCardVariables vars= DeleteCustomRateCardVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteCustomRateCard", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCustomRateCardCustomRateCardDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteCustomRateCardCustomRateCardDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCustomRateCardCustomRateCardDelete otherTyped = other as DeleteCustomRateCardCustomRateCardDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCustomRateCardCustomRateCardDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCustomRateCardData {
|
|
||||||
final DeleteCustomRateCardCustomRateCardDelete? customRateCard_delete;
|
|
||||||
DeleteCustomRateCardData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
customRateCard_delete = json['customRateCard_delete'] == null ? null : DeleteCustomRateCardCustomRateCardDelete.fromJson(json['customRateCard_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCustomRateCardData otherTyped = other as DeleteCustomRateCardData;
|
|
||||||
return customRateCard_delete == otherTyped.customRateCard_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => customRateCard_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (customRateCard_delete != null) {
|
|
||||||
json['customRateCard_delete'] = customRateCard_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCustomRateCardData({
|
|
||||||
this.customRateCard_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteCustomRateCardVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteCustomRateCardVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteCustomRateCardVariables otherTyped = other as DeleteCustomRateCardVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteCustomRateCardVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteDocumentVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteDocumentVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteDocumentData> dataDeserializer = (dynamic json) => DeleteDocumentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteDocumentVariables> varsSerializer = (DeleteDocumentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteDocumentData, DeleteDocumentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteDocumentData, DeleteDocumentVariables> ref() {
|
|
||||||
DeleteDocumentVariables vars= DeleteDocumentVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteDocument", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteDocumentDocumentDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteDocumentDocumentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteDocumentDocumentDelete otherTyped = other as DeleteDocumentDocumentDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteDocumentDocumentDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteDocumentData {
|
|
||||||
final DeleteDocumentDocumentDelete? document_delete;
|
|
||||||
DeleteDocumentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
document_delete = json['document_delete'] == null ? null : DeleteDocumentDocumentDelete.fromJson(json['document_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteDocumentData otherTyped = other as DeleteDocumentData;
|
|
||||||
return document_delete == otherTyped.document_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => document_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (document_delete != null) {
|
|
||||||
json['document_delete'] = document_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteDocumentData({
|
|
||||||
this.document_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteDocumentVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteDocumentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteDocumentVariables otherTyped = other as DeleteDocumentVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteDocumentVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteEmergencyContactVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteEmergencyContactVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteEmergencyContactData> dataDeserializer = (dynamic json) => DeleteEmergencyContactData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteEmergencyContactVariables> varsSerializer = (DeleteEmergencyContactVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteEmergencyContactData, DeleteEmergencyContactVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteEmergencyContactData, DeleteEmergencyContactVariables> ref() {
|
|
||||||
DeleteEmergencyContactVariables vars= DeleteEmergencyContactVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteEmergencyContact", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteEmergencyContactEmergencyContactDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteEmergencyContactEmergencyContactDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteEmergencyContactEmergencyContactDelete otherTyped = other as DeleteEmergencyContactEmergencyContactDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteEmergencyContactEmergencyContactDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteEmergencyContactData {
|
|
||||||
final DeleteEmergencyContactEmergencyContactDelete? emergencyContact_delete;
|
|
||||||
DeleteEmergencyContactData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
emergencyContact_delete = json['emergencyContact_delete'] == null ? null : DeleteEmergencyContactEmergencyContactDelete.fromJson(json['emergencyContact_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteEmergencyContactData otherTyped = other as DeleteEmergencyContactData;
|
|
||||||
return emergencyContact_delete == otherTyped.emergencyContact_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => emergencyContact_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (emergencyContact_delete != null) {
|
|
||||||
json['emergencyContact_delete'] = emergencyContact_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteEmergencyContactData({
|
|
||||||
this.emergencyContact_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteEmergencyContactVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteEmergencyContactVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteEmergencyContactVariables otherTyped = other as DeleteEmergencyContactVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteEmergencyContactVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteFaqDataVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteFaqDataVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteFaqDataData> dataDeserializer = (dynamic json) => DeleteFaqDataData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteFaqDataVariables> varsSerializer = (DeleteFaqDataVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteFaqDataData, DeleteFaqDataVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteFaqDataData, DeleteFaqDataVariables> ref() {
|
|
||||||
DeleteFaqDataVariables vars= DeleteFaqDataVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteFaqData", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteFaqDataFaqDataDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteFaqDataFaqDataDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteFaqDataFaqDataDelete otherTyped = other as DeleteFaqDataFaqDataDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteFaqDataFaqDataDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteFaqDataData {
|
|
||||||
final DeleteFaqDataFaqDataDelete? faqData_delete;
|
|
||||||
DeleteFaqDataData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
faqData_delete = json['faqData_delete'] == null ? null : DeleteFaqDataFaqDataDelete.fromJson(json['faqData_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteFaqDataData otherTyped = other as DeleteFaqDataData;
|
|
||||||
return faqData_delete == otherTyped.faqData_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => faqData_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (faqData_delete != null) {
|
|
||||||
json['faqData_delete'] = faqData_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteFaqDataData({
|
|
||||||
this.faqData_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteFaqDataVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteFaqDataVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteFaqDataVariables otherTyped = other as DeleteFaqDataVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteFaqDataVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteHubVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteHubVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteHubData> dataDeserializer = (dynamic json) => DeleteHubData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteHubVariables> varsSerializer = (DeleteHubVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteHubData, DeleteHubVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteHubData, DeleteHubVariables> ref() {
|
|
||||||
DeleteHubVariables vars= DeleteHubVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteHub", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteHubHubDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteHubHubDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteHubHubDelete otherTyped = other as DeleteHubHubDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteHubHubDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteHubData {
|
|
||||||
final DeleteHubHubDelete? hub_delete;
|
|
||||||
DeleteHubData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
hub_delete = json['hub_delete'] == null ? null : DeleteHubHubDelete.fromJson(json['hub_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteHubData otherTyped = other as DeleteHubData;
|
|
||||||
return hub_delete == otherTyped.hub_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => hub_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (hub_delete != null) {
|
|
||||||
json['hub_delete'] = hub_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteHubData({
|
|
||||||
this.hub_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteHubVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteHubVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteHubVariables otherTyped = other as DeleteHubVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteHubVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteInvoiceVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteInvoiceVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteInvoiceData> dataDeserializer = (dynamic json) => DeleteInvoiceData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteInvoiceVariables> varsSerializer = (DeleteInvoiceVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteInvoiceData, DeleteInvoiceVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteInvoiceData, DeleteInvoiceVariables> ref() {
|
|
||||||
DeleteInvoiceVariables vars= DeleteInvoiceVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteInvoice", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceInvoiceDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteInvoiceInvoiceDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceInvoiceDelete otherTyped = other as DeleteInvoiceInvoiceDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceInvoiceDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceData {
|
|
||||||
final DeleteInvoiceInvoiceDelete? invoice_delete;
|
|
||||||
DeleteInvoiceData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
invoice_delete = json['invoice_delete'] == null ? null : DeleteInvoiceInvoiceDelete.fromJson(json['invoice_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceData otherTyped = other as DeleteInvoiceData;
|
|
||||||
return invoice_delete == otherTyped.invoice_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => invoice_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (invoice_delete != null) {
|
|
||||||
json['invoice_delete'] = invoice_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceData({
|
|
||||||
this.invoice_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteInvoiceVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceVariables otherTyped = other as DeleteInvoiceVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteInvoiceTemplateVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteInvoiceTemplateVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteInvoiceTemplateData> dataDeserializer = (dynamic json) => DeleteInvoiceTemplateData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteInvoiceTemplateVariables> varsSerializer = (DeleteInvoiceTemplateVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteInvoiceTemplateData, DeleteInvoiceTemplateVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteInvoiceTemplateData, DeleteInvoiceTemplateVariables> ref() {
|
|
||||||
DeleteInvoiceTemplateVariables vars= DeleteInvoiceTemplateVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteInvoiceTemplate", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceTemplateInvoiceTemplateDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteInvoiceTemplateInvoiceTemplateDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceTemplateInvoiceTemplateDelete otherTyped = other as DeleteInvoiceTemplateInvoiceTemplateDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceTemplateInvoiceTemplateDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceTemplateData {
|
|
||||||
final DeleteInvoiceTemplateInvoiceTemplateDelete? invoiceTemplate_delete;
|
|
||||||
DeleteInvoiceTemplateData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
invoiceTemplate_delete = json['invoiceTemplate_delete'] == null ? null : DeleteInvoiceTemplateInvoiceTemplateDelete.fromJson(json['invoiceTemplate_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceTemplateData otherTyped = other as DeleteInvoiceTemplateData;
|
|
||||||
return invoiceTemplate_delete == otherTyped.invoiceTemplate_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => invoiceTemplate_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (invoiceTemplate_delete != null) {
|
|
||||||
json['invoiceTemplate_delete'] = invoiceTemplate_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceTemplateData({
|
|
||||||
this.invoiceTemplate_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteInvoiceTemplateVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteInvoiceTemplateVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteInvoiceTemplateVariables otherTyped = other as DeleteInvoiceTemplateVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteInvoiceTemplateVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteLevelVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteLevelVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteLevelData> dataDeserializer = (dynamic json) => DeleteLevelData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteLevelVariables> varsSerializer = (DeleteLevelVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteLevelData, DeleteLevelVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteLevelData, DeleteLevelVariables> ref() {
|
|
||||||
DeleteLevelVariables vars= DeleteLevelVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteLevel", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteLevelLevelDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteLevelLevelDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteLevelLevelDelete otherTyped = other as DeleteLevelLevelDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteLevelLevelDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteLevelData {
|
|
||||||
final DeleteLevelLevelDelete? level_delete;
|
|
||||||
DeleteLevelData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
level_delete = json['level_delete'] == null ? null : DeleteLevelLevelDelete.fromJson(json['level_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteLevelData otherTyped = other as DeleteLevelData;
|
|
||||||
return level_delete == otherTyped.level_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => level_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (level_delete != null) {
|
|
||||||
json['level_delete'] = level_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteLevelData({
|
|
||||||
this.level_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteLevelVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteLevelVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteLevelVariables otherTyped = other as DeleteLevelVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteLevelVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteMemberTaskVariablesBuilder {
|
|
||||||
String teamMemberId;
|
|
||||||
String taskId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteMemberTaskVariablesBuilder(this._dataConnect, {required this.teamMemberId,required this.taskId,});
|
|
||||||
Deserializer<DeleteMemberTaskData> dataDeserializer = (dynamic json) => DeleteMemberTaskData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteMemberTaskVariables> varsSerializer = (DeleteMemberTaskVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteMemberTaskData, DeleteMemberTaskVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteMemberTaskData, DeleteMemberTaskVariables> ref() {
|
|
||||||
DeleteMemberTaskVariables vars= DeleteMemberTaskVariables(teamMemberId: teamMemberId,taskId: taskId,);
|
|
||||||
return _dataConnect.mutation("deleteMemberTask", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMemberTaskMemberTaskDelete {
|
|
||||||
final String teamMemberId;
|
|
||||||
final String taskId;
|
|
||||||
DeleteMemberTaskMemberTaskDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMemberId = nativeFromJson<String>(json['teamMemberId']),
|
|
||||||
taskId = nativeFromJson<String>(json['taskId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMemberTaskMemberTaskDelete otherTyped = other as DeleteMemberTaskMemberTaskDelete;
|
|
||||||
return teamMemberId == otherTyped.teamMemberId &&
|
|
||||||
taskId == otherTyped.taskId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamMemberId.hashCode, taskId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMemberId'] = nativeToJson<String>(teamMemberId);
|
|
||||||
json['taskId'] = nativeToJson<String>(taskId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMemberTaskMemberTaskDelete({
|
|
||||||
required this.teamMemberId,
|
|
||||||
required this.taskId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMemberTaskData {
|
|
||||||
final DeleteMemberTaskMemberTaskDelete? memberTask_delete;
|
|
||||||
DeleteMemberTaskData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
memberTask_delete = json['memberTask_delete'] == null ? null : DeleteMemberTaskMemberTaskDelete.fromJson(json['memberTask_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMemberTaskData otherTyped = other as DeleteMemberTaskData;
|
|
||||||
return memberTask_delete == otherTyped.memberTask_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => memberTask_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (memberTask_delete != null) {
|
|
||||||
json['memberTask_delete'] = memberTask_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMemberTaskData({
|
|
||||||
this.memberTask_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMemberTaskVariables {
|
|
||||||
final String teamMemberId;
|
|
||||||
final String taskId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteMemberTaskVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
teamMemberId = nativeFromJson<String>(json['teamMemberId']),
|
|
||||||
taskId = nativeFromJson<String>(json['taskId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMemberTaskVariables otherTyped = other as DeleteMemberTaskVariables;
|
|
||||||
return teamMemberId == otherTyped.teamMemberId &&
|
|
||||||
taskId == otherTyped.taskId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([teamMemberId.hashCode, taskId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['teamMemberId'] = nativeToJson<String>(teamMemberId);
|
|
||||||
json['taskId'] = nativeToJson<String>(taskId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMemberTaskVariables({
|
|
||||||
required this.teamMemberId,
|
|
||||||
required this.taskId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteMessageVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteMessageVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteMessageData> dataDeserializer = (dynamic json) => DeleteMessageData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteMessageVariables> varsSerializer = (DeleteMessageVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteMessageData, DeleteMessageVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteMessageData, DeleteMessageVariables> ref() {
|
|
||||||
DeleteMessageVariables vars= DeleteMessageVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteMessage", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMessageMessageDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteMessageMessageDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMessageMessageDelete otherTyped = other as DeleteMessageMessageDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMessageMessageDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMessageData {
|
|
||||||
final DeleteMessageMessageDelete? message_delete;
|
|
||||||
DeleteMessageData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
message_delete = json['message_delete'] == null ? null : DeleteMessageMessageDelete.fromJson(json['message_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMessageData otherTyped = other as DeleteMessageData;
|
|
||||||
return message_delete == otherTyped.message_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => message_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (message_delete != null) {
|
|
||||||
json['message_delete'] = message_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMessageData({
|
|
||||||
this.message_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteMessageVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteMessageVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteMessageVariables otherTyped = other as DeleteMessageVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteMessageVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteOrderVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteOrderVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteOrderData> dataDeserializer = (dynamic json) => DeleteOrderData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteOrderVariables> varsSerializer = (DeleteOrderVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteOrderData, DeleteOrderVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteOrderData, DeleteOrderVariables> ref() {
|
|
||||||
DeleteOrderVariables vars= DeleteOrderVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteOrder", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteOrderOrderDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteOrderOrderDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteOrderOrderDelete otherTyped = other as DeleteOrderOrderDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteOrderOrderDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteOrderData {
|
|
||||||
final DeleteOrderOrderDelete? order_delete;
|
|
||||||
DeleteOrderData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
order_delete = json['order_delete'] == null ? null : DeleteOrderOrderDelete.fromJson(json['order_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteOrderData otherTyped = other as DeleteOrderData;
|
|
||||||
return order_delete == otherTyped.order_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => order_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (order_delete != null) {
|
|
||||||
json['order_delete'] = order_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteOrderData({
|
|
||||||
this.order_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteOrderVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteOrderVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteOrderVariables otherTyped = other as DeleteOrderVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteOrderVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteRecentPaymentVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteRecentPaymentVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteRecentPaymentData> dataDeserializer = (dynamic json) => DeleteRecentPaymentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteRecentPaymentVariables> varsSerializer = (DeleteRecentPaymentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteRecentPaymentData, DeleteRecentPaymentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteRecentPaymentData, DeleteRecentPaymentVariables> ref() {
|
|
||||||
DeleteRecentPaymentVariables vars= DeleteRecentPaymentVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteRecentPayment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRecentPaymentRecentPaymentDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteRecentPaymentRecentPaymentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRecentPaymentRecentPaymentDelete otherTyped = other as DeleteRecentPaymentRecentPaymentDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRecentPaymentRecentPaymentDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRecentPaymentData {
|
|
||||||
final DeleteRecentPaymentRecentPaymentDelete? recentPayment_delete;
|
|
||||||
DeleteRecentPaymentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
recentPayment_delete = json['recentPayment_delete'] == null ? null : DeleteRecentPaymentRecentPaymentDelete.fromJson(json['recentPayment_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRecentPaymentData otherTyped = other as DeleteRecentPaymentData;
|
|
||||||
return recentPayment_delete == otherTyped.recentPayment_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => recentPayment_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (recentPayment_delete != null) {
|
|
||||||
json['recentPayment_delete'] = recentPayment_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRecentPaymentData({
|
|
||||||
this.recentPayment_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRecentPaymentVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteRecentPaymentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRecentPaymentVariables otherTyped = other as DeleteRecentPaymentVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRecentPaymentVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteRoleVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteRoleVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteRoleData> dataDeserializer = (dynamic json) => DeleteRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteRoleVariables> varsSerializer = (DeleteRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteRoleData, DeleteRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteRoleData, DeleteRoleVariables> ref() {
|
|
||||||
DeleteRoleVariables vars= DeleteRoleVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleRoleDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteRoleRoleDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleRoleDelete otherTyped = other as DeleteRoleRoleDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleRoleDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleData {
|
|
||||||
final DeleteRoleRoleDelete? role_delete;
|
|
||||||
DeleteRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
role_delete = json['role_delete'] == null ? null : DeleteRoleRoleDelete.fromJson(json['role_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleData otherTyped = other as DeleteRoleData;
|
|
||||||
return role_delete == otherTyped.role_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => role_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (role_delete != null) {
|
|
||||||
json['role_delete'] = role_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleData({
|
|
||||||
this.role_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleVariables otherTyped = other as DeleteRoleVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteRoleCategoryVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteRoleCategoryVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteRoleCategoryData> dataDeserializer = (dynamic json) => DeleteRoleCategoryData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteRoleCategoryVariables> varsSerializer = (DeleteRoleCategoryVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteRoleCategoryData, DeleteRoleCategoryVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteRoleCategoryData, DeleteRoleCategoryVariables> ref() {
|
|
||||||
DeleteRoleCategoryVariables vars= DeleteRoleCategoryVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteRoleCategory", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleCategoryRoleCategoryDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteRoleCategoryRoleCategoryDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleCategoryRoleCategoryDelete otherTyped = other as DeleteRoleCategoryRoleCategoryDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleCategoryRoleCategoryDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleCategoryData {
|
|
||||||
final DeleteRoleCategoryRoleCategoryDelete? roleCategory_delete;
|
|
||||||
DeleteRoleCategoryData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
roleCategory_delete = json['roleCategory_delete'] == null ? null : DeleteRoleCategoryRoleCategoryDelete.fromJson(json['roleCategory_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleCategoryData otherTyped = other as DeleteRoleCategoryData;
|
|
||||||
return roleCategory_delete == otherTyped.roleCategory_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => roleCategory_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (roleCategory_delete != null) {
|
|
||||||
json['roleCategory_delete'] = roleCategory_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleCategoryData({
|
|
||||||
this.roleCategory_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteRoleCategoryVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteRoleCategoryVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteRoleCategoryVariables otherTyped = other as DeleteRoleCategoryVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteRoleCategoryVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteShiftVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteShiftVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteShiftData> dataDeserializer = (dynamic json) => DeleteShiftData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteShiftVariables> varsSerializer = (DeleteShiftVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteShiftData, DeleteShiftVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteShiftData, DeleteShiftVariables> ref() {
|
|
||||||
DeleteShiftVariables vars= DeleteShiftVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteShift", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftShiftDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteShiftShiftDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftShiftDelete otherTyped = other as DeleteShiftShiftDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftShiftDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftData {
|
|
||||||
final DeleteShiftShiftDelete? shift_delete;
|
|
||||||
DeleteShiftData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shift_delete = json['shift_delete'] == null ? null : DeleteShiftShiftDelete.fromJson(json['shift_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftData otherTyped = other as DeleteShiftData;
|
|
||||||
return shift_delete == otherTyped.shift_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => shift_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (shift_delete != null) {
|
|
||||||
json['shift_delete'] = shift_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftData({
|
|
||||||
this.shift_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteShiftVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftVariables otherTyped = other as DeleteShiftVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteShiftRoleVariablesBuilder {
|
|
||||||
String shiftId;
|
|
||||||
String roleId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteShiftRoleVariablesBuilder(this._dataConnect, {required this.shiftId,required this.roleId,});
|
|
||||||
Deserializer<DeleteShiftRoleData> dataDeserializer = (dynamic json) => DeleteShiftRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteShiftRoleVariables> varsSerializer = (DeleteShiftRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteShiftRoleData, DeleteShiftRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteShiftRoleData, DeleteShiftRoleVariables> ref() {
|
|
||||||
DeleteShiftRoleVariables vars= DeleteShiftRoleVariables(shiftId: shiftId,roleId: roleId,);
|
|
||||||
return _dataConnect.mutation("deleteShiftRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftRoleShiftRoleDelete {
|
|
||||||
final String shiftId;
|
|
||||||
final String roleId;
|
|
||||||
DeleteShiftRoleShiftRoleDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftRoleShiftRoleDelete otherTyped = other as DeleteShiftRoleShiftRoleDelete;
|
|
||||||
return shiftId == otherTyped.shiftId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([shiftId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftRoleShiftRoleDelete({
|
|
||||||
required this.shiftId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftRoleData {
|
|
||||||
final DeleteShiftRoleShiftRoleDelete? shiftRole_delete;
|
|
||||||
DeleteShiftRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
shiftRole_delete = json['shiftRole_delete'] == null ? null : DeleteShiftRoleShiftRoleDelete.fromJson(json['shiftRole_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftRoleData otherTyped = other as DeleteShiftRoleData;
|
|
||||||
return shiftRole_delete == otherTyped.shiftRole_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => shiftRole_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (shiftRole_delete != null) {
|
|
||||||
json['shiftRole_delete'] = shiftRole_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftRoleData({
|
|
||||||
this.shiftRole_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteShiftRoleVariables {
|
|
||||||
final String shiftId;
|
|
||||||
final String roleId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteShiftRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
shiftId = nativeFromJson<String>(json['shiftId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteShiftRoleVariables otherTyped = other as DeleteShiftRoleVariables;
|
|
||||||
return shiftId == otherTyped.shiftId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([shiftId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['shiftId'] = nativeToJson<String>(shiftId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteShiftRoleVariables({
|
|
||||||
required this.shiftId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteStaffData> dataDeserializer = (dynamic json) => DeleteStaffData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffVariables> varsSerializer = (DeleteStaffVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffData, DeleteStaffVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffData, DeleteStaffVariables> ref() {
|
|
||||||
DeleteStaffVariables vars= DeleteStaffVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("DeleteStaff", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffStaffDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteStaffStaffDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffStaffDelete otherTyped = other as DeleteStaffStaffDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffStaffDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffData {
|
|
||||||
final DeleteStaffStaffDelete? staff_delete;
|
|
||||||
DeleteStaffData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staff_delete = json['staff_delete'] == null ? null : DeleteStaffStaffDelete.fromJson(json['staff_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffData otherTyped = other as DeleteStaffData;
|
|
||||||
return staff_delete == otherTyped.staff_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staff_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staff_delete != null) {
|
|
||||||
json['staff_delete'] = staff_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffData({
|
|
||||||
this.staff_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffVariables otherTyped = other as DeleteStaffVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffAvailabilityVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
DayOfWeek day;
|
|
||||||
AvailabilitySlot slot;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffAvailabilityVariablesBuilder(this._dataConnect, {required this.staffId,required this.day,required this.slot,});
|
|
||||||
Deserializer<DeleteStaffAvailabilityData> dataDeserializer = (dynamic json) => DeleteStaffAvailabilityData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffAvailabilityVariables> varsSerializer = (DeleteStaffAvailabilityVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffAvailabilityData, DeleteStaffAvailabilityVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffAvailabilityData, DeleteStaffAvailabilityVariables> ref() {
|
|
||||||
DeleteStaffAvailabilityVariables vars= DeleteStaffAvailabilityVariables(staffId: staffId,day: day,slot: slot,);
|
|
||||||
return _dataConnect.mutation("deleteStaffAvailability", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityStaffAvailabilityDelete {
|
|
||||||
final String staffId;
|
|
||||||
final EnumValue<DayOfWeek> day;
|
|
||||||
final EnumValue<AvailabilitySlot> slot;
|
|
||||||
DeleteStaffAvailabilityStaffAvailabilityDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
day = dayOfWeekDeserializer(json['day']),
|
|
||||||
slot = availabilitySlotDeserializer(json['slot']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityStaffAvailabilityDelete otherTyped = other as DeleteStaffAvailabilityStaffAvailabilityDelete;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
day == otherTyped.day &&
|
|
||||||
slot == otherTyped.slot;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, day.hashCode, slot.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['day'] =
|
|
||||||
dayOfWeekSerializer(day)
|
|
||||||
;
|
|
||||||
json['slot'] =
|
|
||||||
availabilitySlotSerializer(slot)
|
|
||||||
;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityStaffAvailabilityDelete({
|
|
||||||
required this.staffId,
|
|
||||||
required this.day,
|
|
||||||
required this.slot,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityData {
|
|
||||||
final DeleteStaffAvailabilityStaffAvailabilityDelete? staffAvailability_delete;
|
|
||||||
DeleteStaffAvailabilityData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffAvailability_delete = json['staffAvailability_delete'] == null ? null : DeleteStaffAvailabilityStaffAvailabilityDelete.fromJson(json['staffAvailability_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityData otherTyped = other as DeleteStaffAvailabilityData;
|
|
||||||
return staffAvailability_delete == otherTyped.staffAvailability_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffAvailability_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staffAvailability_delete != null) {
|
|
||||||
json['staffAvailability_delete'] = staffAvailability_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityData({
|
|
||||||
this.staffAvailability_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityVariables {
|
|
||||||
final String staffId;
|
|
||||||
final DayOfWeek day;
|
|
||||||
final AvailabilitySlot slot;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffAvailabilityVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
day = DayOfWeek.values.byName(json['day']),
|
|
||||||
slot = AvailabilitySlot.values.byName(json['slot']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityVariables otherTyped = other as DeleteStaffAvailabilityVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
day == otherTyped.day &&
|
|
||||||
slot == otherTyped.slot;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, day.hashCode, slot.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['day'] =
|
|
||||||
day.name
|
|
||||||
;
|
|
||||||
json['slot'] =
|
|
||||||
slot.name
|
|
||||||
;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.day,
|
|
||||||
required this.slot,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffAvailabilityStatsVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffAvailabilityStatsVariablesBuilder(this._dataConnect, {required this.staffId,});
|
|
||||||
Deserializer<DeleteStaffAvailabilityStatsData> dataDeserializer = (dynamic json) => DeleteStaffAvailabilityStatsData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffAvailabilityStatsVariables> varsSerializer = (DeleteStaffAvailabilityStatsVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffAvailabilityStatsData, DeleteStaffAvailabilityStatsVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffAvailabilityStatsData, DeleteStaffAvailabilityStatsVariables> ref() {
|
|
||||||
DeleteStaffAvailabilityStatsVariables vars= DeleteStaffAvailabilityStatsVariables(staffId: staffId,);
|
|
||||||
return _dataConnect.mutation("deleteStaffAvailabilityStats", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete {
|
|
||||||
final String staffId;
|
|
||||||
DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete otherTyped = other as DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete;
|
|
||||||
return staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffId.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete({
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityStatsData {
|
|
||||||
final DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete? staffAvailabilityStats_delete;
|
|
||||||
DeleteStaffAvailabilityStatsData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffAvailabilityStats_delete = json['staffAvailabilityStats_delete'] == null ? null : DeleteStaffAvailabilityStatsStaffAvailabilityStatsDelete.fromJson(json['staffAvailabilityStats_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityStatsData otherTyped = other as DeleteStaffAvailabilityStatsData;
|
|
||||||
return staffAvailabilityStats_delete == otherTyped.staffAvailabilityStats_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffAvailabilityStats_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staffAvailabilityStats_delete != null) {
|
|
||||||
json['staffAvailabilityStats_delete'] = staffAvailabilityStats_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityStatsData({
|
|
||||||
this.staffAvailabilityStats_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffAvailabilityStatsVariables {
|
|
||||||
final String staffId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffAvailabilityStatsVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffAvailabilityStatsVariables otherTyped = other as DeleteStaffAvailabilityStatsVariables;
|
|
||||||
return staffId == otherTyped.staffId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffId.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffAvailabilityStatsVariables({
|
|
||||||
required this.staffId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffCourseVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffCourseVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteStaffCourseData> dataDeserializer = (dynamic json) => DeleteStaffCourseData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffCourseVariables> varsSerializer = (DeleteStaffCourseVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffCourseData, DeleteStaffCourseVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffCourseData, DeleteStaffCourseVariables> ref() {
|
|
||||||
DeleteStaffCourseVariables vars= DeleteStaffCourseVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteStaffCourse", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffCourseStaffCourseDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteStaffCourseStaffCourseDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffCourseStaffCourseDelete otherTyped = other as DeleteStaffCourseStaffCourseDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffCourseStaffCourseDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffCourseData {
|
|
||||||
final DeleteStaffCourseStaffCourseDelete? staffCourse_delete;
|
|
||||||
DeleteStaffCourseData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffCourse_delete = json['staffCourse_delete'] == null ? null : DeleteStaffCourseStaffCourseDelete.fromJson(json['staffCourse_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffCourseData otherTyped = other as DeleteStaffCourseData;
|
|
||||||
return staffCourse_delete == otherTyped.staffCourse_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffCourse_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staffCourse_delete != null) {
|
|
||||||
json['staffCourse_delete'] = staffCourse_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffCourseData({
|
|
||||||
this.staffCourse_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffCourseVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffCourseVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffCourseVariables otherTyped = other as DeleteStaffCourseVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffCourseVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffDocumentVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String documentId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffDocumentVariablesBuilder(this._dataConnect, {required this.staffId,required this.documentId,});
|
|
||||||
Deserializer<DeleteStaffDocumentData> dataDeserializer = (dynamic json) => DeleteStaffDocumentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffDocumentVariables> varsSerializer = (DeleteStaffDocumentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffDocumentData, DeleteStaffDocumentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffDocumentData, DeleteStaffDocumentVariables> ref() {
|
|
||||||
DeleteStaffDocumentVariables vars= DeleteStaffDocumentVariables(staffId: staffId,documentId: documentId,);
|
|
||||||
return _dataConnect.mutation("deleteStaffDocument", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffDocumentStaffDocumentDelete {
|
|
||||||
final String staffId;
|
|
||||||
final String documentId;
|
|
||||||
DeleteStaffDocumentStaffDocumentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
documentId = nativeFromJson<String>(json['documentId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffDocumentStaffDocumentDelete otherTyped = other as DeleteStaffDocumentStaffDocumentDelete;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
documentId == otherTyped.documentId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, documentId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['documentId'] = nativeToJson<String>(documentId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffDocumentStaffDocumentDelete({
|
|
||||||
required this.staffId,
|
|
||||||
required this.documentId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffDocumentData {
|
|
||||||
final DeleteStaffDocumentStaffDocumentDelete? staffDocument_delete;
|
|
||||||
DeleteStaffDocumentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffDocument_delete = json['staffDocument_delete'] == null ? null : DeleteStaffDocumentStaffDocumentDelete.fromJson(json['staffDocument_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffDocumentData otherTyped = other as DeleteStaffDocumentData;
|
|
||||||
return staffDocument_delete == otherTyped.staffDocument_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffDocument_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staffDocument_delete != null) {
|
|
||||||
json['staffDocument_delete'] = staffDocument_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffDocumentData({
|
|
||||||
this.staffDocument_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffDocumentVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String documentId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffDocumentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
documentId = nativeFromJson<String>(json['documentId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffDocumentVariables otherTyped = other as DeleteStaffDocumentVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
documentId == otherTyped.documentId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, documentId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['documentId'] = nativeToJson<String>(documentId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffDocumentVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.documentId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteStaffRoleVariablesBuilder {
|
|
||||||
String staffId;
|
|
||||||
String roleId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteStaffRoleVariablesBuilder(this._dataConnect, {required this.staffId,required this.roleId,});
|
|
||||||
Deserializer<DeleteStaffRoleData> dataDeserializer = (dynamic json) => DeleteStaffRoleData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteStaffRoleVariables> varsSerializer = (DeleteStaffRoleVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteStaffRoleData, DeleteStaffRoleVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteStaffRoleData, DeleteStaffRoleVariables> ref() {
|
|
||||||
DeleteStaffRoleVariables vars= DeleteStaffRoleVariables(staffId: staffId,roleId: roleId,);
|
|
||||||
return _dataConnect.mutation("deleteStaffRole", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffRoleStaffRoleDelete {
|
|
||||||
final String staffId;
|
|
||||||
final String roleId;
|
|
||||||
DeleteStaffRoleStaffRoleDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffRoleStaffRoleDelete otherTyped = other as DeleteStaffRoleStaffRoleDelete;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffRoleStaffRoleDelete({
|
|
||||||
required this.staffId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffRoleData {
|
|
||||||
final DeleteStaffRoleStaffRoleDelete? staffRole_delete;
|
|
||||||
DeleteStaffRoleData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
staffRole_delete = json['staffRole_delete'] == null ? null : DeleteStaffRoleStaffRoleDelete.fromJson(json['staffRole_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffRoleData otherTyped = other as DeleteStaffRoleData;
|
|
||||||
return staffRole_delete == otherTyped.staffRole_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => staffRole_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (staffRole_delete != null) {
|
|
||||||
json['staffRole_delete'] = staffRole_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffRoleData({
|
|
||||||
this.staffRole_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteStaffRoleVariables {
|
|
||||||
final String staffId;
|
|
||||||
final String roleId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteStaffRoleVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
staffId = nativeFromJson<String>(json['staffId']),
|
|
||||||
roleId = nativeFromJson<String>(json['roleId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteStaffRoleVariables otherTyped = other as DeleteStaffRoleVariables;
|
|
||||||
return staffId == otherTyped.staffId &&
|
|
||||||
roleId == otherTyped.roleId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([staffId.hashCode, roleId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['staffId'] = nativeToJson<String>(staffId);
|
|
||||||
json['roleId'] = nativeToJson<String>(roleId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteStaffRoleVariables({
|
|
||||||
required this.staffId,
|
|
||||||
required this.roleId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTaskVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTaskVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTaskData> dataDeserializer = (dynamic json) => DeleteTaskData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTaskVariables> varsSerializer = (DeleteTaskVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTaskData, DeleteTaskVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTaskData, DeleteTaskVariables> ref() {
|
|
||||||
DeleteTaskVariables vars= DeleteTaskVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTask", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskTaskDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTaskTaskDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskTaskDelete otherTyped = other as DeleteTaskTaskDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskTaskDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskData {
|
|
||||||
final DeleteTaskTaskDelete? task_delete;
|
|
||||||
DeleteTaskData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
task_delete = json['task_delete'] == null ? null : DeleteTaskTaskDelete.fromJson(json['task_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskData otherTyped = other as DeleteTaskData;
|
|
||||||
return task_delete == otherTyped.task_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => task_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (task_delete != null) {
|
|
||||||
json['task_delete'] = task_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskData({
|
|
||||||
this.task_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTaskVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskVariables otherTyped = other as DeleteTaskVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTaskCommentVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTaskCommentVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTaskCommentData> dataDeserializer = (dynamic json) => DeleteTaskCommentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTaskCommentVariables> varsSerializer = (DeleteTaskCommentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTaskCommentData, DeleteTaskCommentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTaskCommentData, DeleteTaskCommentVariables> ref() {
|
|
||||||
DeleteTaskCommentVariables vars= DeleteTaskCommentVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTaskComment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskCommentTaskCommentDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTaskCommentTaskCommentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskCommentTaskCommentDelete otherTyped = other as DeleteTaskCommentTaskCommentDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskCommentTaskCommentDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskCommentData {
|
|
||||||
final DeleteTaskCommentTaskCommentDelete? taskComment_delete;
|
|
||||||
DeleteTaskCommentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
taskComment_delete = json['taskComment_delete'] == null ? null : DeleteTaskCommentTaskCommentDelete.fromJson(json['taskComment_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskCommentData otherTyped = other as DeleteTaskCommentData;
|
|
||||||
return taskComment_delete == otherTyped.taskComment_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => taskComment_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (taskComment_delete != null) {
|
|
||||||
json['taskComment_delete'] = taskComment_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskCommentData({
|
|
||||||
this.taskComment_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaskCommentVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTaskCommentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaskCommentVariables otherTyped = other as DeleteTaskCommentVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaskCommentVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTaxFormVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTaxFormVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTaxFormData> dataDeserializer = (dynamic json) => DeleteTaxFormData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTaxFormVariables> varsSerializer = (DeleteTaxFormVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTaxFormData, DeleteTaxFormVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTaxFormData, DeleteTaxFormVariables> ref() {
|
|
||||||
DeleteTaxFormVariables vars= DeleteTaxFormVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTaxForm", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaxFormTaxFormDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTaxFormTaxFormDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaxFormTaxFormDelete otherTyped = other as DeleteTaxFormTaxFormDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaxFormTaxFormDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaxFormData {
|
|
||||||
final DeleteTaxFormTaxFormDelete? taxForm_delete;
|
|
||||||
DeleteTaxFormData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
taxForm_delete = json['taxForm_delete'] == null ? null : DeleteTaxFormTaxFormDelete.fromJson(json['taxForm_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaxFormData otherTyped = other as DeleteTaxFormData;
|
|
||||||
return taxForm_delete == otherTyped.taxForm_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => taxForm_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (taxForm_delete != null) {
|
|
||||||
json['taxForm_delete'] = taxForm_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaxFormData({
|
|
||||||
this.taxForm_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTaxFormVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTaxFormVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTaxFormVariables otherTyped = other as DeleteTaxFormVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTaxFormVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTeamVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTeamVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTeamData> dataDeserializer = (dynamic json) => DeleteTeamData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTeamVariables> varsSerializer = (DeleteTeamVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTeamData, DeleteTeamVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTeamData, DeleteTeamVariables> ref() {
|
|
||||||
DeleteTeamVariables vars= DeleteTeamVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTeam", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamTeamDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTeamTeamDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamTeamDelete otherTyped = other as DeleteTeamTeamDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamTeamDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamData {
|
|
||||||
final DeleteTeamTeamDelete? team_delete;
|
|
||||||
DeleteTeamData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
team_delete = json['team_delete'] == null ? null : DeleteTeamTeamDelete.fromJson(json['team_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamData otherTyped = other as DeleteTeamData;
|
|
||||||
return team_delete == otherTyped.team_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => team_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (team_delete != null) {
|
|
||||||
json['team_delete'] = team_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamData({
|
|
||||||
this.team_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTeamVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamVariables otherTyped = other as DeleteTeamVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTeamHubVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTeamHubVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTeamHubData> dataDeserializer = (dynamic json) => DeleteTeamHubData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTeamHubVariables> varsSerializer = (DeleteTeamHubVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTeamHubData, DeleteTeamHubVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTeamHubData, DeleteTeamHubVariables> ref() {
|
|
||||||
DeleteTeamHubVariables vars= DeleteTeamHubVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTeamHub", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHubTeamHubDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTeamHubTeamHubDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHubTeamHubDelete otherTyped = other as DeleteTeamHubTeamHubDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHubTeamHubDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHubData {
|
|
||||||
final DeleteTeamHubTeamHubDelete? teamHub_delete;
|
|
||||||
DeleteTeamHubData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamHub_delete = json['teamHub_delete'] == null ? null : DeleteTeamHubTeamHubDelete.fromJson(json['teamHub_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHubData otherTyped = other as DeleteTeamHubData;
|
|
||||||
return teamHub_delete == otherTyped.teamHub_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamHub_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (teamHub_delete != null) {
|
|
||||||
json['teamHub_delete'] = teamHub_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHubData({
|
|
||||||
this.teamHub_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHubVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTeamHubVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHubVariables otherTyped = other as DeleteTeamHubVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHubVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTeamHudDepartmentVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTeamHudDepartmentVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTeamHudDepartmentData> dataDeserializer = (dynamic json) => DeleteTeamHudDepartmentData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTeamHudDepartmentVariables> varsSerializer = (DeleteTeamHudDepartmentVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTeamHudDepartmentData, DeleteTeamHudDepartmentVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTeamHudDepartmentData, DeleteTeamHudDepartmentVariables> ref() {
|
|
||||||
DeleteTeamHudDepartmentVariables vars= DeleteTeamHudDepartmentVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTeamHudDepartment", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHudDepartmentTeamHudDepartmentDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTeamHudDepartmentTeamHudDepartmentDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHudDepartmentTeamHudDepartmentDelete otherTyped = other as DeleteTeamHudDepartmentTeamHudDepartmentDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHudDepartmentTeamHudDepartmentDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHudDepartmentData {
|
|
||||||
final DeleteTeamHudDepartmentTeamHudDepartmentDelete? teamHudDepartment_delete;
|
|
||||||
DeleteTeamHudDepartmentData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamHudDepartment_delete = json['teamHudDepartment_delete'] == null ? null : DeleteTeamHudDepartmentTeamHudDepartmentDelete.fromJson(json['teamHudDepartment_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHudDepartmentData otherTyped = other as DeleteTeamHudDepartmentData;
|
|
||||||
return teamHudDepartment_delete == otherTyped.teamHudDepartment_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamHudDepartment_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (teamHudDepartment_delete != null) {
|
|
||||||
json['teamHudDepartment_delete'] = teamHudDepartment_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHudDepartmentData({
|
|
||||||
this.teamHudDepartment_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamHudDepartmentVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTeamHudDepartmentVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamHudDepartmentVariables otherTyped = other as DeleteTeamHudDepartmentVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamHudDepartmentVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteTeamMemberVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteTeamMemberVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteTeamMemberData> dataDeserializer = (dynamic json) => DeleteTeamMemberData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteTeamMemberVariables> varsSerializer = (DeleteTeamMemberVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteTeamMemberData, DeleteTeamMemberVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteTeamMemberData, DeleteTeamMemberVariables> ref() {
|
|
||||||
DeleteTeamMemberVariables vars= DeleteTeamMemberVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteTeamMember", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamMemberTeamMemberDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteTeamMemberTeamMemberDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamMemberTeamMemberDelete otherTyped = other as DeleteTeamMemberTeamMemberDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamMemberTeamMemberDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamMemberData {
|
|
||||||
final DeleteTeamMemberTeamMemberDelete? teamMember_delete;
|
|
||||||
DeleteTeamMemberData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
teamMember_delete = json['teamMember_delete'] == null ? null : DeleteTeamMemberTeamMemberDelete.fromJson(json['teamMember_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamMemberData otherTyped = other as DeleteTeamMemberData;
|
|
||||||
return teamMember_delete == otherTyped.teamMember_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => teamMember_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (teamMember_delete != null) {
|
|
||||||
json['teamMember_delete'] = teamMember_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamMemberData({
|
|
||||||
this.teamMember_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteTeamMemberVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteTeamMemberVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteTeamMemberVariables otherTyped = other as DeleteTeamMemberVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteTeamMemberVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteUserVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteUserVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteUserData> dataDeserializer = (dynamic json) => DeleteUserData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteUserVariables> varsSerializer = (DeleteUserVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteUserData, DeleteUserVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteUserData, DeleteUserVariables> ref() {
|
|
||||||
DeleteUserVariables vars= DeleteUserVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("DeleteUser", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserUserDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteUserUserDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserUserDelete otherTyped = other as DeleteUserUserDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserUserDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserData {
|
|
||||||
final DeleteUserUserDelete? user_delete;
|
|
||||||
DeleteUserData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
user_delete = json['user_delete'] == null ? null : DeleteUserUserDelete.fromJson(json['user_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserData otherTyped = other as DeleteUserData;
|
|
||||||
return user_delete == otherTyped.user_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => user_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (user_delete != null) {
|
|
||||||
json['user_delete'] = user_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserData({
|
|
||||||
this.user_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteUserVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserVariables otherTyped = other as DeleteUserVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteUserConversationVariablesBuilder {
|
|
||||||
String conversationId;
|
|
||||||
String userId;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteUserConversationVariablesBuilder(this._dataConnect, {required this.conversationId,required this.userId,});
|
|
||||||
Deserializer<DeleteUserConversationData> dataDeserializer = (dynamic json) => DeleteUserConversationData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteUserConversationVariables> varsSerializer = (DeleteUserConversationVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteUserConversationData, DeleteUserConversationVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteUserConversationData, DeleteUserConversationVariables> ref() {
|
|
||||||
DeleteUserConversationVariables vars= DeleteUserConversationVariables(conversationId: conversationId,userId: userId,);
|
|
||||||
return _dataConnect.mutation("deleteUserConversation", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserConversationUserConversationDelete {
|
|
||||||
final String conversationId;
|
|
||||||
final String userId;
|
|
||||||
DeleteUserConversationUserConversationDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
conversationId = nativeFromJson<String>(json['conversationId']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserConversationUserConversationDelete otherTyped = other as DeleteUserConversationUserConversationDelete;
|
|
||||||
return conversationId == otherTyped.conversationId &&
|
|
||||||
userId == otherTyped.userId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([conversationId.hashCode, userId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversationId'] = nativeToJson<String>(conversationId);
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserConversationUserConversationDelete({
|
|
||||||
required this.conversationId,
|
|
||||||
required this.userId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserConversationData {
|
|
||||||
final DeleteUserConversationUserConversationDelete? userConversation_delete;
|
|
||||||
DeleteUserConversationData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
userConversation_delete = json['userConversation_delete'] == null ? null : DeleteUserConversationUserConversationDelete.fromJson(json['userConversation_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserConversationData otherTyped = other as DeleteUserConversationData;
|
|
||||||
return userConversation_delete == otherTyped.userConversation_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => userConversation_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (userConversation_delete != null) {
|
|
||||||
json['userConversation_delete'] = userConversation_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserConversationData({
|
|
||||||
this.userConversation_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteUserConversationVariables {
|
|
||||||
final String conversationId;
|
|
||||||
final String userId;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteUserConversationVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
conversationId = nativeFromJson<String>(json['conversationId']),
|
|
||||||
userId = nativeFromJson<String>(json['userId']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteUserConversationVariables otherTyped = other as DeleteUserConversationVariables;
|
|
||||||
return conversationId == otherTyped.conversationId &&
|
|
||||||
userId == otherTyped.userId;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hashAll([conversationId.hashCode, userId.hashCode]);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['conversationId'] = nativeToJson<String>(conversationId);
|
|
||||||
json['userId'] = nativeToJson<String>(userId);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteUserConversationVariables({
|
|
||||||
required this.conversationId,
|
|
||||||
required this.userId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
part of 'generated.dart';
|
|
||||||
|
|
||||||
class DeleteVendorVariablesBuilder {
|
|
||||||
String id;
|
|
||||||
|
|
||||||
final FirebaseDataConnect _dataConnect;
|
|
||||||
DeleteVendorVariablesBuilder(this._dataConnect, {required this.id,});
|
|
||||||
Deserializer<DeleteVendorData> dataDeserializer = (dynamic json) => DeleteVendorData.fromJson(jsonDecode(json));
|
|
||||||
Serializer<DeleteVendorVariables> varsSerializer = (DeleteVendorVariables vars) => jsonEncode(vars.toJson());
|
|
||||||
Future<OperationResult<DeleteVendorData, DeleteVendorVariables>> execute() {
|
|
||||||
return ref().execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
MutationRef<DeleteVendorData, DeleteVendorVariables> ref() {
|
|
||||||
DeleteVendorVariables vars= DeleteVendorVariables(id: id,);
|
|
||||||
return _dataConnect.mutation("deleteVendor", dataDeserializer, varsSerializer, vars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteVendorVendorDelete {
|
|
||||||
final String id;
|
|
||||||
DeleteVendorVendorDelete.fromJson(dynamic json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteVendorVendorDelete otherTyped = other as DeleteVendorVendorDelete;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteVendorVendorDelete({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteVendorData {
|
|
||||||
final DeleteVendorVendorDelete? vendor_delete;
|
|
||||||
DeleteVendorData.fromJson(dynamic json):
|
|
||||||
|
|
||||||
vendor_delete = json['vendor_delete'] == null ? null : DeleteVendorVendorDelete.fromJson(json['vendor_delete']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteVendorData otherTyped = other as DeleteVendorData;
|
|
||||||
return vendor_delete == otherTyped.vendor_delete;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => vendor_delete.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
if (vendor_delete != null) {
|
|
||||||
json['vendor_delete'] = vendor_delete!.toJson();
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteVendorData({
|
|
||||||
this.vendor_delete,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@immutable
|
|
||||||
class DeleteVendorVariables {
|
|
||||||
final String id;
|
|
||||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
|
||||||
DeleteVendorVariables.fromJson(Map<String, dynamic> json):
|
|
||||||
|
|
||||||
id = nativeFromJson<String>(json['id']);
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
if(identical(this, other)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(other.runtimeType != runtimeType) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final DeleteVendorVariables otherTyped = other as DeleteVendorVariables;
|
|
||||||
return id == otherTyped.id;
|
|
||||||
|
|
||||||
}
|
|
||||||
@override
|
|
||||||
int get hashCode => id.hashCode;
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
Map<String, dynamic> json = {};
|
|
||||||
json['id'] = nativeToJson<String>(id);
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteVendorVariables({
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user