From edb02764f78131ff16fcb0191e88625941d04502 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sun, 2 Jul 2023 18:22:07 +0300 Subject: [PATCH] fix: GraphQL fragments deduplication --- .../graphql_maps/schema/backups.graphql.dart | 1 - .../graphql_maps/schema/disk_volumes.graphql | 6 - .../schema/disk_volumes.graphql.dart | 2278 ---------------- .../schema/server_api.graphql.dart | 1 - .../schema/server_settings.graphql | 6 - .../schema/server_settings.graphql.dart | 2280 +---------------- .../graphql_maps/schema/services.graphql | 6 - .../graphql_maps/schema/services.graphql.dart | 2279 ---------------- .../graphql_maps/schema/users.graphql | 6 - .../graphql_maps/schema/users.graphql.dart | 2280 +---------------- .../graphql_maps/server_api/server_api.dart | 8 +- 11 files changed, 9 insertions(+), 9142 deletions(-) diff --git a/lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart index 14d1ab1a..428da3e4 100644 --- a/lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/backups.graphql.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'disk_volumes.graphql.dart'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'package:selfprivacy/utils/scalars.dart'; diff --git a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql index e1d562d2..76ba5475 100644 --- a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql @@ -1,9 +1,3 @@ -fragment basicMutationReturnFields on MutationReturnInterface{ - code - message - success -} - query GetServerDiskVolumes { storage { volumes { diff --git a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart index aae28508..d448df1d 100644 --- a/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/disk_volumes.graphql.dart @@ -4,2284 +4,6 @@ import 'package:graphql/client.dart' as graphql; import 'schema.graphql.dart'; import 'server_api.graphql.dart'; -class Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields({ - required this.code, - required this.message, - required this.success, - required this.$__typename, - }); - - factory Fragment$basicMutationReturnFields.fromJson( - Map json) { - switch (json["__typename"] as String) { - case "ApiKeyMutationReturn": - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - .fromJson(json); - - case "AutoUpgradeSettingsMutationReturn": - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - .fromJson(json); - - case "DeviceApiTokenMutationReturn": - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - .fromJson(json); - - case "GenericBackupConfigReturn": - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - .fromJson(json); - - case "GenericJobMutationReturn": - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn - .fromJson(json); - - case "GenericMutationReturn": - return Fragment$basicMutationReturnFields$$GenericMutationReturn - .fromJson(json); - - case "ServiceJobMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - .fromJson(json); - - case "ServiceMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceMutationReturn - .fromJson(json); - - case "TimezoneMutationReturn": - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn - .fromJson(json); - - case "UserMutationReturn": - return Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - json); - - default: - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields - on Fragment$basicMutationReturnFields { - CopyWith$Fragment$basicMutationReturnFields< - Fragment$basicMutationReturnFields> - get copyWith => CopyWith$Fragment$basicMutationReturnFields( - this, - (i) => i, - ); - _T when<_T>({ - required _T Function( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - apiKeyMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - autoUpgradeSettingsMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - deviceApiTokenMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - genericBackupConfigReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - genericJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericMutationReturn) - genericMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - serviceJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceMutationReturn) - serviceMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - timezoneMutationReturn, - required _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - - case "AutoUpgradeSettingsMutationReturn": - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - - case "DeviceApiTokenMutationReturn": - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - - case "GenericBackupConfigReturn": - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - - case "GenericJobMutationReturn": - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - - case "GenericMutationReturn": - return genericMutationReturn( - this as Fragment$basicMutationReturnFields$$GenericMutationReturn); - - case "ServiceJobMutationReturn": - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - - case "ServiceMutationReturn": - return serviceMutationReturn( - this as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - - case "TimezoneMutationReturn": - return timezoneMutationReturn( - this as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - - case "UserMutationReturn": - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - - default: - return orElse(); - } - } - - _T maybeWhen<_T>({ - _T Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn)? - apiKeyMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn)? - autoUpgradeSettingsMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)? - deviceApiTokenMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)? - genericBackupConfigReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn)? - genericJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)? - genericMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn)? - serviceJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn)? - serviceMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn)? - timezoneMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn)? - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - if (apiKeyMutationReturn != null) { - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - } else { - return orElse(); - } - - case "AutoUpgradeSettingsMutationReturn": - if (autoUpgradeSettingsMutationReturn != null) { - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - } else { - return orElse(); - } - - case "DeviceApiTokenMutationReturn": - if (deviceApiTokenMutationReturn != null) { - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - } else { - return orElse(); - } - - case "GenericBackupConfigReturn": - if (genericBackupConfigReturn != null) { - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - } else { - return orElse(); - } - - case "GenericJobMutationReturn": - if (genericJobMutationReturn != null) { - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - } else { - return orElse(); - } - - case "GenericMutationReturn": - if (genericMutationReturn != null) { - return genericMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericMutationReturn); - } else { - return orElse(); - } - - case "ServiceJobMutationReturn": - if (serviceJobMutationReturn != null) { - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - } else { - return orElse(); - } - - case "ServiceMutationReturn": - if (serviceMutationReturn != null) { - return serviceMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - } else { - return orElse(); - } - - case "TimezoneMutationReturn": - if (timezoneMutationReturn != null) { - return timezoneMutationReturn(this - as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - } else { - return orElse(); - } - - case "UserMutationReturn": - if (userMutationReturn != null) { - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - } else { - return orElse(); - } - - default: - return orElse(); - } - } -} - -abstract class CopyWith$Fragment$basicMutationReturnFields { - factory CopyWith$Fragment$basicMutationReturnFields( - Fragment$basicMutationReturnFields instance, - TRes Function(Fragment$basicMutationReturnFields) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields; - - factory CopyWith$Fragment$basicMutationReturnFields.stub(TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithImpl$Fragment$basicMutationReturnFields( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields _instance; - - final TRes Function(Fragment$basicMutationReturnFields) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithStubImpl$Fragment$basicMutationReturnFields(this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -const fragmentDefinitionbasicMutationReturnFields = FragmentDefinitionNode( - name: NameNode(value: 'basicMutationReturnFields'), - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'MutationReturnInterface'), - isNonNull: false, - )), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'code'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'message'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'success'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), -); -const documentNodeFragmentbasicMutationReturnFields = - DocumentNode(definitions: [ - fragmentDefinitionbasicMutationReturnFields, -]); - -extension ClientExtension$Fragment$basicMutationReturnFields - on graphql.GraphQLClient { - void writeFragment$basicMutationReturnFields({ - required Fragment$basicMutationReturnFields data, - required Map idFields, - bool broadcast = true, - }) => - this.writeFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - data: data.toJson(), - broadcast: broadcast, - ); - Fragment$basicMutationReturnFields? readFragment$basicMutationReturnFields({ - required Map idFields, - bool optimistic = true, - }) { - final result = this.readFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - optimistic: optimistic, - ); - return result == null - ? null - : Fragment$basicMutationReturnFields.fromJson(result); - } -} - -class Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ApiKeyMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - on Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ApiKeyMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'AutoUpgradeSettingsMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - on Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - instance, - TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'DeviceApiTokenMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - on Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn instance, - TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericBackupConfigReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericJobMutationReturn - on Fragment$basicMutationReturnFields$$GenericJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - Fragment$basicMutationReturnFields$$GenericJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$GenericMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericMutationReturn - on Fragment$basicMutationReturnFields$$GenericMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - Fragment$basicMutationReturnFields$$GenericMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - Fragment$basicMutationReturnFields$$GenericMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - on Fragment$basicMutationReturnFields$$ServiceJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ServiceMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceMutationReturn - on Fragment$basicMutationReturnFields$$ServiceMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - Fragment$basicMutationReturnFields$$ServiceMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - Fragment$basicMutationReturnFields$$ServiceMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$TimezoneMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$TimezoneMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'TimezoneMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$TimezoneMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$TimezoneMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$TimezoneMutationReturn - on Fragment$basicMutationReturnFields$$TimezoneMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - Fragment$basicMutationReturnFields$$TimezoneMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$TimezoneMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$UserMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$UserMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'UserMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$UserMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$UserMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$UserMutationReturn - on Fragment$basicMutationReturnFields$$UserMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - Fragment$basicMutationReturnFields$$UserMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - Fragment$basicMutationReturnFields$$UserMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$UserMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$UserMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - class Query$GetServerDiskVolumes { Query$GetServerDiskVolumes({ required this.storage, diff --git a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart index eaddf55b..3fed1110 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'disk_volumes.graphql.dart'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'package:selfprivacy/utils/scalars.dart'; diff --git a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql index a33a5fef..f0fbedd6 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql @@ -1,9 +1,3 @@ -fragment basicMutationReturnFields on MutationReturnInterface{ - code - message - success -} - query SystemSettings { system { settings { diff --git a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart index ae8aabcb..bcc677e8 100644 --- a/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/server_settings.graphql.dart @@ -1,2286 +1,8 @@ import 'dart:async'; -import 'disk_volumes.graphql.dart'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'schema.graphql.dart'; - -class Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields({ - required this.code, - required this.message, - required this.success, - required this.$__typename, - }); - - factory Fragment$basicMutationReturnFields.fromJson( - Map json) { - switch (json["__typename"] as String) { - case "ApiKeyMutationReturn": - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - .fromJson(json); - - case "AutoUpgradeSettingsMutationReturn": - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - .fromJson(json); - - case "DeviceApiTokenMutationReturn": - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - .fromJson(json); - - case "GenericBackupConfigReturn": - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - .fromJson(json); - - case "GenericJobMutationReturn": - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn - .fromJson(json); - - case "GenericMutationReturn": - return Fragment$basicMutationReturnFields$$GenericMutationReturn - .fromJson(json); - - case "ServiceJobMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - .fromJson(json); - - case "ServiceMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceMutationReturn - .fromJson(json); - - case "TimezoneMutationReturn": - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn - .fromJson(json); - - case "UserMutationReturn": - return Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - json); - - default: - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields - on Fragment$basicMutationReturnFields { - CopyWith$Fragment$basicMutationReturnFields< - Fragment$basicMutationReturnFields> - get copyWith => CopyWith$Fragment$basicMutationReturnFields( - this, - (i) => i, - ); - _T when<_T>({ - required _T Function( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - apiKeyMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - autoUpgradeSettingsMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - deviceApiTokenMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - genericBackupConfigReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - genericJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericMutationReturn) - genericMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - serviceJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceMutationReturn) - serviceMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - timezoneMutationReturn, - required _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - - case "AutoUpgradeSettingsMutationReturn": - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - - case "DeviceApiTokenMutationReturn": - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - - case "GenericBackupConfigReturn": - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - - case "GenericJobMutationReturn": - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - - case "GenericMutationReturn": - return genericMutationReturn( - this as Fragment$basicMutationReturnFields$$GenericMutationReturn); - - case "ServiceJobMutationReturn": - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - - case "ServiceMutationReturn": - return serviceMutationReturn( - this as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - - case "TimezoneMutationReturn": - return timezoneMutationReturn( - this as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - - case "UserMutationReturn": - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - - default: - return orElse(); - } - } - - _T maybeWhen<_T>({ - _T Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn)? - apiKeyMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn)? - autoUpgradeSettingsMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)? - deviceApiTokenMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)? - genericBackupConfigReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn)? - genericJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)? - genericMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn)? - serviceJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn)? - serviceMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn)? - timezoneMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn)? - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - if (apiKeyMutationReturn != null) { - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - } else { - return orElse(); - } - - case "AutoUpgradeSettingsMutationReturn": - if (autoUpgradeSettingsMutationReturn != null) { - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - } else { - return orElse(); - } - - case "DeviceApiTokenMutationReturn": - if (deviceApiTokenMutationReturn != null) { - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - } else { - return orElse(); - } - - case "GenericBackupConfigReturn": - if (genericBackupConfigReturn != null) { - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - } else { - return orElse(); - } - - case "GenericJobMutationReturn": - if (genericJobMutationReturn != null) { - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - } else { - return orElse(); - } - - case "GenericMutationReturn": - if (genericMutationReturn != null) { - return genericMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericMutationReturn); - } else { - return orElse(); - } - - case "ServiceJobMutationReturn": - if (serviceJobMutationReturn != null) { - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - } else { - return orElse(); - } - - case "ServiceMutationReturn": - if (serviceMutationReturn != null) { - return serviceMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - } else { - return orElse(); - } - - case "TimezoneMutationReturn": - if (timezoneMutationReturn != null) { - return timezoneMutationReturn(this - as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - } else { - return orElse(); - } - - case "UserMutationReturn": - if (userMutationReturn != null) { - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - } else { - return orElse(); - } - - default: - return orElse(); - } - } -} - -abstract class CopyWith$Fragment$basicMutationReturnFields { - factory CopyWith$Fragment$basicMutationReturnFields( - Fragment$basicMutationReturnFields instance, - TRes Function(Fragment$basicMutationReturnFields) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields; - - factory CopyWith$Fragment$basicMutationReturnFields.stub(TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithImpl$Fragment$basicMutationReturnFields( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields _instance; - - final TRes Function(Fragment$basicMutationReturnFields) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithStubImpl$Fragment$basicMutationReturnFields(this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -const fragmentDefinitionbasicMutationReturnFields = FragmentDefinitionNode( - name: NameNode(value: 'basicMutationReturnFields'), - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'MutationReturnInterface'), - isNonNull: false, - )), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'code'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'message'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'success'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), -); -const documentNodeFragmentbasicMutationReturnFields = - DocumentNode(definitions: [ - fragmentDefinitionbasicMutationReturnFields, -]); - -extension ClientExtension$Fragment$basicMutationReturnFields - on graphql.GraphQLClient { - void writeFragment$basicMutationReturnFields({ - required Fragment$basicMutationReturnFields data, - required Map idFields, - bool broadcast = true, - }) => - this.writeFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - data: data.toJson(), - broadcast: broadcast, - ); - Fragment$basicMutationReturnFields? readFragment$basicMutationReturnFields({ - required Map idFields, - bool optimistic = true, - }) { - final result = this.readFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - optimistic: optimistic, - ); - return result == null - ? null - : Fragment$basicMutationReturnFields.fromJson(result); - } -} - -class Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ApiKeyMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - on Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ApiKeyMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'AutoUpgradeSettingsMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - on Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - instance, - TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'DeviceApiTokenMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - on Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn instance, - TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericBackupConfigReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericJobMutationReturn - on Fragment$basicMutationReturnFields$$GenericJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - Fragment$basicMutationReturnFields$$GenericJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$GenericMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericMutationReturn - on Fragment$basicMutationReturnFields$$GenericMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - Fragment$basicMutationReturnFields$$GenericMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - Fragment$basicMutationReturnFields$$GenericMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - on Fragment$basicMutationReturnFields$$ServiceJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ServiceMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceMutationReturn - on Fragment$basicMutationReturnFields$$ServiceMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - Fragment$basicMutationReturnFields$$ServiceMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - Fragment$basicMutationReturnFields$$ServiceMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$TimezoneMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$TimezoneMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'TimezoneMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$TimezoneMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$TimezoneMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$TimezoneMutationReturn - on Fragment$basicMutationReturnFields$$TimezoneMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - Fragment$basicMutationReturnFields$$TimezoneMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$TimezoneMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$UserMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$UserMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'UserMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$UserMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$UserMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$UserMutationReturn - on Fragment$basicMutationReturnFields$$UserMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - Fragment$basicMutationReturnFields$$UserMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - Fragment$basicMutationReturnFields$$UserMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$UserMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$UserMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} +import 'server_api.graphql.dart'; class Fragment$fragmentDnsRecords { Fragment$fragmentDnsRecords({ diff --git a/lib/logic/api_maps/graphql_maps/schema/services.graphql b/lib/logic/api_maps/graphql_maps/schema/services.graphql index ee5ee245..a2430dcf 100644 --- a/lib/logic/api_maps/graphql_maps/schema/services.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/services.graphql @@ -1,9 +1,3 @@ -fragment basicMutationReturnFields on MutationReturnInterface{ - code - message - success -} - query AllServices { services { allServices { diff --git a/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart index 4d33f536..798167fd 100644 --- a/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/services.graphql.dart @@ -1,2289 +1,10 @@ import 'dart:async'; -import 'disk_volumes.graphql.dart'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'schema.graphql.dart'; import 'server_api.graphql.dart'; import 'server_settings.graphql.dart'; -class Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields({ - required this.code, - required this.message, - required this.success, - required this.$__typename, - }); - - factory Fragment$basicMutationReturnFields.fromJson( - Map json) { - switch (json["__typename"] as String) { - case "ApiKeyMutationReturn": - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - .fromJson(json); - - case "AutoUpgradeSettingsMutationReturn": - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - .fromJson(json); - - case "DeviceApiTokenMutationReturn": - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - .fromJson(json); - - case "GenericBackupConfigReturn": - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - .fromJson(json); - - case "GenericJobMutationReturn": - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn - .fromJson(json); - - case "GenericMutationReturn": - return Fragment$basicMutationReturnFields$$GenericMutationReturn - .fromJson(json); - - case "ServiceJobMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - .fromJson(json); - - case "ServiceMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceMutationReturn - .fromJson(json); - - case "TimezoneMutationReturn": - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn - .fromJson(json); - - case "UserMutationReturn": - return Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - json); - - default: - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields - on Fragment$basicMutationReturnFields { - CopyWith$Fragment$basicMutationReturnFields< - Fragment$basicMutationReturnFields> - get copyWith => CopyWith$Fragment$basicMutationReturnFields( - this, - (i) => i, - ); - _T when<_T>({ - required _T Function( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - apiKeyMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - autoUpgradeSettingsMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - deviceApiTokenMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - genericBackupConfigReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - genericJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericMutationReturn) - genericMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - serviceJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceMutationReturn) - serviceMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - timezoneMutationReturn, - required _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - - case "AutoUpgradeSettingsMutationReturn": - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - - case "DeviceApiTokenMutationReturn": - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - - case "GenericBackupConfigReturn": - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - - case "GenericJobMutationReturn": - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - - case "GenericMutationReturn": - return genericMutationReturn( - this as Fragment$basicMutationReturnFields$$GenericMutationReturn); - - case "ServiceJobMutationReturn": - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - - case "ServiceMutationReturn": - return serviceMutationReturn( - this as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - - case "TimezoneMutationReturn": - return timezoneMutationReturn( - this as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - - case "UserMutationReturn": - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - - default: - return orElse(); - } - } - - _T maybeWhen<_T>({ - _T Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn)? - apiKeyMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn)? - autoUpgradeSettingsMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)? - deviceApiTokenMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)? - genericBackupConfigReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn)? - genericJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)? - genericMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn)? - serviceJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn)? - serviceMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn)? - timezoneMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn)? - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - if (apiKeyMutationReturn != null) { - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - } else { - return orElse(); - } - - case "AutoUpgradeSettingsMutationReturn": - if (autoUpgradeSettingsMutationReturn != null) { - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - } else { - return orElse(); - } - - case "DeviceApiTokenMutationReturn": - if (deviceApiTokenMutationReturn != null) { - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - } else { - return orElse(); - } - - case "GenericBackupConfigReturn": - if (genericBackupConfigReturn != null) { - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - } else { - return orElse(); - } - - case "GenericJobMutationReturn": - if (genericJobMutationReturn != null) { - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - } else { - return orElse(); - } - - case "GenericMutationReturn": - if (genericMutationReturn != null) { - return genericMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericMutationReturn); - } else { - return orElse(); - } - - case "ServiceJobMutationReturn": - if (serviceJobMutationReturn != null) { - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - } else { - return orElse(); - } - - case "ServiceMutationReturn": - if (serviceMutationReturn != null) { - return serviceMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - } else { - return orElse(); - } - - case "TimezoneMutationReturn": - if (timezoneMutationReturn != null) { - return timezoneMutationReturn(this - as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - } else { - return orElse(); - } - - case "UserMutationReturn": - if (userMutationReturn != null) { - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - } else { - return orElse(); - } - - default: - return orElse(); - } - } -} - -abstract class CopyWith$Fragment$basicMutationReturnFields { - factory CopyWith$Fragment$basicMutationReturnFields( - Fragment$basicMutationReturnFields instance, - TRes Function(Fragment$basicMutationReturnFields) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields; - - factory CopyWith$Fragment$basicMutationReturnFields.stub(TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithImpl$Fragment$basicMutationReturnFields( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields _instance; - - final TRes Function(Fragment$basicMutationReturnFields) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithStubImpl$Fragment$basicMutationReturnFields(this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -const fragmentDefinitionbasicMutationReturnFields = FragmentDefinitionNode( - name: NameNode(value: 'basicMutationReturnFields'), - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'MutationReturnInterface'), - isNonNull: false, - )), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'code'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'message'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'success'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), -); -const documentNodeFragmentbasicMutationReturnFields = - DocumentNode(definitions: [ - fragmentDefinitionbasicMutationReturnFields, -]); - -extension ClientExtension$Fragment$basicMutationReturnFields - on graphql.GraphQLClient { - void writeFragment$basicMutationReturnFields({ - required Fragment$basicMutationReturnFields data, - required Map idFields, - bool broadcast = true, - }) => - this.writeFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - data: data.toJson(), - broadcast: broadcast, - ); - Fragment$basicMutationReturnFields? readFragment$basicMutationReturnFields({ - required Map idFields, - bool optimistic = true, - }) { - final result = this.readFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - optimistic: optimistic, - ); - return result == null - ? null - : Fragment$basicMutationReturnFields.fromJson(result); - } -} - -class Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ApiKeyMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - on Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ApiKeyMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'AutoUpgradeSettingsMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - on Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - instance, - TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'DeviceApiTokenMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - on Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn instance, - TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericBackupConfigReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericJobMutationReturn - on Fragment$basicMutationReturnFields$$GenericJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - Fragment$basicMutationReturnFields$$GenericJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$GenericMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericMutationReturn - on Fragment$basicMutationReturnFields$$GenericMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - Fragment$basicMutationReturnFields$$GenericMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - Fragment$basicMutationReturnFields$$GenericMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - on Fragment$basicMutationReturnFields$$ServiceJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ServiceMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceMutationReturn - on Fragment$basicMutationReturnFields$$ServiceMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - Fragment$basicMutationReturnFields$$ServiceMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - Fragment$basicMutationReturnFields$$ServiceMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$TimezoneMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$TimezoneMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'TimezoneMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$TimezoneMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$TimezoneMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$TimezoneMutationReturn - on Fragment$basicMutationReturnFields$$TimezoneMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - Fragment$basicMutationReturnFields$$TimezoneMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$TimezoneMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$UserMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$UserMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'UserMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$UserMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$UserMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$UserMutationReturn - on Fragment$basicMutationReturnFields$$UserMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - Fragment$basicMutationReturnFields$$UserMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - Fragment$basicMutationReturnFields$$UserMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$UserMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$UserMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - class Query$AllServices { Query$AllServices({ required this.services, diff --git a/lib/logic/api_maps/graphql_maps/schema/users.graphql b/lib/logic/api_maps/graphql_maps/schema/users.graphql index 78de71ff..7ce64f8a 100644 --- a/lib/logic/api_maps/graphql_maps/schema/users.graphql +++ b/lib/logic/api_maps/graphql_maps/schema/users.graphql @@ -1,9 +1,3 @@ -fragment basicMutationReturnFields on MutationReturnInterface{ - code - message - success -} - fragment userFields on User{ username userType diff --git a/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart b/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart index d17316df..5d86dc05 100644 --- a/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart +++ b/lib/logic/api_maps/graphql_maps/schema/users.graphql.dart @@ -1,2286 +1,8 @@ import 'dart:async'; -import 'disk_volumes.graphql.dart'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'schema.graphql.dart'; - -class Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields({ - required this.code, - required this.message, - required this.success, - required this.$__typename, - }); - - factory Fragment$basicMutationReturnFields.fromJson( - Map json) { - switch (json["__typename"] as String) { - case "ApiKeyMutationReturn": - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - .fromJson(json); - - case "AutoUpgradeSettingsMutationReturn": - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - .fromJson(json); - - case "DeviceApiTokenMutationReturn": - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - .fromJson(json); - - case "GenericBackupConfigReturn": - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - .fromJson(json); - - case "GenericJobMutationReturn": - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn - .fromJson(json); - - case "GenericMutationReturn": - return Fragment$basicMutationReturnFields$$GenericMutationReturn - .fromJson(json); - - case "ServiceJobMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - .fromJson(json); - - case "ServiceMutationReturn": - return Fragment$basicMutationReturnFields$$ServiceMutationReturn - .fromJson(json); - - case "TimezoneMutationReturn": - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn - .fromJson(json); - - case "UserMutationReturn": - return Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - json); - - default: - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields - on Fragment$basicMutationReturnFields { - CopyWith$Fragment$basicMutationReturnFields< - Fragment$basicMutationReturnFields> - get copyWith => CopyWith$Fragment$basicMutationReturnFields( - this, - (i) => i, - ); - _T when<_T>({ - required _T Function( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - apiKeyMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - autoUpgradeSettingsMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - deviceApiTokenMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - genericBackupConfigReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - genericJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$GenericMutationReturn) - genericMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - serviceJobMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$ServiceMutationReturn) - serviceMutationReturn, - required _T Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - timezoneMutationReturn, - required _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - - case "AutoUpgradeSettingsMutationReturn": - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - - case "DeviceApiTokenMutationReturn": - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - - case "GenericBackupConfigReturn": - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - - case "GenericJobMutationReturn": - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - - case "GenericMutationReturn": - return genericMutationReturn( - this as Fragment$basicMutationReturnFields$$GenericMutationReturn); - - case "ServiceJobMutationReturn": - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - - case "ServiceMutationReturn": - return serviceMutationReturn( - this as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - - case "TimezoneMutationReturn": - return timezoneMutationReturn( - this as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - - case "UserMutationReturn": - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - - default: - return orElse(); - } - } - - _T maybeWhen<_T>({ - _T Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn)? - apiKeyMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn)? - autoUpgradeSettingsMutationReturn, - _T Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn)? - deviceApiTokenMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn)? - genericBackupConfigReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn)? - genericJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$GenericMutationReturn)? - genericMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn)? - serviceJobMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn)? - serviceMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn)? - timezoneMutationReturn, - _T Function(Fragment$basicMutationReturnFields$$UserMutationReturn)? - userMutationReturn, - required _T Function() orElse, - }) { - switch ($__typename) { - case "ApiKeyMutationReturn": - if (apiKeyMutationReturn != null) { - return apiKeyMutationReturn( - this as Fragment$basicMutationReturnFields$$ApiKeyMutationReturn); - } else { - return orElse(); - } - - case "AutoUpgradeSettingsMutationReturn": - if (autoUpgradeSettingsMutationReturn != null) { - return autoUpgradeSettingsMutationReturn(this - as Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn); - } else { - return orElse(); - } - - case "DeviceApiTokenMutationReturn": - if (deviceApiTokenMutationReturn != null) { - return deviceApiTokenMutationReturn(this - as Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn); - } else { - return orElse(); - } - - case "GenericBackupConfigReturn": - if (genericBackupConfigReturn != null) { - return genericBackupConfigReturn(this - as Fragment$basicMutationReturnFields$$GenericBackupConfigReturn); - } else { - return orElse(); - } - - case "GenericJobMutationReturn": - if (genericJobMutationReturn != null) { - return genericJobMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericJobMutationReturn); - } else { - return orElse(); - } - - case "GenericMutationReturn": - if (genericMutationReturn != null) { - return genericMutationReturn(this - as Fragment$basicMutationReturnFields$$GenericMutationReturn); - } else { - return orElse(); - } - - case "ServiceJobMutationReturn": - if (serviceJobMutationReturn != null) { - return serviceJobMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceJobMutationReturn); - } else { - return orElse(); - } - - case "ServiceMutationReturn": - if (serviceMutationReturn != null) { - return serviceMutationReturn(this - as Fragment$basicMutationReturnFields$$ServiceMutationReturn); - } else { - return orElse(); - } - - case "TimezoneMutationReturn": - if (timezoneMutationReturn != null) { - return timezoneMutationReturn(this - as Fragment$basicMutationReturnFields$$TimezoneMutationReturn); - } else { - return orElse(); - } - - case "UserMutationReturn": - if (userMutationReturn != null) { - return userMutationReturn( - this as Fragment$basicMutationReturnFields$$UserMutationReturn); - } else { - return orElse(); - } - - default: - return orElse(); - } - } -} - -abstract class CopyWith$Fragment$basicMutationReturnFields { - factory CopyWith$Fragment$basicMutationReturnFields( - Fragment$basicMutationReturnFields instance, - TRes Function(Fragment$basicMutationReturnFields) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields; - - factory CopyWith$Fragment$basicMutationReturnFields.stub(TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithImpl$Fragment$basicMutationReturnFields( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields _instance; - - final TRes Function(Fragment$basicMutationReturnFields) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields - implements CopyWith$Fragment$basicMutationReturnFields { - _CopyWithStubImpl$Fragment$basicMutationReturnFields(this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -const fragmentDefinitionbasicMutationReturnFields = FragmentDefinitionNode( - name: NameNode(value: 'basicMutationReturnFields'), - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'MutationReturnInterface'), - isNonNull: false, - )), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'code'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'message'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: 'success'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), -); -const documentNodeFragmentbasicMutationReturnFields = - DocumentNode(definitions: [ - fragmentDefinitionbasicMutationReturnFields, -]); - -extension ClientExtension$Fragment$basicMutationReturnFields - on graphql.GraphQLClient { - void writeFragment$basicMutationReturnFields({ - required Fragment$basicMutationReturnFields data, - required Map idFields, - bool broadcast = true, - }) => - this.writeFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - data: data.toJson(), - broadcast: broadcast, - ); - Fragment$basicMutationReturnFields? readFragment$basicMutationReturnFields({ - required Map idFields, - bool optimistic = true, - }) { - final result = this.readFragment( - graphql.FragmentRequest( - idFields: idFields, - fragment: const graphql.Fragment( - fragmentName: 'basicMutationReturnFields', - document: documentNodeFragmentbasicMutationReturnFields, - ), - ), - optimistic: optimistic, - ); - return result == null - ? null - : Fragment$basicMutationReturnFields.fromJson(result); - } -} - -class Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ApiKeyMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn - on Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - Fragment$basicMutationReturnFields$$ApiKeyMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ApiKeyMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ApiKeyMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'AutoUpgradeSettingsMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - on Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - instance, - TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then( - Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$AutoUpgradeSettingsMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'DeviceApiTokenMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - on Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn instance, - TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn - _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericBackupConfigReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn - on Fragment$basicMutationReturnFields$$GenericBackupConfigReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericBackupConfigReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericBackupConfigReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericBackupConfigReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$GenericJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericJobMutationReturn - on Fragment$basicMutationReturnFields$$GenericJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - Fragment$basicMutationReturnFields$$GenericJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$GenericJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$GenericMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$GenericMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'GenericMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$GenericMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$GenericMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$GenericMutationReturn - on Fragment$basicMutationReturnFields$$GenericMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - Fragment$basicMutationReturnFields$$GenericMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn( - Fragment$basicMutationReturnFields$$GenericMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$GenericMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$GenericMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$GenericMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$GenericMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceJobMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn - on Fragment$basicMutationReturnFields$$ServiceJobMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceJobMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$ServiceJobMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceJobMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$ServiceMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$ServiceMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'ServiceMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$ServiceMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$ServiceMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$ServiceMutationReturn - on Fragment$basicMutationReturnFields$$ServiceMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - Fragment$basicMutationReturnFields$$ServiceMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - Fragment$basicMutationReturnFields$$ServiceMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$ServiceMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$ServiceMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$ServiceMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$ServiceMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$ServiceMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$TimezoneMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$TimezoneMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'TimezoneMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$TimezoneMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other - is Fragment$basicMutationReturnFields$$TimezoneMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$TimezoneMutationReturn - on Fragment$basicMutationReturnFields$$TimezoneMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - Fragment$basicMutationReturnFields$$TimezoneMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$TimezoneMutationReturn) - then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$TimezoneMutationReturn _instance; - - final TRes Function( - Fragment$basicMutationReturnFields$$TimezoneMutationReturn) _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$TimezoneMutationReturn< - TRes> { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$TimezoneMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} - -class Fragment$basicMutationReturnFields$$UserMutationReturn - implements Fragment$basicMutationReturnFields { - Fragment$basicMutationReturnFields$$UserMutationReturn({ - required this.code, - required this.message, - required this.success, - this.$__typename = 'UserMutationReturn', - }); - - factory Fragment$basicMutationReturnFields$$UserMutationReturn.fromJson( - Map json) { - final l$code = json['code']; - final l$message = json['message']; - final l$success = json['success']; - final l$$__typename = json['__typename']; - return Fragment$basicMutationReturnFields$$UserMutationReturn( - code: (l$code as int), - message: (l$message as String), - success: (l$success as bool), - $__typename: (l$$__typename as String), - ); - } - - final int code; - - final String message; - - final bool success; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$code = code; - _resultData['code'] = l$code; - final l$message = message; - _resultData['message'] = l$message; - final l$success = success; - _resultData['success'] = l$success; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } - - @override - int get hashCode { - final l$code = code; - final l$message = message; - final l$success = success; - final l$$__typename = $__typename; - return Object.hashAll([ - l$code, - l$message, - l$success, - l$$__typename, - ]); - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Fragment$basicMutationReturnFields$$UserMutationReturn) || - runtimeType != other.runtimeType) { - return false; - } - final l$code = code; - final lOther$code = other.code; - if (l$code != lOther$code) { - return false; - } - final l$message = message; - final lOther$message = other.message; - if (l$message != lOther$message) { - return false; - } - final l$success = success; - final lOther$success = other.success; - if (l$success != lOther$success) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; - } -} - -extension UtilityExtension$Fragment$basicMutationReturnFields$$UserMutationReturn - on Fragment$basicMutationReturnFields$$UserMutationReturn { - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - Fragment$basicMutationReturnFields$$UserMutationReturn> - get copyWith => - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - this, - (i) => i, - ); -} - -abstract class CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> { - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn( - Fragment$basicMutationReturnFields$$UserMutationReturn instance, - TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) then, - ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - factory CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn.stub( - TRes res) = - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn; - - TRes call({ - int? code, - String? message, - bool? success, - String? $__typename, - }); -} - -class _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._instance, - this._then, - ); - - final Fragment$basicMutationReturnFields$$UserMutationReturn _instance; - - final TRes Function(Fragment$basicMutationReturnFields$$UserMutationReturn) - _then; - - static const _undefined = {}; - - TRes call({ - Object? code = _undefined, - Object? message = _undefined, - Object? success = _undefined, - Object? $__typename = _undefined, - }) => - _then(Fragment$basicMutationReturnFields$$UserMutationReturn( - code: - code == _undefined || code == null ? _instance.code : (code as int), - message: message == _undefined || message == null - ? _instance.message - : (message as String), - success: success == _undefined || success == null - ? _instance.success - : (success as bool), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); -} - -class _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn< - TRes> - implements - CopyWith$Fragment$basicMutationReturnFields$$UserMutationReturn { - _CopyWithStubImpl$Fragment$basicMutationReturnFields$$UserMutationReturn( - this._res); - - TRes _res; - - call({ - int? code, - String? message, - bool? success, - String? $__typename, - }) => - _res; -} +import 'server_api.graphql.dart'; class Fragment$userFields { Fragment$userFields({ diff --git a/lib/logic/api_maps/graphql_maps/server_api/server_api.dart b/lib/logic/api_maps/graphql_maps/server_api/server_api.dart index 91694945..bc28a681 100644 --- a/lib/logic/api_maps/graphql_maps/server_api/server_api.dart +++ b/lib/logic/api_maps/graphql_maps/server_api/server_api.dart @@ -35,7 +35,13 @@ part 'volume_api.dart'; part 'backups_api.dart'; class ServerApi extends GraphQLApiMap - with VolumeApi, JobsApi, ServerActionsApi, ServicesApi, UsersApi, BackupsApi { + with + VolumeApi, + JobsApi, + ServerActionsApi, + ServicesApi, + UsersApi, + BackupsApi { ServerApi({ this.hasLogger = false, this.isWithToken = true,