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'; 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 "GenericJobButationReturn": return Fragment$basicMutationReturnFields$$GenericJobButationReturn .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$$GenericJobButationReturn) genericJobButationReturn, 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 "GenericJobButationReturn": return genericJobButationReturn(this as Fragment$basicMutationReturnFields$$GenericJobButationReturn); 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$$GenericJobButationReturn)? genericJobButationReturn, _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 "GenericJobButationReturn": if (genericJobButationReturn != null) { return genericJobButationReturn(this as Fragment$basicMutationReturnFields$$GenericJobButationReturn); } 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$$GenericJobButationReturn implements Fragment$basicMutationReturnFields { Fragment$basicMutationReturnFields$$GenericJobButationReturn({ required this.code, required this.message, required this.success, this.$__typename = 'GenericJobButationReturn', }); factory Fragment$basicMutationReturnFields$$GenericJobButationReturn.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$$GenericJobButationReturn( 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$$GenericJobButationReturn) || 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$$GenericJobButationReturn on Fragment$basicMutationReturnFields$$GenericJobButationReturn { CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn< Fragment$basicMutationReturnFields$$GenericJobButationReturn> get copyWith => CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn( this, (i) => i, ); } abstract class CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn< TRes> { factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn( Fragment$basicMutationReturnFields$$GenericJobButationReturn instance, TRes Function(Fragment$basicMutationReturnFields$$GenericJobButationReturn) then, ) = _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobButationReturn; factory CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn.stub( TRes res) = _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobButationReturn; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobButationReturn< TRes> implements CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn< TRes> { _CopyWithImpl$Fragment$basicMutationReturnFields$$GenericJobButationReturn( this._instance, this._then, ); final Fragment$basicMutationReturnFields$$GenericJobButationReturn _instance; final TRes Function( Fragment$basicMutationReturnFields$$GenericJobButationReturn) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Fragment$basicMutationReturnFields$$GenericJobButationReturn( 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$$GenericJobButationReturn< TRes> implements CopyWith$Fragment$basicMutationReturnFields$$GenericJobButationReturn< TRes> { _CopyWithStubImpl$Fragment$basicMutationReturnFields$$GenericJobButationReturn( 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$GetApiVersion { Query$GetApiVersion({ required this.api, this.$__typename = 'Query', }); factory Query$GetApiVersion.fromJson(Map json) { final l$api = json['api']; final l$$__typename = json['__typename']; return Query$GetApiVersion( api: Query$GetApiVersion$api.fromJson((l$api as Map)), $__typename: (l$$__typename as String), ); } final Query$GetApiVersion$api api; final String $__typename; Map toJson() { final _resultData = {}; final l$api = api; _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ l$api, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiVersion) || runtimeType != other.runtimeType) { return false; } final l$api = api; final lOther$api = other.api; if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiVersion on Query$GetApiVersion { CopyWith$Query$GetApiVersion get copyWith => CopyWith$Query$GetApiVersion( this, (i) => i, ); } abstract class CopyWith$Query$GetApiVersion { factory CopyWith$Query$GetApiVersion( Query$GetApiVersion instance, TRes Function(Query$GetApiVersion) then, ) = _CopyWithImpl$Query$GetApiVersion; factory CopyWith$Query$GetApiVersion.stub(TRes res) = _CopyWithStubImpl$Query$GetApiVersion; TRes call({ Query$GetApiVersion$api? api, String? $__typename, }); CopyWith$Query$GetApiVersion$api get api; } class _CopyWithImpl$Query$GetApiVersion implements CopyWith$Query$GetApiVersion { _CopyWithImpl$Query$GetApiVersion( this._instance, this._then, ); final Query$GetApiVersion _instance; final TRes Function(Query$GetApiVersion) _then; static const _undefined = {}; TRes call({ Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiVersion( api: api == _undefined || api == null ? _instance.api : (api as Query$GetApiVersion$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$GetApiVersion$api get api { final local$api = _instance.api; return CopyWith$Query$GetApiVersion$api(local$api, (e) => call(api: e)); } } class _CopyWithStubImpl$Query$GetApiVersion implements CopyWith$Query$GetApiVersion { _CopyWithStubImpl$Query$GetApiVersion(this._res); TRes _res; call({ Query$GetApiVersion$api? api, String? $__typename, }) => _res; CopyWith$Query$GetApiVersion$api get api => CopyWith$Query$GetApiVersion$api.stub(_res); } const documentNodeQueryGetApiVersion = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'GetApiVersion'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'version'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$GetApiVersion _parserFn$Query$GetApiVersion(Map data) => Query$GetApiVersion.fromJson(data); typedef OnQueryComplete$Query$GetApiVersion = FutureOr Function( Map?, Query$GetApiVersion?, ); class Options$Query$GetApiVersion extends graphql.QueryOptions { Options$Query$GetApiVersion({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiVersion? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$GetApiVersion? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$GetApiVersion(data), ), onError: onError, document: documentNodeQueryGetApiVersion, parserFn: _parserFn$Query$GetApiVersion, ); final OnQueryComplete$Query$GetApiVersion? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$GetApiVersion extends graphql.WatchQueryOptions { WatchOptions$Query$GetApiVersion({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiVersion? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQueryGetApiVersion, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$GetApiVersion, ); } class FetchMoreOptions$Query$GetApiVersion extends graphql.FetchMoreOptions { FetchMoreOptions$Query$GetApiVersion( {required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQueryGetApiVersion, ); } extension ClientExtension$Query$GetApiVersion on graphql.GraphQLClient { Future> query$GetApiVersion( [Options$Query$GetApiVersion? options]) async => await this.query(options ?? Options$Query$GetApiVersion()); graphql.ObservableQuery watchQuery$GetApiVersion( [WatchOptions$Query$GetApiVersion? options]) => this.watchQuery(options ?? WatchOptions$Query$GetApiVersion()); void writeQuery$GetApiVersion({ required Query$GetApiVersion data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiVersion)), data: data.toJson(), broadcast: broadcast, ); Query$GetApiVersion? readQuery$GetApiVersion({bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiVersion)), optimistic: optimistic, ); return result == null ? null : Query$GetApiVersion.fromJson(result); } } class Query$GetApiVersion$api { Query$GetApiVersion$api({ required this.version, this.$__typename = 'Api', }); factory Query$GetApiVersion$api.fromJson(Map json) { final l$version = json['version']; final l$$__typename = json['__typename']; return Query$GetApiVersion$api( version: (l$version as String), $__typename: (l$$__typename as String), ); } final String version; final String $__typename; Map toJson() { final _resultData = {}; final l$version = version; _resultData['version'] = l$version; final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$version = version; final l$$__typename = $__typename; return Object.hashAll([ l$version, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiVersion$api) || runtimeType != other.runtimeType) { return false; } final l$version = version; final lOther$version = other.version; if (l$version != lOther$version) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiVersion$api on Query$GetApiVersion$api { CopyWith$Query$GetApiVersion$api get copyWith => CopyWith$Query$GetApiVersion$api( this, (i) => i, ); } abstract class CopyWith$Query$GetApiVersion$api { factory CopyWith$Query$GetApiVersion$api( Query$GetApiVersion$api instance, TRes Function(Query$GetApiVersion$api) then, ) = _CopyWithImpl$Query$GetApiVersion$api; factory CopyWith$Query$GetApiVersion$api.stub(TRes res) = _CopyWithStubImpl$Query$GetApiVersion$api; TRes call({ String? version, String? $__typename, }); } class _CopyWithImpl$Query$GetApiVersion$api implements CopyWith$Query$GetApiVersion$api { _CopyWithImpl$Query$GetApiVersion$api( this._instance, this._then, ); final Query$GetApiVersion$api _instance; final TRes Function(Query$GetApiVersion$api) _then; static const _undefined = {}; TRes call({ Object? version = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiVersion$api( version: version == _undefined || version == null ? _instance.version : (version as String), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$GetApiVersion$api implements CopyWith$Query$GetApiVersion$api { _CopyWithStubImpl$Query$GetApiVersion$api(this._res); TRes _res; call({ String? version, String? $__typename, }) => _res; } class Query$GetApiJobs { Query$GetApiJobs({ required this.jobs, this.$__typename = 'Query', }); factory Query$GetApiJobs.fromJson(Map json) { final l$jobs = json['jobs']; final l$$__typename = json['__typename']; return Query$GetApiJobs( jobs: Query$GetApiJobs$jobs.fromJson((l$jobs as Map)), $__typename: (l$$__typename as String), ); } final Query$GetApiJobs$jobs jobs; final String $__typename; Map toJson() { final _resultData = {}; final l$jobs = jobs; _resultData['jobs'] = l$jobs.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$jobs = jobs; final l$$__typename = $__typename; return Object.hashAll([ l$jobs, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiJobs) || runtimeType != other.runtimeType) { return false; } final l$jobs = jobs; final lOther$jobs = other.jobs; if (l$jobs != lOther$jobs) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiJobs on Query$GetApiJobs { CopyWith$Query$GetApiJobs get copyWith => CopyWith$Query$GetApiJobs( this, (i) => i, ); } abstract class CopyWith$Query$GetApiJobs { factory CopyWith$Query$GetApiJobs( Query$GetApiJobs instance, TRes Function(Query$GetApiJobs) then, ) = _CopyWithImpl$Query$GetApiJobs; factory CopyWith$Query$GetApiJobs.stub(TRes res) = _CopyWithStubImpl$Query$GetApiJobs; TRes call({ Query$GetApiJobs$jobs? jobs, String? $__typename, }); CopyWith$Query$GetApiJobs$jobs get jobs; } class _CopyWithImpl$Query$GetApiJobs implements CopyWith$Query$GetApiJobs { _CopyWithImpl$Query$GetApiJobs( this._instance, this._then, ); final Query$GetApiJobs _instance; final TRes Function(Query$GetApiJobs) _then; static const _undefined = {}; TRes call({ Object? jobs = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiJobs( jobs: jobs == _undefined || jobs == null ? _instance.jobs : (jobs as Query$GetApiJobs$jobs), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$GetApiJobs$jobs get jobs { final local$jobs = _instance.jobs; return CopyWith$Query$GetApiJobs$jobs(local$jobs, (e) => call(jobs: e)); } } class _CopyWithStubImpl$Query$GetApiJobs implements CopyWith$Query$GetApiJobs { _CopyWithStubImpl$Query$GetApiJobs(this._res); TRes _res; call({ Query$GetApiJobs$jobs? jobs, String? $__typename, }) => _res; CopyWith$Query$GetApiJobs$jobs get jobs => CopyWith$Query$GetApiJobs$jobs.stub(_res); } const documentNodeQueryGetApiJobs = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'GetApiJobs'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'jobs'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'getJobs'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'createdAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'description'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'error'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'finishedAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'name'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'progress'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'result'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'status'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'statusText'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'uid'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'updatedAt'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$GetApiJobs _parserFn$Query$GetApiJobs(Map data) => Query$GetApiJobs.fromJson(data); typedef OnQueryComplete$Query$GetApiJobs = FutureOr Function( Map?, Query$GetApiJobs?, ); class Options$Query$GetApiJobs extends graphql.QueryOptions { Options$Query$GetApiJobs({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiJobs? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$GetApiJobs? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$GetApiJobs(data), ), onError: onError, document: documentNodeQueryGetApiJobs, parserFn: _parserFn$Query$GetApiJobs, ); final OnQueryComplete$Query$GetApiJobs? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$GetApiJobs extends graphql.WatchQueryOptions { WatchOptions$Query$GetApiJobs({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiJobs? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQueryGetApiJobs, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$GetApiJobs, ); } class FetchMoreOptions$Query$GetApiJobs extends graphql.FetchMoreOptions { FetchMoreOptions$Query$GetApiJobs({required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQueryGetApiJobs, ); } extension ClientExtension$Query$GetApiJobs on graphql.GraphQLClient { Future> query$GetApiJobs( [Options$Query$GetApiJobs? options]) async => await this.query(options ?? Options$Query$GetApiJobs()); graphql.ObservableQuery watchQuery$GetApiJobs( [WatchOptions$Query$GetApiJobs? options]) => this.watchQuery(options ?? WatchOptions$Query$GetApiJobs()); void writeQuery$GetApiJobs({ required Query$GetApiJobs data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiJobs)), data: data.toJson(), broadcast: broadcast, ); Query$GetApiJobs? readQuery$GetApiJobs({bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiJobs)), optimistic: optimistic, ); return result == null ? null : Query$GetApiJobs.fromJson(result); } } class Query$GetApiJobs$jobs { Query$GetApiJobs$jobs({ required this.getJobs, this.$__typename = 'Job', }); factory Query$GetApiJobs$jobs.fromJson(Map json) { final l$getJobs = json['getJobs']; final l$$__typename = json['__typename']; return Query$GetApiJobs$jobs( getJobs: (l$getJobs as List) .map((e) => Query$GetApiJobs$jobs$getJobs.fromJson( (e as Map))) .toList(), $__typename: (l$$__typename as String), ); } final List getJobs; final String $__typename; Map toJson() { final _resultData = {}; final l$getJobs = getJobs; _resultData['getJobs'] = l$getJobs.map((e) => e.toJson()).toList(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$getJobs = getJobs; final l$$__typename = $__typename; return Object.hashAll([ Object.hashAll(l$getJobs.map((v) => v)), l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiJobs$jobs) || runtimeType != other.runtimeType) { return false; } final l$getJobs = getJobs; final lOther$getJobs = other.getJobs; if (l$getJobs.length != lOther$getJobs.length) { return false; } for (int i = 0; i < l$getJobs.length; i++) { final l$getJobs$entry = l$getJobs[i]; final lOther$getJobs$entry = lOther$getJobs[i]; if (l$getJobs$entry != lOther$getJobs$entry) { return false; } } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiJobs$jobs on Query$GetApiJobs$jobs { CopyWith$Query$GetApiJobs$jobs get copyWith => CopyWith$Query$GetApiJobs$jobs( this, (i) => i, ); } abstract class CopyWith$Query$GetApiJobs$jobs { factory CopyWith$Query$GetApiJobs$jobs( Query$GetApiJobs$jobs instance, TRes Function(Query$GetApiJobs$jobs) then, ) = _CopyWithImpl$Query$GetApiJobs$jobs; factory CopyWith$Query$GetApiJobs$jobs.stub(TRes res) = _CopyWithStubImpl$Query$GetApiJobs$jobs; TRes call({ List? getJobs, String? $__typename, }); TRes getJobs( Iterable Function( Iterable< CopyWith$Query$GetApiJobs$jobs$getJobs< Query$GetApiJobs$jobs$getJobs>>) _fn); } class _CopyWithImpl$Query$GetApiJobs$jobs implements CopyWith$Query$GetApiJobs$jobs { _CopyWithImpl$Query$GetApiJobs$jobs( this._instance, this._then, ); final Query$GetApiJobs$jobs _instance; final TRes Function(Query$GetApiJobs$jobs) _then; static const _undefined = {}; TRes call({ Object? getJobs = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiJobs$jobs( getJobs: getJobs == _undefined || getJobs == null ? _instance.getJobs : (getJobs as List), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); TRes getJobs( Iterable Function( Iterable< CopyWith$Query$GetApiJobs$jobs$getJobs< Query$GetApiJobs$jobs$getJobs>>) _fn) => call( getJobs: _fn(_instance.getJobs .map((e) => CopyWith$Query$GetApiJobs$jobs$getJobs( e, (i) => i, ))).toList()); } class _CopyWithStubImpl$Query$GetApiJobs$jobs implements CopyWith$Query$GetApiJobs$jobs { _CopyWithStubImpl$Query$GetApiJobs$jobs(this._res); TRes _res; call({ List? getJobs, String? $__typename, }) => _res; getJobs(_fn) => _res; } class Query$GetApiJobs$jobs$getJobs { Query$GetApiJobs$jobs$getJobs({ required this.createdAt, required this.description, this.error, this.finishedAt, required this.name, this.progress, this.result, required this.status, this.statusText, required this.uid, required this.updatedAt, this.$__typename = 'ApiJob', }); factory Query$GetApiJobs$jobs$getJobs.fromJson(Map json) { final l$createdAt = json['createdAt']; final l$description = json['description']; final l$error = json['error']; final l$finishedAt = json['finishedAt']; final l$name = json['name']; final l$progress = json['progress']; final l$result = json['result']; final l$status = json['status']; final l$statusText = json['statusText']; final l$uid = json['uid']; final l$updatedAt = json['updatedAt']; final l$$__typename = json['__typename']; return Query$GetApiJobs$jobs$getJobs( createdAt: dateTimeFromJson(l$createdAt), description: (l$description as String), error: (l$error as String?), finishedAt: l$finishedAt == null ? null : dateTimeFromJson(l$finishedAt), name: (l$name as String), progress: (l$progress as int?), result: (l$result as String?), status: (l$status as String), statusText: (l$statusText as String?), uid: (l$uid as String), updatedAt: dateTimeFromJson(l$updatedAt), $__typename: (l$$__typename as String), ); } final DateTime createdAt; final String description; final String? error; final DateTime? finishedAt; final String name; final int? progress; final String? result; final String status; final String? statusText; final String uid; final DateTime updatedAt; final String $__typename; Map toJson() { final _resultData = {}; final l$createdAt = createdAt; _resultData['createdAt'] = dateTimeToJson(l$createdAt); final l$description = description; _resultData['description'] = l$description; final l$error = error; _resultData['error'] = l$error; final l$finishedAt = finishedAt; _resultData['finishedAt'] = l$finishedAt == null ? null : dateTimeToJson(l$finishedAt); final l$name = name; _resultData['name'] = l$name; final l$progress = progress; _resultData['progress'] = l$progress; final l$result = result; _resultData['result'] = l$result; final l$status = status; _resultData['status'] = l$status; final l$statusText = statusText; _resultData['statusText'] = l$statusText; final l$uid = uid; _resultData['uid'] = l$uid; final l$updatedAt = updatedAt; _resultData['updatedAt'] = dateTimeToJson(l$updatedAt); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$createdAt = createdAt; final l$description = description; final l$error = error; final l$finishedAt = finishedAt; final l$name = name; final l$progress = progress; final l$result = result; final l$status = status; final l$statusText = statusText; final l$uid = uid; final l$updatedAt = updatedAt; final l$$__typename = $__typename; return Object.hashAll([ l$createdAt, l$description, l$error, l$finishedAt, l$name, l$progress, l$result, l$status, l$statusText, l$uid, l$updatedAt, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiJobs$jobs$getJobs) || runtimeType != other.runtimeType) { return false; } final l$createdAt = createdAt; final lOther$createdAt = other.createdAt; if (l$createdAt != lOther$createdAt) { return false; } final l$description = description; final lOther$description = other.description; if (l$description != lOther$description) { return false; } final l$error = error; final lOther$error = other.error; if (l$error != lOther$error) { return false; } final l$finishedAt = finishedAt; final lOther$finishedAt = other.finishedAt; if (l$finishedAt != lOther$finishedAt) { return false; } final l$name = name; final lOther$name = other.name; if (l$name != lOther$name) { return false; } final l$progress = progress; final lOther$progress = other.progress; if (l$progress != lOther$progress) { return false; } final l$result = result; final lOther$result = other.result; if (l$result != lOther$result) { return false; } final l$status = status; final lOther$status = other.status; if (l$status != lOther$status) { return false; } final l$statusText = statusText; final lOther$statusText = other.statusText; if (l$statusText != lOther$statusText) { return false; } final l$uid = uid; final lOther$uid = other.uid; if (l$uid != lOther$uid) { return false; } final l$updatedAt = updatedAt; final lOther$updatedAt = other.updatedAt; if (l$updatedAt != lOther$updatedAt) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiJobs$jobs$getJobs on Query$GetApiJobs$jobs$getJobs { CopyWith$Query$GetApiJobs$jobs$getJobs get copyWith => CopyWith$Query$GetApiJobs$jobs$getJobs( this, (i) => i, ); } abstract class CopyWith$Query$GetApiJobs$jobs$getJobs { factory CopyWith$Query$GetApiJobs$jobs$getJobs( Query$GetApiJobs$jobs$getJobs instance, TRes Function(Query$GetApiJobs$jobs$getJobs) then, ) = _CopyWithImpl$Query$GetApiJobs$jobs$getJobs; factory CopyWith$Query$GetApiJobs$jobs$getJobs.stub(TRes res) = _CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs; TRes call({ DateTime? createdAt, String? description, String? error, DateTime? finishedAt, String? name, int? progress, String? result, String? status, String? statusText, String? uid, DateTime? updatedAt, String? $__typename, }); } class _CopyWithImpl$Query$GetApiJobs$jobs$getJobs implements CopyWith$Query$GetApiJobs$jobs$getJobs { _CopyWithImpl$Query$GetApiJobs$jobs$getJobs( this._instance, this._then, ); final Query$GetApiJobs$jobs$getJobs _instance; final TRes Function(Query$GetApiJobs$jobs$getJobs) _then; static const _undefined = {}; TRes call({ Object? createdAt = _undefined, Object? description = _undefined, Object? error = _undefined, Object? finishedAt = _undefined, Object? name = _undefined, Object? progress = _undefined, Object? result = _undefined, Object? status = _undefined, Object? statusText = _undefined, Object? uid = _undefined, Object? updatedAt = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiJobs$jobs$getJobs( createdAt: createdAt == _undefined || createdAt == null ? _instance.createdAt : (createdAt as DateTime), description: description == _undefined || description == null ? _instance.description : (description as String), error: error == _undefined ? _instance.error : (error as String?), finishedAt: finishedAt == _undefined ? _instance.finishedAt : (finishedAt as DateTime?), name: name == _undefined || name == null ? _instance.name : (name as String), progress: progress == _undefined ? _instance.progress : (progress as int?), result: result == _undefined ? _instance.result : (result as String?), status: status == _undefined || status == null ? _instance.status : (status as String), statusText: statusText == _undefined ? _instance.statusText : (statusText as String?), uid: uid == _undefined || uid == null ? _instance.uid : (uid as String), updatedAt: updatedAt == _undefined || updatedAt == null ? _instance.updatedAt : (updatedAt as DateTime), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs implements CopyWith$Query$GetApiJobs$jobs$getJobs { _CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs(this._res); TRes _res; call({ DateTime? createdAt, String? description, String? error, DateTime? finishedAt, String? name, int? progress, String? result, String? status, String? statusText, String? uid, DateTime? updatedAt, String? $__typename, }) => _res; } class Variables$Mutation$RemoveJob { factory Variables$Mutation$RemoveJob({required String jobId}) => Variables$Mutation$RemoveJob._({ r'jobId': jobId, }); Variables$Mutation$RemoveJob._(this._$data); factory Variables$Mutation$RemoveJob.fromJson(Map data) { final result$data = {}; final l$jobId = data['jobId']; result$data['jobId'] = (l$jobId as String); return Variables$Mutation$RemoveJob._(result$data); } Map _$data; String get jobId => (_$data['jobId'] as String); Map toJson() { final result$data = {}; final l$jobId = jobId; result$data['jobId'] = l$jobId; return result$data; } CopyWith$Variables$Mutation$RemoveJob get copyWith => CopyWith$Variables$Mutation$RemoveJob( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$RemoveJob) || runtimeType != other.runtimeType) { return false; } final l$jobId = jobId; final lOther$jobId = other.jobId; if (l$jobId != lOther$jobId) { return false; } return true; } @override int get hashCode { final l$jobId = jobId; return Object.hashAll([l$jobId]); } } abstract class CopyWith$Variables$Mutation$RemoveJob { factory CopyWith$Variables$Mutation$RemoveJob( Variables$Mutation$RemoveJob instance, TRes Function(Variables$Mutation$RemoveJob) then, ) = _CopyWithImpl$Variables$Mutation$RemoveJob; factory CopyWith$Variables$Mutation$RemoveJob.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$RemoveJob; TRes call({String? jobId}); } class _CopyWithImpl$Variables$Mutation$RemoveJob implements CopyWith$Variables$Mutation$RemoveJob { _CopyWithImpl$Variables$Mutation$RemoveJob( this._instance, this._then, ); final Variables$Mutation$RemoveJob _instance; final TRes Function(Variables$Mutation$RemoveJob) _then; static const _undefined = {}; TRes call({Object? jobId = _undefined}) => _then(Variables$Mutation$RemoveJob._({ ..._instance._$data, if (jobId != _undefined && jobId != null) 'jobId': (jobId as String), })); } class _CopyWithStubImpl$Variables$Mutation$RemoveJob implements CopyWith$Variables$Mutation$RemoveJob { _CopyWithStubImpl$Variables$Mutation$RemoveJob(this._res); TRes _res; call({String? jobId}) => _res; } class Mutation$RemoveJob { Mutation$RemoveJob({ required this.removeJob, this.$__typename = 'Mutation', }); factory Mutation$RemoveJob.fromJson(Map json) { final l$removeJob = json['removeJob']; final l$$__typename = json['__typename']; return Mutation$RemoveJob( removeJob: Mutation$RemoveJob$removeJob.fromJson( (l$removeJob as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RemoveJob$removeJob removeJob; final String $__typename; Map toJson() { final _resultData = {}; final l$removeJob = removeJob; _resultData['removeJob'] = l$removeJob.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$removeJob = removeJob; final l$$__typename = $__typename; return Object.hashAll([ l$removeJob, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RemoveJob) || runtimeType != other.runtimeType) { return false; } final l$removeJob = removeJob; final lOther$removeJob = other.removeJob; if (l$removeJob != lOther$removeJob) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RemoveJob on Mutation$RemoveJob { CopyWith$Mutation$RemoveJob get copyWith => CopyWith$Mutation$RemoveJob( this, (i) => i, ); } abstract class CopyWith$Mutation$RemoveJob { factory CopyWith$Mutation$RemoveJob( Mutation$RemoveJob instance, TRes Function(Mutation$RemoveJob) then, ) = _CopyWithImpl$Mutation$RemoveJob; factory CopyWith$Mutation$RemoveJob.stub(TRes res) = _CopyWithStubImpl$Mutation$RemoveJob; TRes call({ Mutation$RemoveJob$removeJob? removeJob, String? $__typename, }); CopyWith$Mutation$RemoveJob$removeJob get removeJob; } class _CopyWithImpl$Mutation$RemoveJob implements CopyWith$Mutation$RemoveJob { _CopyWithImpl$Mutation$RemoveJob( this._instance, this._then, ); final Mutation$RemoveJob _instance; final TRes Function(Mutation$RemoveJob) _then; static const _undefined = {}; TRes call({ Object? removeJob = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveJob( removeJob: removeJob == _undefined || removeJob == null ? _instance.removeJob : (removeJob as Mutation$RemoveJob$removeJob), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RemoveJob$removeJob get removeJob { final local$removeJob = _instance.removeJob; return CopyWith$Mutation$RemoveJob$removeJob( local$removeJob, (e) => call(removeJob: e)); } } class _CopyWithStubImpl$Mutation$RemoveJob implements CopyWith$Mutation$RemoveJob { _CopyWithStubImpl$Mutation$RemoveJob(this._res); TRes _res; call({ Mutation$RemoveJob$removeJob? removeJob, String? $__typename, }) => _res; CopyWith$Mutation$RemoveJob$removeJob get removeJob => CopyWith$Mutation$RemoveJob$removeJob.stub(_res); } const documentNodeMutationRemoveJob = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RemoveJob'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'jobId')), type: NamedTypeNode( name: NameNode(value: 'String'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'removeJob'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'jobId'), value: VariableNode(name: NameNode(value: 'jobId')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RemoveJob _parserFn$Mutation$RemoveJob(Map data) => Mutation$RemoveJob.fromJson(data); typedef OnMutationCompleted$Mutation$RemoveJob = FutureOr Function( Map?, Mutation$RemoveJob?, ); class Options$Mutation$RemoveJob extends graphql.MutationOptions { Options$Mutation$RemoveJob({ String? operationName, required Variables$Mutation$RemoveJob variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RemoveJob? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RemoveJob? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RemoveJob(data), ), update: update, onError: onError, document: documentNodeMutationRemoveJob, parserFn: _parserFn$Mutation$RemoveJob, ); final OnMutationCompleted$Mutation$RemoveJob? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RemoveJob extends graphql.WatchQueryOptions { WatchOptions$Mutation$RemoveJob({ String? operationName, required Variables$Mutation$RemoveJob variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RemoveJob? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRemoveJob, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RemoveJob, ); } extension ClientExtension$Mutation$RemoveJob on graphql.GraphQLClient { Future> mutate$RemoveJob( Options$Mutation$RemoveJob options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$RemoveJob( WatchOptions$Mutation$RemoveJob options) => this.watchMutation(options); } class Mutation$RemoveJob$removeJob implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$RemoveJob$removeJob({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$RemoveJob$removeJob.fromJson(Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$RemoveJob$removeJob( 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 Mutation$RemoveJob$removeJob) || 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$Mutation$RemoveJob$removeJob on Mutation$RemoveJob$removeJob { CopyWith$Mutation$RemoveJob$removeJob get copyWith => CopyWith$Mutation$RemoveJob$removeJob( this, (i) => i, ); } abstract class CopyWith$Mutation$RemoveJob$removeJob { factory CopyWith$Mutation$RemoveJob$removeJob( Mutation$RemoveJob$removeJob instance, TRes Function(Mutation$RemoveJob$removeJob) then, ) = _CopyWithImpl$Mutation$RemoveJob$removeJob; factory CopyWith$Mutation$RemoveJob$removeJob.stub(TRes res) = _CopyWithStubImpl$Mutation$RemoveJob$removeJob; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$RemoveJob$removeJob implements CopyWith$Mutation$RemoveJob$removeJob { _CopyWithImpl$Mutation$RemoveJob$removeJob( this._instance, this._then, ); final Mutation$RemoveJob$removeJob _instance; final TRes Function(Mutation$RemoveJob$removeJob) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveJob$removeJob( 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$Mutation$RemoveJob$removeJob implements CopyWith$Mutation$RemoveJob$removeJob { _CopyWithStubImpl$Mutation$RemoveJob$removeJob(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$RunSystemRebuild { Mutation$RunSystemRebuild({ required this.runSystemRebuild, this.$__typename = 'Mutation', }); factory Mutation$RunSystemRebuild.fromJson(Map json) { final l$runSystemRebuild = json['runSystemRebuild']; final l$$__typename = json['__typename']; return Mutation$RunSystemRebuild( runSystemRebuild: Mutation$RunSystemRebuild$runSystemRebuild.fromJson( (l$runSystemRebuild as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RunSystemRebuild$runSystemRebuild runSystemRebuild; final String $__typename; Map toJson() { final _resultData = {}; final l$runSystemRebuild = runSystemRebuild; _resultData['runSystemRebuild'] = l$runSystemRebuild.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$runSystemRebuild = runSystemRebuild; final l$$__typename = $__typename; return Object.hashAll([ l$runSystemRebuild, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RunSystemRebuild) || runtimeType != other.runtimeType) { return false; } final l$runSystemRebuild = runSystemRebuild; final lOther$runSystemRebuild = other.runSystemRebuild; if (l$runSystemRebuild != lOther$runSystemRebuild) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RunSystemRebuild on Mutation$RunSystemRebuild { CopyWith$Mutation$RunSystemRebuild get copyWith => CopyWith$Mutation$RunSystemRebuild( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemRebuild { factory CopyWith$Mutation$RunSystemRebuild( Mutation$RunSystemRebuild instance, TRes Function(Mutation$RunSystemRebuild) then, ) = _CopyWithImpl$Mutation$RunSystemRebuild; factory CopyWith$Mutation$RunSystemRebuild.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemRebuild; TRes call({ Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild, String? $__typename, }); CopyWith$Mutation$RunSystemRebuild$runSystemRebuild get runSystemRebuild; } class _CopyWithImpl$Mutation$RunSystemRebuild implements CopyWith$Mutation$RunSystemRebuild { _CopyWithImpl$Mutation$RunSystemRebuild( this._instance, this._then, ); final Mutation$RunSystemRebuild _instance; final TRes Function(Mutation$RunSystemRebuild) _then; static const _undefined = {}; TRes call({ Object? runSystemRebuild = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRebuild( runSystemRebuild: runSystemRebuild == _undefined || runSystemRebuild == null ? _instance.runSystemRebuild : (runSystemRebuild as Mutation$RunSystemRebuild$runSystemRebuild), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RunSystemRebuild$runSystemRebuild get runSystemRebuild { final local$runSystemRebuild = _instance.runSystemRebuild; return CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( local$runSystemRebuild, (e) => call(runSystemRebuild: e)); } } class _CopyWithStubImpl$Mutation$RunSystemRebuild implements CopyWith$Mutation$RunSystemRebuild { _CopyWithStubImpl$Mutation$RunSystemRebuild(this._res); TRes _res; call({ Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild, String? $__typename, }) => _res; CopyWith$Mutation$RunSystemRebuild$runSystemRebuild get runSystemRebuild => CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(_res); } const documentNodeMutationRunSystemRebuild = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RunSystemRebuild'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'runSystemRebuild'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RunSystemRebuild _parserFn$Mutation$RunSystemRebuild( Map data) => Mutation$RunSystemRebuild.fromJson(data); typedef OnMutationCompleted$Mutation$RunSystemRebuild = FutureOr Function( Map?, Mutation$RunSystemRebuild?, ); class Options$Mutation$RunSystemRebuild extends graphql.MutationOptions { Options$Mutation$RunSystemRebuild({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemRebuild? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RunSystemRebuild? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RunSystemRebuild(data), ), update: update, onError: onError, document: documentNodeMutationRunSystemRebuild, parserFn: _parserFn$Mutation$RunSystemRebuild, ); final OnMutationCompleted$Mutation$RunSystemRebuild? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RunSystemRebuild extends graphql.WatchQueryOptions { WatchOptions$Mutation$RunSystemRebuild({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemRebuild? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRunSystemRebuild, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RunSystemRebuild, ); } extension ClientExtension$Mutation$RunSystemRebuild on graphql.GraphQLClient { Future> mutate$RunSystemRebuild( [Options$Mutation$RunSystemRebuild? options]) async => await this.mutate(options ?? Options$Mutation$RunSystemRebuild()); graphql.ObservableQuery< Mutation$RunSystemRebuild> watchMutation$RunSystemRebuild( [WatchOptions$Mutation$RunSystemRebuild? options]) => this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRebuild()); } class Mutation$RunSystemRebuild$runSystemRebuild implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$RunSystemRebuild$runSystemRebuild({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$RunSystemRebuild$runSystemRebuild.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$RunSystemRebuild$runSystemRebuild( 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 Mutation$RunSystemRebuild$runSystemRebuild) || 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$Mutation$RunSystemRebuild$runSystemRebuild on Mutation$RunSystemRebuild$runSystemRebuild { CopyWith$Mutation$RunSystemRebuild$runSystemRebuild< Mutation$RunSystemRebuild$runSystemRebuild> get copyWith => CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild( Mutation$RunSystemRebuild$runSystemRebuild instance, TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) then, ) = _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild; factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild( this._instance, this._then, ); final Mutation$RunSystemRebuild$runSystemRebuild _instance; final TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRebuild$runSystemRebuild( 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$Mutation$RunSystemRebuild$runSystemRebuild implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild { _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$RunSystemRollback { Mutation$RunSystemRollback({ required this.runSystemRollback, this.$__typename = 'Mutation', }); factory Mutation$RunSystemRollback.fromJson(Map json) { final l$runSystemRollback = json['runSystemRollback']; final l$$__typename = json['__typename']; return Mutation$RunSystemRollback( runSystemRollback: Mutation$RunSystemRollback$runSystemRollback.fromJson( (l$runSystemRollback as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RunSystemRollback$runSystemRollback runSystemRollback; final String $__typename; Map toJson() { final _resultData = {}; final l$runSystemRollback = runSystemRollback; _resultData['runSystemRollback'] = l$runSystemRollback.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$runSystemRollback = runSystemRollback; final l$$__typename = $__typename; return Object.hashAll([ l$runSystemRollback, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RunSystemRollback) || runtimeType != other.runtimeType) { return false; } final l$runSystemRollback = runSystemRollback; final lOther$runSystemRollback = other.runSystemRollback; if (l$runSystemRollback != lOther$runSystemRollback) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RunSystemRollback on Mutation$RunSystemRollback { CopyWith$Mutation$RunSystemRollback get copyWith => CopyWith$Mutation$RunSystemRollback( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemRollback { factory CopyWith$Mutation$RunSystemRollback( Mutation$RunSystemRollback instance, TRes Function(Mutation$RunSystemRollback) then, ) = _CopyWithImpl$Mutation$RunSystemRollback; factory CopyWith$Mutation$RunSystemRollback.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemRollback; TRes call({ Mutation$RunSystemRollback$runSystemRollback? runSystemRollback, String? $__typename, }); CopyWith$Mutation$RunSystemRollback$runSystemRollback get runSystemRollback; } class _CopyWithImpl$Mutation$RunSystemRollback implements CopyWith$Mutation$RunSystemRollback { _CopyWithImpl$Mutation$RunSystemRollback( this._instance, this._then, ); final Mutation$RunSystemRollback _instance; final TRes Function(Mutation$RunSystemRollback) _then; static const _undefined = {}; TRes call({ Object? runSystemRollback = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRollback( runSystemRollback: runSystemRollback == _undefined || runSystemRollback == null ? _instance.runSystemRollback : (runSystemRollback as Mutation$RunSystemRollback$runSystemRollback), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RunSystemRollback$runSystemRollback get runSystemRollback { final local$runSystemRollback = _instance.runSystemRollback; return CopyWith$Mutation$RunSystemRollback$runSystemRollback( local$runSystemRollback, (e) => call(runSystemRollback: e)); } } class _CopyWithStubImpl$Mutation$RunSystemRollback implements CopyWith$Mutation$RunSystemRollback { _CopyWithStubImpl$Mutation$RunSystemRollback(this._res); TRes _res; call({ Mutation$RunSystemRollback$runSystemRollback? runSystemRollback, String? $__typename, }) => _res; CopyWith$Mutation$RunSystemRollback$runSystemRollback get runSystemRollback => CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(_res); } const documentNodeMutationRunSystemRollback = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RunSystemRollback'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'runSystemRollback'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RunSystemRollback _parserFn$Mutation$RunSystemRollback( Map data) => Mutation$RunSystemRollback.fromJson(data); typedef OnMutationCompleted$Mutation$RunSystemRollback = FutureOr Function( Map?, Mutation$RunSystemRollback?, ); class Options$Mutation$RunSystemRollback extends graphql.MutationOptions { Options$Mutation$RunSystemRollback({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemRollback? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RunSystemRollback? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RunSystemRollback(data), ), update: update, onError: onError, document: documentNodeMutationRunSystemRollback, parserFn: _parserFn$Mutation$RunSystemRollback, ); final OnMutationCompleted$Mutation$RunSystemRollback? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RunSystemRollback extends graphql.WatchQueryOptions { WatchOptions$Mutation$RunSystemRollback({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemRollback? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRunSystemRollback, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RunSystemRollback, ); } extension ClientExtension$Mutation$RunSystemRollback on graphql.GraphQLClient { Future> mutate$RunSystemRollback( [Options$Mutation$RunSystemRollback? options]) async => await this.mutate(options ?? Options$Mutation$RunSystemRollback()); graphql.ObservableQuery< Mutation$RunSystemRollback> watchMutation$RunSystemRollback( [WatchOptions$Mutation$RunSystemRollback? options]) => this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRollback()); } class Mutation$RunSystemRollback$runSystemRollback implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$RunSystemRollback$runSystemRollback({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$RunSystemRollback$runSystemRollback.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$RunSystemRollback$runSystemRollback( 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 Mutation$RunSystemRollback$runSystemRollback) || 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$Mutation$RunSystemRollback$runSystemRollback on Mutation$RunSystemRollback$runSystemRollback { CopyWith$Mutation$RunSystemRollback$runSystemRollback< Mutation$RunSystemRollback$runSystemRollback> get copyWith => CopyWith$Mutation$RunSystemRollback$runSystemRollback( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemRollback$runSystemRollback { factory CopyWith$Mutation$RunSystemRollback$runSystemRollback( Mutation$RunSystemRollback$runSystemRollback instance, TRes Function(Mutation$RunSystemRollback$runSystemRollback) then, ) = _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback; factory CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback implements CopyWith$Mutation$RunSystemRollback$runSystemRollback { _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback( this._instance, this._then, ); final Mutation$RunSystemRollback$runSystemRollback _instance; final TRes Function(Mutation$RunSystemRollback$runSystemRollback) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemRollback$runSystemRollback( 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$Mutation$RunSystemRollback$runSystemRollback implements CopyWith$Mutation$RunSystemRollback$runSystemRollback { _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$RunSystemUpgrade { Mutation$RunSystemUpgrade({ required this.runSystemUpgrade, this.$__typename = 'Mutation', }); factory Mutation$RunSystemUpgrade.fromJson(Map json) { final l$runSystemUpgrade = json['runSystemUpgrade']; final l$$__typename = json['__typename']; return Mutation$RunSystemUpgrade( runSystemUpgrade: Mutation$RunSystemUpgrade$runSystemUpgrade.fromJson( (l$runSystemUpgrade as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RunSystemUpgrade$runSystemUpgrade runSystemUpgrade; final String $__typename; Map toJson() { final _resultData = {}; final l$runSystemUpgrade = runSystemUpgrade; _resultData['runSystemUpgrade'] = l$runSystemUpgrade.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$runSystemUpgrade = runSystemUpgrade; final l$$__typename = $__typename; return Object.hashAll([ l$runSystemUpgrade, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RunSystemUpgrade) || runtimeType != other.runtimeType) { return false; } final l$runSystemUpgrade = runSystemUpgrade; final lOther$runSystemUpgrade = other.runSystemUpgrade; if (l$runSystemUpgrade != lOther$runSystemUpgrade) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RunSystemUpgrade on Mutation$RunSystemUpgrade { CopyWith$Mutation$RunSystemUpgrade get copyWith => CopyWith$Mutation$RunSystemUpgrade( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemUpgrade { factory CopyWith$Mutation$RunSystemUpgrade( Mutation$RunSystemUpgrade instance, TRes Function(Mutation$RunSystemUpgrade) then, ) = _CopyWithImpl$Mutation$RunSystemUpgrade; factory CopyWith$Mutation$RunSystemUpgrade.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemUpgrade; TRes call({ Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade, String? $__typename, }); CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade get runSystemUpgrade; } class _CopyWithImpl$Mutation$RunSystemUpgrade implements CopyWith$Mutation$RunSystemUpgrade { _CopyWithImpl$Mutation$RunSystemUpgrade( this._instance, this._then, ); final Mutation$RunSystemUpgrade _instance; final TRes Function(Mutation$RunSystemUpgrade) _then; static const _undefined = {}; TRes call({ Object? runSystemUpgrade = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemUpgrade( runSystemUpgrade: runSystemUpgrade == _undefined || runSystemUpgrade == null ? _instance.runSystemUpgrade : (runSystemUpgrade as Mutation$RunSystemUpgrade$runSystemUpgrade), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade get runSystemUpgrade { final local$runSystemUpgrade = _instance.runSystemUpgrade; return CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( local$runSystemUpgrade, (e) => call(runSystemUpgrade: e)); } } class _CopyWithStubImpl$Mutation$RunSystemUpgrade implements CopyWith$Mutation$RunSystemUpgrade { _CopyWithStubImpl$Mutation$RunSystemUpgrade(this._res); TRes _res; call({ Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade, String? $__typename, }) => _res; CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade get runSystemUpgrade => CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(_res); } const documentNodeMutationRunSystemUpgrade = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RunSystemUpgrade'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'runSystemUpgrade'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RunSystemUpgrade _parserFn$Mutation$RunSystemUpgrade( Map data) => Mutation$RunSystemUpgrade.fromJson(data); typedef OnMutationCompleted$Mutation$RunSystemUpgrade = FutureOr Function( Map?, Mutation$RunSystemUpgrade?, ); class Options$Mutation$RunSystemUpgrade extends graphql.MutationOptions { Options$Mutation$RunSystemUpgrade({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemUpgrade? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RunSystemUpgrade? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RunSystemUpgrade(data), ), update: update, onError: onError, document: documentNodeMutationRunSystemUpgrade, parserFn: _parserFn$Mutation$RunSystemUpgrade, ); final OnMutationCompleted$Mutation$RunSystemUpgrade? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RunSystemUpgrade extends graphql.WatchQueryOptions { WatchOptions$Mutation$RunSystemUpgrade({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RunSystemUpgrade? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRunSystemUpgrade, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RunSystemUpgrade, ); } extension ClientExtension$Mutation$RunSystemUpgrade on graphql.GraphQLClient { Future> mutate$RunSystemUpgrade( [Options$Mutation$RunSystemUpgrade? options]) async => await this.mutate(options ?? Options$Mutation$RunSystemUpgrade()); graphql.ObservableQuery< Mutation$RunSystemUpgrade> watchMutation$RunSystemUpgrade( [WatchOptions$Mutation$RunSystemUpgrade? options]) => this.watchMutation(options ?? WatchOptions$Mutation$RunSystemUpgrade()); } class Mutation$RunSystemUpgrade$runSystemUpgrade implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$RunSystemUpgrade$runSystemUpgrade({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$RunSystemUpgrade$runSystemUpgrade.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$RunSystemUpgrade$runSystemUpgrade( 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 Mutation$RunSystemUpgrade$runSystemUpgrade) || 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$Mutation$RunSystemUpgrade$runSystemUpgrade on Mutation$RunSystemUpgrade$runSystemUpgrade { CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade< Mutation$RunSystemUpgrade$runSystemUpgrade> get copyWith => CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( this, (i) => i, ); } abstract class CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade( Mutation$RunSystemUpgrade$runSystemUpgrade instance, TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) then, ) = _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade; factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(TRes res) = _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade( this._instance, this._then, ); final Mutation$RunSystemUpgrade$runSystemUpgrade _instance; final TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RunSystemUpgrade$runSystemUpgrade( 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$Mutation$RunSystemUpgrade$runSystemUpgrade implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade { _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$PullRepositoryChanges { Mutation$PullRepositoryChanges({ required this.pullRepositoryChanges, this.$__typename = 'Mutation', }); factory Mutation$PullRepositoryChanges.fromJson(Map json) { final l$pullRepositoryChanges = json['pullRepositoryChanges']; final l$$__typename = json['__typename']; return Mutation$PullRepositoryChanges( pullRepositoryChanges: Mutation$PullRepositoryChanges$pullRepositoryChanges.fromJson( (l$pullRepositoryChanges as Map)), $__typename: (l$$__typename as String), ); } final Mutation$PullRepositoryChanges$pullRepositoryChanges pullRepositoryChanges; final String $__typename; Map toJson() { final _resultData = {}; final l$pullRepositoryChanges = pullRepositoryChanges; _resultData['pullRepositoryChanges'] = l$pullRepositoryChanges.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$pullRepositoryChanges = pullRepositoryChanges; final l$$__typename = $__typename; return Object.hashAll([ l$pullRepositoryChanges, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$PullRepositoryChanges) || runtimeType != other.runtimeType) { return false; } final l$pullRepositoryChanges = pullRepositoryChanges; final lOther$pullRepositoryChanges = other.pullRepositoryChanges; if (l$pullRepositoryChanges != lOther$pullRepositoryChanges) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$PullRepositoryChanges on Mutation$PullRepositoryChanges { CopyWith$Mutation$PullRepositoryChanges get copyWith => CopyWith$Mutation$PullRepositoryChanges( this, (i) => i, ); } abstract class CopyWith$Mutation$PullRepositoryChanges { factory CopyWith$Mutation$PullRepositoryChanges( Mutation$PullRepositoryChanges instance, TRes Function(Mutation$PullRepositoryChanges) then, ) = _CopyWithImpl$Mutation$PullRepositoryChanges; factory CopyWith$Mutation$PullRepositoryChanges.stub(TRes res) = _CopyWithStubImpl$Mutation$PullRepositoryChanges; TRes call({ Mutation$PullRepositoryChanges$pullRepositoryChanges? pullRepositoryChanges, String? $__typename, }); CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges get pullRepositoryChanges; } class _CopyWithImpl$Mutation$PullRepositoryChanges implements CopyWith$Mutation$PullRepositoryChanges { _CopyWithImpl$Mutation$PullRepositoryChanges( this._instance, this._then, ); final Mutation$PullRepositoryChanges _instance; final TRes Function(Mutation$PullRepositoryChanges) _then; static const _undefined = {}; TRes call({ Object? pullRepositoryChanges = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$PullRepositoryChanges( pullRepositoryChanges: pullRepositoryChanges == _undefined || pullRepositoryChanges == null ? _instance.pullRepositoryChanges : (pullRepositoryChanges as Mutation$PullRepositoryChanges$pullRepositoryChanges), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges get pullRepositoryChanges { final local$pullRepositoryChanges = _instance.pullRepositoryChanges; return CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( local$pullRepositoryChanges, (e) => call(pullRepositoryChanges: e)); } } class _CopyWithStubImpl$Mutation$PullRepositoryChanges implements CopyWith$Mutation$PullRepositoryChanges { _CopyWithStubImpl$Mutation$PullRepositoryChanges(this._res); TRes _res; call({ Mutation$PullRepositoryChanges$pullRepositoryChanges? pullRepositoryChanges, String? $__typename, }) => _res; CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges get pullRepositoryChanges => CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub( _res); } const documentNodeMutationPullRepositoryChanges = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'PullRepositoryChanges'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'pullRepositoryChanges'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$PullRepositoryChanges _parserFn$Mutation$PullRepositoryChanges( Map data) => Mutation$PullRepositoryChanges.fromJson(data); typedef OnMutationCompleted$Mutation$PullRepositoryChanges = FutureOr Function( Map?, Mutation$PullRepositoryChanges?, ); class Options$Mutation$PullRepositoryChanges extends graphql.MutationOptions { Options$Mutation$PullRepositoryChanges({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$PullRepositoryChanges? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$PullRepositoryChanges? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$PullRepositoryChanges(data), ), update: update, onError: onError, document: documentNodeMutationPullRepositoryChanges, parserFn: _parserFn$Mutation$PullRepositoryChanges, ); final OnMutationCompleted$Mutation$PullRepositoryChanges? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$PullRepositoryChanges extends graphql.WatchQueryOptions { WatchOptions$Mutation$PullRepositoryChanges({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$PullRepositoryChanges? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationPullRepositoryChanges, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$PullRepositoryChanges, ); } extension ClientExtension$Mutation$PullRepositoryChanges on graphql.GraphQLClient { Future> mutate$PullRepositoryChanges( [Options$Mutation$PullRepositoryChanges? options]) async => await this .mutate(options ?? Options$Mutation$PullRepositoryChanges()); graphql.ObservableQuery watchMutation$PullRepositoryChanges( [WatchOptions$Mutation$PullRepositoryChanges? options]) => this.watchMutation( options ?? WatchOptions$Mutation$PullRepositoryChanges()); } class Mutation$PullRepositoryChanges$pullRepositoryChanges implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$PullRepositoryChanges$pullRepositoryChanges({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$PullRepositoryChanges$pullRepositoryChanges.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$PullRepositoryChanges$pullRepositoryChanges( 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 Mutation$PullRepositoryChanges$pullRepositoryChanges) || 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$Mutation$PullRepositoryChanges$pullRepositoryChanges on Mutation$PullRepositoryChanges$pullRepositoryChanges { CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges< Mutation$PullRepositoryChanges$pullRepositoryChanges> get copyWith => CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( this, (i) => i, ); } abstract class CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges< TRes> { factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges( Mutation$PullRepositoryChanges$pullRepositoryChanges instance, TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges) then, ) = _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges; factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub( TRes res) = _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges implements CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges { _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges( this._instance, this._then, ); final Mutation$PullRepositoryChanges$pullRepositoryChanges _instance; final TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$PullRepositoryChanges$pullRepositoryChanges( 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$Mutation$PullRepositoryChanges$pullRepositoryChanges< TRes> implements CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges { _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$RebootSystem { Mutation$RebootSystem({ required this.rebootSystem, this.$__typename = 'Mutation', }); factory Mutation$RebootSystem.fromJson(Map json) { final l$rebootSystem = json['rebootSystem']; final l$$__typename = json['__typename']; return Mutation$RebootSystem( rebootSystem: Mutation$RebootSystem$rebootSystem.fromJson( (l$rebootSystem as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RebootSystem$rebootSystem rebootSystem; final String $__typename; Map toJson() { final _resultData = {}; final l$rebootSystem = rebootSystem; _resultData['rebootSystem'] = l$rebootSystem.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$rebootSystem = rebootSystem; final l$$__typename = $__typename; return Object.hashAll([ l$rebootSystem, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RebootSystem) || runtimeType != other.runtimeType) { return false; } final l$rebootSystem = rebootSystem; final lOther$rebootSystem = other.rebootSystem; if (l$rebootSystem != lOther$rebootSystem) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RebootSystem on Mutation$RebootSystem { CopyWith$Mutation$RebootSystem get copyWith => CopyWith$Mutation$RebootSystem( this, (i) => i, ); } abstract class CopyWith$Mutation$RebootSystem { factory CopyWith$Mutation$RebootSystem( Mutation$RebootSystem instance, TRes Function(Mutation$RebootSystem) then, ) = _CopyWithImpl$Mutation$RebootSystem; factory CopyWith$Mutation$RebootSystem.stub(TRes res) = _CopyWithStubImpl$Mutation$RebootSystem; TRes call({ Mutation$RebootSystem$rebootSystem? rebootSystem, String? $__typename, }); CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem; } class _CopyWithImpl$Mutation$RebootSystem implements CopyWith$Mutation$RebootSystem { _CopyWithImpl$Mutation$RebootSystem( this._instance, this._then, ); final Mutation$RebootSystem _instance; final TRes Function(Mutation$RebootSystem) _then; static const _undefined = {}; TRes call({ Object? rebootSystem = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RebootSystem( rebootSystem: rebootSystem == _undefined || rebootSystem == null ? _instance.rebootSystem : (rebootSystem as Mutation$RebootSystem$rebootSystem), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem { final local$rebootSystem = _instance.rebootSystem; return CopyWith$Mutation$RebootSystem$rebootSystem( local$rebootSystem, (e) => call(rebootSystem: e)); } } class _CopyWithStubImpl$Mutation$RebootSystem implements CopyWith$Mutation$RebootSystem { _CopyWithStubImpl$Mutation$RebootSystem(this._res); TRes _res; call({ Mutation$RebootSystem$rebootSystem? rebootSystem, String? $__typename, }) => _res; CopyWith$Mutation$RebootSystem$rebootSystem get rebootSystem => CopyWith$Mutation$RebootSystem$rebootSystem.stub(_res); } const documentNodeMutationRebootSystem = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RebootSystem'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'rebootSystem'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RebootSystem _parserFn$Mutation$RebootSystem( Map data) => Mutation$RebootSystem.fromJson(data); typedef OnMutationCompleted$Mutation$RebootSystem = FutureOr Function( Map?, Mutation$RebootSystem?, ); class Options$Mutation$RebootSystem extends graphql.MutationOptions { Options$Mutation$RebootSystem({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RebootSystem? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RebootSystem? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RebootSystem(data), ), update: update, onError: onError, document: documentNodeMutationRebootSystem, parserFn: _parserFn$Mutation$RebootSystem, ); final OnMutationCompleted$Mutation$RebootSystem? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RebootSystem extends graphql.WatchQueryOptions { WatchOptions$Mutation$RebootSystem({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RebootSystem? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRebootSystem, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RebootSystem, ); } extension ClientExtension$Mutation$RebootSystem on graphql.GraphQLClient { Future> mutate$RebootSystem( [Options$Mutation$RebootSystem? options]) async => await this.mutate(options ?? Options$Mutation$RebootSystem()); graphql.ObservableQuery watchMutation$RebootSystem( [WatchOptions$Mutation$RebootSystem? options]) => this.watchMutation(options ?? WatchOptions$Mutation$RebootSystem()); } class Mutation$RebootSystem$rebootSystem implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$RebootSystem$rebootSystem({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$RebootSystem$rebootSystem.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$RebootSystem$rebootSystem( 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 Mutation$RebootSystem$rebootSystem) || 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$Mutation$RebootSystem$rebootSystem on Mutation$RebootSystem$rebootSystem { CopyWith$Mutation$RebootSystem$rebootSystem< Mutation$RebootSystem$rebootSystem> get copyWith => CopyWith$Mutation$RebootSystem$rebootSystem( this, (i) => i, ); } abstract class CopyWith$Mutation$RebootSystem$rebootSystem { factory CopyWith$Mutation$RebootSystem$rebootSystem( Mutation$RebootSystem$rebootSystem instance, TRes Function(Mutation$RebootSystem$rebootSystem) then, ) = _CopyWithImpl$Mutation$RebootSystem$rebootSystem; factory CopyWith$Mutation$RebootSystem$rebootSystem.stub(TRes res) = _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$RebootSystem$rebootSystem implements CopyWith$Mutation$RebootSystem$rebootSystem { _CopyWithImpl$Mutation$RebootSystem$rebootSystem( this._instance, this._then, ); final Mutation$RebootSystem$rebootSystem _instance; final TRes Function(Mutation$RebootSystem$rebootSystem) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RebootSystem$rebootSystem( 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$Mutation$RebootSystem$rebootSystem implements CopyWith$Mutation$RebootSystem$rebootSystem { _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Query$SystemServerProvider { Query$SystemServerProvider({ required this.system, this.$__typename = 'Query', }); factory Query$SystemServerProvider.fromJson(Map json) { final l$system = json['system']; final l$$__typename = json['__typename']; return Query$SystemServerProvider( system: Query$SystemServerProvider$system.fromJson( (l$system as Map)), $__typename: (l$$__typename as String), ); } final Query$SystemServerProvider$system system; final String $__typename; Map toJson() { final _resultData = {}; final l$system = system; _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ l$system, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemServerProvider) || runtimeType != other.runtimeType) { return false; } final l$system = system; final lOther$system = other.system; if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemServerProvider on Query$SystemServerProvider { CopyWith$Query$SystemServerProvider get copyWith => CopyWith$Query$SystemServerProvider( this, (i) => i, ); } abstract class CopyWith$Query$SystemServerProvider { factory CopyWith$Query$SystemServerProvider( Query$SystemServerProvider instance, TRes Function(Query$SystemServerProvider) then, ) = _CopyWithImpl$Query$SystemServerProvider; factory CopyWith$Query$SystemServerProvider.stub(TRes res) = _CopyWithStubImpl$Query$SystemServerProvider; TRes call({ Query$SystemServerProvider$system? system, String? $__typename, }); CopyWith$Query$SystemServerProvider$system get system; } class _CopyWithImpl$Query$SystemServerProvider implements CopyWith$Query$SystemServerProvider { _CopyWithImpl$Query$SystemServerProvider( this._instance, this._then, ); final Query$SystemServerProvider _instance; final TRes Function(Query$SystemServerProvider) _then; static const _undefined = {}; TRes call({ Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemServerProvider( system: system == _undefined || system == null ? _instance.system : (system as Query$SystemServerProvider$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$SystemServerProvider$system get system { final local$system = _instance.system; return CopyWith$Query$SystemServerProvider$system( local$system, (e) => call(system: e)); } } class _CopyWithStubImpl$Query$SystemServerProvider implements CopyWith$Query$SystemServerProvider { _CopyWithStubImpl$Query$SystemServerProvider(this._res); TRes _res; call({ Query$SystemServerProvider$system? system, String? $__typename, }) => _res; CopyWith$Query$SystemServerProvider$system get system => CopyWith$Query$SystemServerProvider$system.stub(_res); } const documentNodeQuerySystemServerProvider = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'SystemServerProvider'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'provider'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'provider'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$SystemServerProvider _parserFn$Query$SystemServerProvider( Map data) => Query$SystemServerProvider.fromJson(data); typedef OnQueryComplete$Query$SystemServerProvider = FutureOr Function( Map?, Query$SystemServerProvider?, ); class Options$Query$SystemServerProvider extends graphql.QueryOptions { Options$Query$SystemServerProvider({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$SystemServerProvider? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$SystemServerProvider? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$SystemServerProvider(data), ), onError: onError, document: documentNodeQuerySystemServerProvider, parserFn: _parserFn$Query$SystemServerProvider, ); final OnQueryComplete$Query$SystemServerProvider? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$SystemServerProvider extends graphql.WatchQueryOptions { WatchOptions$Query$SystemServerProvider({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$SystemServerProvider? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQuerySystemServerProvider, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$SystemServerProvider, ); } class FetchMoreOptions$Query$SystemServerProvider extends graphql.FetchMoreOptions { FetchMoreOptions$Query$SystemServerProvider( {required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQuerySystemServerProvider, ); } extension ClientExtension$Query$SystemServerProvider on graphql.GraphQLClient { Future> query$SystemServerProvider( [Options$Query$SystemServerProvider? options]) async => await this.query(options ?? Options$Query$SystemServerProvider()); graphql.ObservableQuery watchQuery$SystemServerProvider( [WatchOptions$Query$SystemServerProvider? options]) => this.watchQuery(options ?? WatchOptions$Query$SystemServerProvider()); void writeQuery$SystemServerProvider({ required Query$SystemServerProvider data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation( document: documentNodeQuerySystemServerProvider)), data: data.toJson(), broadcast: broadcast, ); Query$SystemServerProvider? readQuery$SystemServerProvider( {bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation( document: documentNodeQuerySystemServerProvider)), optimistic: optimistic, ); return result == null ? null : Query$SystemServerProvider.fromJson(result); } } class Query$SystemServerProvider$system { Query$SystemServerProvider$system({ required this.provider, this.$__typename = 'System', }); factory Query$SystemServerProvider$system.fromJson( Map json) { final l$provider = json['provider']; final l$$__typename = json['__typename']; return Query$SystemServerProvider$system( provider: Query$SystemServerProvider$system$provider.fromJson( (l$provider as Map)), $__typename: (l$$__typename as String), ); } final Query$SystemServerProvider$system$provider provider; final String $__typename; Map toJson() { final _resultData = {}; final l$provider = provider; _resultData['provider'] = l$provider.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$provider = provider; final l$$__typename = $__typename; return Object.hashAll([ l$provider, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemServerProvider$system) || runtimeType != other.runtimeType) { return false; } final l$provider = provider; final lOther$provider = other.provider; if (l$provider != lOther$provider) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemServerProvider$system on Query$SystemServerProvider$system { CopyWith$Query$SystemServerProvider$system get copyWith => CopyWith$Query$SystemServerProvider$system( this, (i) => i, ); } abstract class CopyWith$Query$SystemServerProvider$system { factory CopyWith$Query$SystemServerProvider$system( Query$SystemServerProvider$system instance, TRes Function(Query$SystemServerProvider$system) then, ) = _CopyWithImpl$Query$SystemServerProvider$system; factory CopyWith$Query$SystemServerProvider$system.stub(TRes res) = _CopyWithStubImpl$Query$SystemServerProvider$system; TRes call({ Query$SystemServerProvider$system$provider? provider, String? $__typename, }); CopyWith$Query$SystemServerProvider$system$provider get provider; } class _CopyWithImpl$Query$SystemServerProvider$system implements CopyWith$Query$SystemServerProvider$system { _CopyWithImpl$Query$SystemServerProvider$system( this._instance, this._then, ); final Query$SystemServerProvider$system _instance; final TRes Function(Query$SystemServerProvider$system) _then; static const _undefined = {}; TRes call({ Object? provider = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemServerProvider$system( provider: provider == _undefined || provider == null ? _instance.provider : (provider as Query$SystemServerProvider$system$provider), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$SystemServerProvider$system$provider get provider { final local$provider = _instance.provider; return CopyWith$Query$SystemServerProvider$system$provider( local$provider, (e) => call(provider: e)); } } class _CopyWithStubImpl$Query$SystemServerProvider$system implements CopyWith$Query$SystemServerProvider$system { _CopyWithStubImpl$Query$SystemServerProvider$system(this._res); TRes _res; call({ Query$SystemServerProvider$system$provider? provider, String? $__typename, }) => _res; CopyWith$Query$SystemServerProvider$system$provider get provider => CopyWith$Query$SystemServerProvider$system$provider.stub(_res); } class Query$SystemServerProvider$system$provider { Query$SystemServerProvider$system$provider({ required this.provider, this.$__typename = 'SystemProviderInfo', }); factory Query$SystemServerProvider$system$provider.fromJson( Map json) { final l$provider = json['provider']; final l$$__typename = json['__typename']; return Query$SystemServerProvider$system$provider( provider: fromJson$Enum$ServerProvider((l$provider as String)), $__typename: (l$$__typename as String), ); } final Enum$ServerProvider provider; final String $__typename; Map toJson() { final _resultData = {}; final l$provider = provider; _resultData['provider'] = toJson$Enum$ServerProvider(l$provider); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$provider = provider; final l$$__typename = $__typename; return Object.hashAll([ l$provider, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemServerProvider$system$provider) || runtimeType != other.runtimeType) { return false; } final l$provider = provider; final lOther$provider = other.provider; if (l$provider != lOther$provider) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemServerProvider$system$provider on Query$SystemServerProvider$system$provider { CopyWith$Query$SystemServerProvider$system$provider< Query$SystemServerProvider$system$provider> get copyWith => CopyWith$Query$SystemServerProvider$system$provider( this, (i) => i, ); } abstract class CopyWith$Query$SystemServerProvider$system$provider { factory CopyWith$Query$SystemServerProvider$system$provider( Query$SystemServerProvider$system$provider instance, TRes Function(Query$SystemServerProvider$system$provider) then, ) = _CopyWithImpl$Query$SystemServerProvider$system$provider; factory CopyWith$Query$SystemServerProvider$system$provider.stub(TRes res) = _CopyWithStubImpl$Query$SystemServerProvider$system$provider; TRes call({ Enum$ServerProvider? provider, String? $__typename, }); } class _CopyWithImpl$Query$SystemServerProvider$system$provider implements CopyWith$Query$SystemServerProvider$system$provider { _CopyWithImpl$Query$SystemServerProvider$system$provider( this._instance, this._then, ); final Query$SystemServerProvider$system$provider _instance; final TRes Function(Query$SystemServerProvider$system$provider) _then; static const _undefined = {}; TRes call({ Object? provider = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemServerProvider$system$provider( provider: provider == _undefined || provider == null ? _instance.provider : (provider as Enum$ServerProvider), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$SystemServerProvider$system$provider implements CopyWith$Query$SystemServerProvider$system$provider { _CopyWithStubImpl$Query$SystemServerProvider$system$provider(this._res); TRes _res; call({ Enum$ServerProvider? provider, String? $__typename, }) => _res; } class Query$SystemDnsProvider { Query$SystemDnsProvider({ required this.system, this.$__typename = 'Query', }); factory Query$SystemDnsProvider.fromJson(Map json) { final l$system = json['system']; final l$$__typename = json['__typename']; return Query$SystemDnsProvider( system: Query$SystemDnsProvider$system.fromJson( (l$system as Map)), $__typename: (l$$__typename as String), ); } final Query$SystemDnsProvider$system system; final String $__typename; Map toJson() { final _resultData = {}; final l$system = system; _resultData['system'] = l$system.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$system = system; final l$$__typename = $__typename; return Object.hashAll([ l$system, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemDnsProvider) || runtimeType != other.runtimeType) { return false; } final l$system = system; final lOther$system = other.system; if (l$system != lOther$system) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemDnsProvider on Query$SystemDnsProvider { CopyWith$Query$SystemDnsProvider get copyWith => CopyWith$Query$SystemDnsProvider( this, (i) => i, ); } abstract class CopyWith$Query$SystemDnsProvider { factory CopyWith$Query$SystemDnsProvider( Query$SystemDnsProvider instance, TRes Function(Query$SystemDnsProvider) then, ) = _CopyWithImpl$Query$SystemDnsProvider; factory CopyWith$Query$SystemDnsProvider.stub(TRes res) = _CopyWithStubImpl$Query$SystemDnsProvider; TRes call({ Query$SystemDnsProvider$system? system, String? $__typename, }); CopyWith$Query$SystemDnsProvider$system get system; } class _CopyWithImpl$Query$SystemDnsProvider implements CopyWith$Query$SystemDnsProvider { _CopyWithImpl$Query$SystemDnsProvider( this._instance, this._then, ); final Query$SystemDnsProvider _instance; final TRes Function(Query$SystemDnsProvider) _then; static const _undefined = {}; TRes call({ Object? system = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemDnsProvider( system: system == _undefined || system == null ? _instance.system : (system as Query$SystemDnsProvider$system), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$SystemDnsProvider$system get system { final local$system = _instance.system; return CopyWith$Query$SystemDnsProvider$system( local$system, (e) => call(system: e)); } } class _CopyWithStubImpl$Query$SystemDnsProvider implements CopyWith$Query$SystemDnsProvider { _CopyWithStubImpl$Query$SystemDnsProvider(this._res); TRes _res; call({ Query$SystemDnsProvider$system? system, String? $__typename, }) => _res; CopyWith$Query$SystemDnsProvider$system get system => CopyWith$Query$SystemDnsProvider$system.stub(_res); } const documentNodeQuerySystemDnsProvider = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'SystemDnsProvider'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'system'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'domainInfo'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'provider'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$SystemDnsProvider _parserFn$Query$SystemDnsProvider( Map data) => Query$SystemDnsProvider.fromJson(data); typedef OnQueryComplete$Query$SystemDnsProvider = FutureOr Function( Map?, Query$SystemDnsProvider?, ); class Options$Query$SystemDnsProvider extends graphql.QueryOptions { Options$Query$SystemDnsProvider({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$SystemDnsProvider? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$SystemDnsProvider? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$SystemDnsProvider(data), ), onError: onError, document: documentNodeQuerySystemDnsProvider, parserFn: _parserFn$Query$SystemDnsProvider, ); final OnQueryComplete$Query$SystemDnsProvider? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$SystemDnsProvider extends graphql.WatchQueryOptions { WatchOptions$Query$SystemDnsProvider({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$SystemDnsProvider? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQuerySystemDnsProvider, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$SystemDnsProvider, ); } class FetchMoreOptions$Query$SystemDnsProvider extends graphql.FetchMoreOptions { FetchMoreOptions$Query$SystemDnsProvider( {required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQuerySystemDnsProvider, ); } extension ClientExtension$Query$SystemDnsProvider on graphql.GraphQLClient { Future> query$SystemDnsProvider( [Options$Query$SystemDnsProvider? options]) async => await this.query(options ?? Options$Query$SystemDnsProvider()); graphql.ObservableQuery watchQuery$SystemDnsProvider( [WatchOptions$Query$SystemDnsProvider? options]) => this.watchQuery(options ?? WatchOptions$Query$SystemDnsProvider()); void writeQuery$SystemDnsProvider({ required Query$SystemDnsProvider data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation( document: documentNodeQuerySystemDnsProvider)), data: data.toJson(), broadcast: broadcast, ); Query$SystemDnsProvider? readQuery$SystemDnsProvider( {bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQuerySystemDnsProvider)), optimistic: optimistic, ); return result == null ? null : Query$SystemDnsProvider.fromJson(result); } } class Query$SystemDnsProvider$system { Query$SystemDnsProvider$system({ required this.domainInfo, this.$__typename = 'System', }); factory Query$SystemDnsProvider$system.fromJson(Map json) { final l$domainInfo = json['domainInfo']; final l$$__typename = json['__typename']; return Query$SystemDnsProvider$system( domainInfo: Query$SystemDnsProvider$system$domainInfo.fromJson( (l$domainInfo as Map)), $__typename: (l$$__typename as String), ); } final Query$SystemDnsProvider$system$domainInfo domainInfo; final String $__typename; Map toJson() { final _resultData = {}; final l$domainInfo = domainInfo; _resultData['domainInfo'] = l$domainInfo.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$domainInfo = domainInfo; final l$$__typename = $__typename; return Object.hashAll([ l$domainInfo, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemDnsProvider$system) || runtimeType != other.runtimeType) { return false; } final l$domainInfo = domainInfo; final lOther$domainInfo = other.domainInfo; if (l$domainInfo != lOther$domainInfo) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemDnsProvider$system on Query$SystemDnsProvider$system { CopyWith$Query$SystemDnsProvider$system get copyWith => CopyWith$Query$SystemDnsProvider$system( this, (i) => i, ); } abstract class CopyWith$Query$SystemDnsProvider$system { factory CopyWith$Query$SystemDnsProvider$system( Query$SystemDnsProvider$system instance, TRes Function(Query$SystemDnsProvider$system) then, ) = _CopyWithImpl$Query$SystemDnsProvider$system; factory CopyWith$Query$SystemDnsProvider$system.stub(TRes res) = _CopyWithStubImpl$Query$SystemDnsProvider$system; TRes call({ Query$SystemDnsProvider$system$domainInfo? domainInfo, String? $__typename, }); CopyWith$Query$SystemDnsProvider$system$domainInfo get domainInfo; } class _CopyWithImpl$Query$SystemDnsProvider$system implements CopyWith$Query$SystemDnsProvider$system { _CopyWithImpl$Query$SystemDnsProvider$system( this._instance, this._then, ); final Query$SystemDnsProvider$system _instance; final TRes Function(Query$SystemDnsProvider$system) _then; static const _undefined = {}; TRes call({ Object? domainInfo = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemDnsProvider$system( domainInfo: domainInfo == _undefined || domainInfo == null ? _instance.domainInfo : (domainInfo as Query$SystemDnsProvider$system$domainInfo), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$SystemDnsProvider$system$domainInfo get domainInfo { final local$domainInfo = _instance.domainInfo; return CopyWith$Query$SystemDnsProvider$system$domainInfo( local$domainInfo, (e) => call(domainInfo: e)); } } class _CopyWithStubImpl$Query$SystemDnsProvider$system implements CopyWith$Query$SystemDnsProvider$system { _CopyWithStubImpl$Query$SystemDnsProvider$system(this._res); TRes _res; call({ Query$SystemDnsProvider$system$domainInfo? domainInfo, String? $__typename, }) => _res; CopyWith$Query$SystemDnsProvider$system$domainInfo get domainInfo => CopyWith$Query$SystemDnsProvider$system$domainInfo.stub(_res); } class Query$SystemDnsProvider$system$domainInfo { Query$SystemDnsProvider$system$domainInfo({ required this.provider, this.$__typename = 'SystemDomainInfo', }); factory Query$SystemDnsProvider$system$domainInfo.fromJson( Map json) { final l$provider = json['provider']; final l$$__typename = json['__typename']; return Query$SystemDnsProvider$system$domainInfo( provider: fromJson$Enum$DnsProvider((l$provider as String)), $__typename: (l$$__typename as String), ); } final Enum$DnsProvider provider; final String $__typename; Map toJson() { final _resultData = {}; final l$provider = provider; _resultData['provider'] = toJson$Enum$DnsProvider(l$provider); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$provider = provider; final l$$__typename = $__typename; return Object.hashAll([ l$provider, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$SystemDnsProvider$system$domainInfo) || runtimeType != other.runtimeType) { return false; } final l$provider = provider; final lOther$provider = other.provider; if (l$provider != lOther$provider) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$SystemDnsProvider$system$domainInfo on Query$SystemDnsProvider$system$domainInfo { CopyWith$Query$SystemDnsProvider$system$domainInfo< Query$SystemDnsProvider$system$domainInfo> get copyWith => CopyWith$Query$SystemDnsProvider$system$domainInfo( this, (i) => i, ); } abstract class CopyWith$Query$SystemDnsProvider$system$domainInfo { factory CopyWith$Query$SystemDnsProvider$system$domainInfo( Query$SystemDnsProvider$system$domainInfo instance, TRes Function(Query$SystemDnsProvider$system$domainInfo) then, ) = _CopyWithImpl$Query$SystemDnsProvider$system$domainInfo; factory CopyWith$Query$SystemDnsProvider$system$domainInfo.stub(TRes res) = _CopyWithStubImpl$Query$SystemDnsProvider$system$domainInfo; TRes call({ Enum$DnsProvider? provider, String? $__typename, }); } class _CopyWithImpl$Query$SystemDnsProvider$system$domainInfo implements CopyWith$Query$SystemDnsProvider$system$domainInfo { _CopyWithImpl$Query$SystemDnsProvider$system$domainInfo( this._instance, this._then, ); final Query$SystemDnsProvider$system$domainInfo _instance; final TRes Function(Query$SystemDnsProvider$system$domainInfo) _then; static const _undefined = {}; TRes call({ Object? provider = _undefined, Object? $__typename = _undefined, }) => _then(Query$SystemDnsProvider$system$domainInfo( provider: provider == _undefined || provider == null ? _instance.provider : (provider as Enum$DnsProvider), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$SystemDnsProvider$system$domainInfo implements CopyWith$Query$SystemDnsProvider$system$domainInfo { _CopyWithStubImpl$Query$SystemDnsProvider$system$domainInfo(this._res); TRes _res; call({ Enum$DnsProvider? provider, String? $__typename, }) => _res; } class Query$GetApiTokens { Query$GetApiTokens({ required this.api, this.$__typename = 'Query', }); factory Query$GetApiTokens.fromJson(Map json) { final l$api = json['api']; final l$$__typename = json['__typename']; return Query$GetApiTokens( api: Query$GetApiTokens$api.fromJson((l$api as Map)), $__typename: (l$$__typename as String), ); } final Query$GetApiTokens$api api; final String $__typename; Map toJson() { final _resultData = {}; final l$api = api; _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ l$api, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiTokens) || runtimeType != other.runtimeType) { return false; } final l$api = api; final lOther$api = other.api; if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiTokens on Query$GetApiTokens { CopyWith$Query$GetApiTokens get copyWith => CopyWith$Query$GetApiTokens( this, (i) => i, ); } abstract class CopyWith$Query$GetApiTokens { factory CopyWith$Query$GetApiTokens( Query$GetApiTokens instance, TRes Function(Query$GetApiTokens) then, ) = _CopyWithImpl$Query$GetApiTokens; factory CopyWith$Query$GetApiTokens.stub(TRes res) = _CopyWithStubImpl$Query$GetApiTokens; TRes call({ Query$GetApiTokens$api? api, String? $__typename, }); CopyWith$Query$GetApiTokens$api get api; } class _CopyWithImpl$Query$GetApiTokens implements CopyWith$Query$GetApiTokens { _CopyWithImpl$Query$GetApiTokens( this._instance, this._then, ); final Query$GetApiTokens _instance; final TRes Function(Query$GetApiTokens) _then; static const _undefined = {}; TRes call({ Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiTokens( api: api == _undefined || api == null ? _instance.api : (api as Query$GetApiTokens$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$GetApiTokens$api get api { final local$api = _instance.api; return CopyWith$Query$GetApiTokens$api(local$api, (e) => call(api: e)); } } class _CopyWithStubImpl$Query$GetApiTokens implements CopyWith$Query$GetApiTokens { _CopyWithStubImpl$Query$GetApiTokens(this._res); TRes _res; call({ Query$GetApiTokens$api? api, String? $__typename, }) => _res; CopyWith$Query$GetApiTokens$api get api => CopyWith$Query$GetApiTokens$api.stub(_res); } const documentNodeQueryGetApiTokens = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'GetApiTokens'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'devices'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'creationDate'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'isCaller'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'name'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$GetApiTokens _parserFn$Query$GetApiTokens(Map data) => Query$GetApiTokens.fromJson(data); typedef OnQueryComplete$Query$GetApiTokens = FutureOr Function( Map?, Query$GetApiTokens?, ); class Options$Query$GetApiTokens extends graphql.QueryOptions { Options$Query$GetApiTokens({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiTokens? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$GetApiTokens? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$GetApiTokens(data), ), onError: onError, document: documentNodeQueryGetApiTokens, parserFn: _parserFn$Query$GetApiTokens, ); final OnQueryComplete$Query$GetApiTokens? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$GetApiTokens extends graphql.WatchQueryOptions { WatchOptions$Query$GetApiTokens({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetApiTokens? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQueryGetApiTokens, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$GetApiTokens, ); } class FetchMoreOptions$Query$GetApiTokens extends graphql.FetchMoreOptions { FetchMoreOptions$Query$GetApiTokens( {required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQueryGetApiTokens, ); } extension ClientExtension$Query$GetApiTokens on graphql.GraphQLClient { Future> query$GetApiTokens( [Options$Query$GetApiTokens? options]) async => await this.query(options ?? Options$Query$GetApiTokens()); graphql.ObservableQuery watchQuery$GetApiTokens( [WatchOptions$Query$GetApiTokens? options]) => this.watchQuery(options ?? WatchOptions$Query$GetApiTokens()); void writeQuery$GetApiTokens({ required Query$GetApiTokens data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiTokens)), data: data.toJson(), broadcast: broadcast, ); Query$GetApiTokens? readQuery$GetApiTokens({bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetApiTokens)), optimistic: optimistic, ); return result == null ? null : Query$GetApiTokens.fromJson(result); } } class Query$GetApiTokens$api { Query$GetApiTokens$api({ required this.devices, this.$__typename = 'Api', }); factory Query$GetApiTokens$api.fromJson(Map json) { final l$devices = json['devices']; final l$$__typename = json['__typename']; return Query$GetApiTokens$api( devices: (l$devices as List) .map((e) => Query$GetApiTokens$api$devices.fromJson( (e as Map))) .toList(), $__typename: (l$$__typename as String), ); } final List devices; final String $__typename; Map toJson() { final _resultData = {}; final l$devices = devices; _resultData['devices'] = l$devices.map((e) => e.toJson()).toList(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$devices = devices; final l$$__typename = $__typename; return Object.hashAll([ Object.hashAll(l$devices.map((v) => v)), l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiTokens$api) || runtimeType != other.runtimeType) { return false; } final l$devices = devices; final lOther$devices = other.devices; if (l$devices.length != lOther$devices.length) { return false; } for (int i = 0; i < l$devices.length; i++) { final l$devices$entry = l$devices[i]; final lOther$devices$entry = lOther$devices[i]; if (l$devices$entry != lOther$devices$entry) { return false; } } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiTokens$api on Query$GetApiTokens$api { CopyWith$Query$GetApiTokens$api get copyWith => CopyWith$Query$GetApiTokens$api( this, (i) => i, ); } abstract class CopyWith$Query$GetApiTokens$api { factory CopyWith$Query$GetApiTokens$api( Query$GetApiTokens$api instance, TRes Function(Query$GetApiTokens$api) then, ) = _CopyWithImpl$Query$GetApiTokens$api; factory CopyWith$Query$GetApiTokens$api.stub(TRes res) = _CopyWithStubImpl$Query$GetApiTokens$api; TRes call({ List? devices, String? $__typename, }); TRes devices( Iterable Function( Iterable< CopyWith$Query$GetApiTokens$api$devices< Query$GetApiTokens$api$devices>>) _fn); } class _CopyWithImpl$Query$GetApiTokens$api implements CopyWith$Query$GetApiTokens$api { _CopyWithImpl$Query$GetApiTokens$api( this._instance, this._then, ); final Query$GetApiTokens$api _instance; final TRes Function(Query$GetApiTokens$api) _then; static const _undefined = {}; TRes call({ Object? devices = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiTokens$api( devices: devices == _undefined || devices == null ? _instance.devices : (devices as List), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); TRes devices( Iterable Function( Iterable< CopyWith$Query$GetApiTokens$api$devices< Query$GetApiTokens$api$devices>>) _fn) => call( devices: _fn(_instance.devices .map((e) => CopyWith$Query$GetApiTokens$api$devices( e, (i) => i, ))).toList()); } class _CopyWithStubImpl$Query$GetApiTokens$api implements CopyWith$Query$GetApiTokens$api { _CopyWithStubImpl$Query$GetApiTokens$api(this._res); TRes _res; call({ List? devices, String? $__typename, }) => _res; devices(_fn) => _res; } class Query$GetApiTokens$api$devices { Query$GetApiTokens$api$devices({ required this.creationDate, required this.isCaller, required this.name, this.$__typename = 'ApiDevice', }); factory Query$GetApiTokens$api$devices.fromJson(Map json) { final l$creationDate = json['creationDate']; final l$isCaller = json['isCaller']; final l$name = json['name']; final l$$__typename = json['__typename']; return Query$GetApiTokens$api$devices( creationDate: dateTimeFromJson(l$creationDate), isCaller: (l$isCaller as bool), name: (l$name as String), $__typename: (l$$__typename as String), ); } final DateTime creationDate; final bool isCaller; final String name; final String $__typename; Map toJson() { final _resultData = {}; final l$creationDate = creationDate; _resultData['creationDate'] = dateTimeToJson(l$creationDate); final l$isCaller = isCaller; _resultData['isCaller'] = l$isCaller; final l$name = name; _resultData['name'] = l$name; final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$creationDate = creationDate; final l$isCaller = isCaller; final l$name = name; final l$$__typename = $__typename; return Object.hashAll([ l$creationDate, l$isCaller, l$name, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetApiTokens$api$devices) || runtimeType != other.runtimeType) { return false; } final l$creationDate = creationDate; final lOther$creationDate = other.creationDate; if (l$creationDate != lOther$creationDate) { return false; } final l$isCaller = isCaller; final lOther$isCaller = other.isCaller; if (l$isCaller != lOther$isCaller) { return false; } final l$name = name; final lOther$name = other.name; if (l$name != lOther$name) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetApiTokens$api$devices on Query$GetApiTokens$api$devices { CopyWith$Query$GetApiTokens$api$devices get copyWith => CopyWith$Query$GetApiTokens$api$devices( this, (i) => i, ); } abstract class CopyWith$Query$GetApiTokens$api$devices { factory CopyWith$Query$GetApiTokens$api$devices( Query$GetApiTokens$api$devices instance, TRes Function(Query$GetApiTokens$api$devices) then, ) = _CopyWithImpl$Query$GetApiTokens$api$devices; factory CopyWith$Query$GetApiTokens$api$devices.stub(TRes res) = _CopyWithStubImpl$Query$GetApiTokens$api$devices; TRes call({ DateTime? creationDate, bool? isCaller, String? name, String? $__typename, }); } class _CopyWithImpl$Query$GetApiTokens$api$devices implements CopyWith$Query$GetApiTokens$api$devices { _CopyWithImpl$Query$GetApiTokens$api$devices( this._instance, this._then, ); final Query$GetApiTokens$api$devices _instance; final TRes Function(Query$GetApiTokens$api$devices) _then; static const _undefined = {}; TRes call({ Object? creationDate = _undefined, Object? isCaller = _undefined, Object? name = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetApiTokens$api$devices( creationDate: creationDate == _undefined || creationDate == null ? _instance.creationDate : (creationDate as DateTime), isCaller: isCaller == _undefined || isCaller == null ? _instance.isCaller : (isCaller as bool), name: name == _undefined || name == null ? _instance.name : (name as String), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$GetApiTokens$api$devices implements CopyWith$Query$GetApiTokens$api$devices { _CopyWithStubImpl$Query$GetApiTokens$api$devices(this._res); TRes _res; call({ DateTime? creationDate, bool? isCaller, String? name, String? $__typename, }) => _res; } class Query$RecoveryKey { Query$RecoveryKey({ required this.api, this.$__typename = 'Query', }); factory Query$RecoveryKey.fromJson(Map json) { final l$api = json['api']; final l$$__typename = json['__typename']; return Query$RecoveryKey( api: Query$RecoveryKey$api.fromJson((l$api as Map)), $__typename: (l$$__typename as String), ); } final Query$RecoveryKey$api api; final String $__typename; Map toJson() { final _resultData = {}; final l$api = api; _resultData['api'] = l$api.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$api = api; final l$$__typename = $__typename; return Object.hashAll([ l$api, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$RecoveryKey) || runtimeType != other.runtimeType) { return false; } final l$api = api; final lOther$api = other.api; if (l$api != lOther$api) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$RecoveryKey on Query$RecoveryKey { CopyWith$Query$RecoveryKey get copyWith => CopyWith$Query$RecoveryKey( this, (i) => i, ); } abstract class CopyWith$Query$RecoveryKey { factory CopyWith$Query$RecoveryKey( Query$RecoveryKey instance, TRes Function(Query$RecoveryKey) then, ) = _CopyWithImpl$Query$RecoveryKey; factory CopyWith$Query$RecoveryKey.stub(TRes res) = _CopyWithStubImpl$Query$RecoveryKey; TRes call({ Query$RecoveryKey$api? api, String? $__typename, }); CopyWith$Query$RecoveryKey$api get api; } class _CopyWithImpl$Query$RecoveryKey implements CopyWith$Query$RecoveryKey { _CopyWithImpl$Query$RecoveryKey( this._instance, this._then, ); final Query$RecoveryKey _instance; final TRes Function(Query$RecoveryKey) _then; static const _undefined = {}; TRes call({ Object? api = _undefined, Object? $__typename = _undefined, }) => _then(Query$RecoveryKey( api: api == _undefined || api == null ? _instance.api : (api as Query$RecoveryKey$api), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$RecoveryKey$api get api { final local$api = _instance.api; return CopyWith$Query$RecoveryKey$api(local$api, (e) => call(api: e)); } } class _CopyWithStubImpl$Query$RecoveryKey implements CopyWith$Query$RecoveryKey { _CopyWithStubImpl$Query$RecoveryKey(this._res); TRes _res; call({ Query$RecoveryKey$api? api, String? $__typename, }) => _res; CopyWith$Query$RecoveryKey$api get api => CopyWith$Query$RecoveryKey$api.stub(_res); } const documentNodeQueryRecoveryKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'RecoveryKey'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'api'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'recoveryKey'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'creationDate'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'exists'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'expirationDate'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'usesLeft'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'valid'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), ]); Query$RecoveryKey _parserFn$Query$RecoveryKey(Map data) => Query$RecoveryKey.fromJson(data); typedef OnQueryComplete$Query$RecoveryKey = FutureOr Function( Map?, Query$RecoveryKey?, ); class Options$Query$RecoveryKey extends graphql.QueryOptions { Options$Query$RecoveryKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$RecoveryKey? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$RecoveryKey? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), pollInterval: pollInterval, context: context, onComplete: onComplete == null ? null : (data) => onComplete( data, data == null ? null : _parserFn$Query$RecoveryKey(data), ), onError: onError, document: documentNodeQueryRecoveryKey, parserFn: _parserFn$Query$RecoveryKey, ); final OnQueryComplete$Query$RecoveryKey? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$RecoveryKey extends graphql.WatchQueryOptions { WatchOptions$Query$RecoveryKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$RecoveryKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeQueryRecoveryKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$RecoveryKey, ); } class FetchMoreOptions$Query$RecoveryKey extends graphql.FetchMoreOptions { FetchMoreOptions$Query$RecoveryKey({required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQueryRecoveryKey, ); } extension ClientExtension$Query$RecoveryKey on graphql.GraphQLClient { Future> query$RecoveryKey( [Options$Query$RecoveryKey? options]) async => await this.query(options ?? Options$Query$RecoveryKey()); graphql.ObservableQuery watchQuery$RecoveryKey( [WatchOptions$Query$RecoveryKey? options]) => this.watchQuery(options ?? WatchOptions$Query$RecoveryKey()); void writeQuery$RecoveryKey({ required Query$RecoveryKey data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryRecoveryKey)), data: data.toJson(), broadcast: broadcast, ); Query$RecoveryKey? readQuery$RecoveryKey({bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryRecoveryKey)), optimistic: optimistic, ); return result == null ? null : Query$RecoveryKey.fromJson(result); } } class Query$RecoveryKey$api { Query$RecoveryKey$api({ required this.recoveryKey, this.$__typename = 'Api', }); factory Query$RecoveryKey$api.fromJson(Map json) { final l$recoveryKey = json['recoveryKey']; final l$$__typename = json['__typename']; return Query$RecoveryKey$api( recoveryKey: Query$RecoveryKey$api$recoveryKey.fromJson( (l$recoveryKey as Map)), $__typename: (l$$__typename as String), ); } final Query$RecoveryKey$api$recoveryKey recoveryKey; final String $__typename; Map toJson() { final _resultData = {}; final l$recoveryKey = recoveryKey; _resultData['recoveryKey'] = l$recoveryKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$recoveryKey = recoveryKey; final l$$__typename = $__typename; return Object.hashAll([ l$recoveryKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$RecoveryKey$api) || runtimeType != other.runtimeType) { return false; } final l$recoveryKey = recoveryKey; final lOther$recoveryKey = other.recoveryKey; if (l$recoveryKey != lOther$recoveryKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$RecoveryKey$api on Query$RecoveryKey$api { CopyWith$Query$RecoveryKey$api get copyWith => CopyWith$Query$RecoveryKey$api( this, (i) => i, ); } abstract class CopyWith$Query$RecoveryKey$api { factory CopyWith$Query$RecoveryKey$api( Query$RecoveryKey$api instance, TRes Function(Query$RecoveryKey$api) then, ) = _CopyWithImpl$Query$RecoveryKey$api; factory CopyWith$Query$RecoveryKey$api.stub(TRes res) = _CopyWithStubImpl$Query$RecoveryKey$api; TRes call({ Query$RecoveryKey$api$recoveryKey? recoveryKey, String? $__typename, }); CopyWith$Query$RecoveryKey$api$recoveryKey get recoveryKey; } class _CopyWithImpl$Query$RecoveryKey$api implements CopyWith$Query$RecoveryKey$api { _CopyWithImpl$Query$RecoveryKey$api( this._instance, this._then, ); final Query$RecoveryKey$api _instance; final TRes Function(Query$RecoveryKey$api) _then; static const _undefined = {}; TRes call({ Object? recoveryKey = _undefined, Object? $__typename = _undefined, }) => _then(Query$RecoveryKey$api( recoveryKey: recoveryKey == _undefined || recoveryKey == null ? _instance.recoveryKey : (recoveryKey as Query$RecoveryKey$api$recoveryKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$RecoveryKey$api$recoveryKey get recoveryKey { final local$recoveryKey = _instance.recoveryKey; return CopyWith$Query$RecoveryKey$api$recoveryKey( local$recoveryKey, (e) => call(recoveryKey: e)); } } class _CopyWithStubImpl$Query$RecoveryKey$api implements CopyWith$Query$RecoveryKey$api { _CopyWithStubImpl$Query$RecoveryKey$api(this._res); TRes _res; call({ Query$RecoveryKey$api$recoveryKey? recoveryKey, String? $__typename, }) => _res; CopyWith$Query$RecoveryKey$api$recoveryKey get recoveryKey => CopyWith$Query$RecoveryKey$api$recoveryKey.stub(_res); } class Query$RecoveryKey$api$recoveryKey { Query$RecoveryKey$api$recoveryKey({ this.creationDate, required this.exists, this.expirationDate, this.usesLeft, required this.valid, this.$__typename = 'ApiRecoveryKeyStatus', }); factory Query$RecoveryKey$api$recoveryKey.fromJson( Map json) { final l$creationDate = json['creationDate']; final l$exists = json['exists']; final l$expirationDate = json['expirationDate']; final l$usesLeft = json['usesLeft']; final l$valid = json['valid']; final l$$__typename = json['__typename']; return Query$RecoveryKey$api$recoveryKey( creationDate: l$creationDate == null ? null : dateTimeFromJson(l$creationDate), exists: (l$exists as bool), expirationDate: l$expirationDate == null ? null : dateTimeFromJson(l$expirationDate), usesLeft: (l$usesLeft as int?), valid: (l$valid as bool), $__typename: (l$$__typename as String), ); } final DateTime? creationDate; final bool exists; final DateTime? expirationDate; final int? usesLeft; final bool valid; final String $__typename; Map toJson() { final _resultData = {}; final l$creationDate = creationDate; _resultData['creationDate'] = l$creationDate == null ? null : dateTimeToJson(l$creationDate); final l$exists = exists; _resultData['exists'] = l$exists; final l$expirationDate = expirationDate; _resultData['expirationDate'] = l$expirationDate == null ? null : dateTimeToJson(l$expirationDate); final l$usesLeft = usesLeft; _resultData['usesLeft'] = l$usesLeft; final l$valid = valid; _resultData['valid'] = l$valid; final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$creationDate = creationDate; final l$exists = exists; final l$expirationDate = expirationDate; final l$usesLeft = usesLeft; final l$valid = valid; final l$$__typename = $__typename; return Object.hashAll([ l$creationDate, l$exists, l$expirationDate, l$usesLeft, l$valid, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$RecoveryKey$api$recoveryKey) || runtimeType != other.runtimeType) { return false; } final l$creationDate = creationDate; final lOther$creationDate = other.creationDate; if (l$creationDate != lOther$creationDate) { return false; } final l$exists = exists; final lOther$exists = other.exists; if (l$exists != lOther$exists) { return false; } final l$expirationDate = expirationDate; final lOther$expirationDate = other.expirationDate; if (l$expirationDate != lOther$expirationDate) { return false; } final l$usesLeft = usesLeft; final lOther$usesLeft = other.usesLeft; if (l$usesLeft != lOther$usesLeft) { return false; } final l$valid = valid; final lOther$valid = other.valid; if (l$valid != lOther$valid) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$RecoveryKey$api$recoveryKey on Query$RecoveryKey$api$recoveryKey { CopyWith$Query$RecoveryKey$api$recoveryKey get copyWith => CopyWith$Query$RecoveryKey$api$recoveryKey( this, (i) => i, ); } abstract class CopyWith$Query$RecoveryKey$api$recoveryKey { factory CopyWith$Query$RecoveryKey$api$recoveryKey( Query$RecoveryKey$api$recoveryKey instance, TRes Function(Query$RecoveryKey$api$recoveryKey) then, ) = _CopyWithImpl$Query$RecoveryKey$api$recoveryKey; factory CopyWith$Query$RecoveryKey$api$recoveryKey.stub(TRes res) = _CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey; TRes call({ DateTime? creationDate, bool? exists, DateTime? expirationDate, int? usesLeft, bool? valid, String? $__typename, }); } class _CopyWithImpl$Query$RecoveryKey$api$recoveryKey implements CopyWith$Query$RecoveryKey$api$recoveryKey { _CopyWithImpl$Query$RecoveryKey$api$recoveryKey( this._instance, this._then, ); final Query$RecoveryKey$api$recoveryKey _instance; final TRes Function(Query$RecoveryKey$api$recoveryKey) _then; static const _undefined = {}; TRes call({ Object? creationDate = _undefined, Object? exists = _undefined, Object? expirationDate = _undefined, Object? usesLeft = _undefined, Object? valid = _undefined, Object? $__typename = _undefined, }) => _then(Query$RecoveryKey$api$recoveryKey( creationDate: creationDate == _undefined ? _instance.creationDate : (creationDate as DateTime?), exists: exists == _undefined || exists == null ? _instance.exists : (exists as bool), expirationDate: expirationDate == _undefined ? _instance.expirationDate : (expirationDate as DateTime?), usesLeft: usesLeft == _undefined ? _instance.usesLeft : (usesLeft as int?), valid: valid == _undefined || valid == null ? _instance.valid : (valid as bool), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey implements CopyWith$Query$RecoveryKey$api$recoveryKey { _CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey(this._res); TRes _res; call({ DateTime? creationDate, bool? exists, DateTime? expirationDate, int? usesLeft, bool? valid, String? $__typename, }) => _res; } class Variables$Mutation$GetNewRecoveryApiKey { factory Variables$Mutation$GetNewRecoveryApiKey( {Input$RecoveryKeyLimitsInput? limits}) => Variables$Mutation$GetNewRecoveryApiKey._({ if (limits != null) r'limits': limits, }); Variables$Mutation$GetNewRecoveryApiKey._(this._$data); factory Variables$Mutation$GetNewRecoveryApiKey.fromJson( Map data) { final result$data = {}; if (data.containsKey('limits')) { final l$limits = data['limits']; result$data['limits'] = l$limits == null ? null : Input$RecoveryKeyLimitsInput.fromJson( (l$limits as Map)); } return Variables$Mutation$GetNewRecoveryApiKey._(result$data); } Map _$data; Input$RecoveryKeyLimitsInput? get limits => (_$data['limits'] as Input$RecoveryKeyLimitsInput?); Map toJson() { final result$data = {}; if (_$data.containsKey('limits')) { final l$limits = limits; result$data['limits'] = l$limits?.toJson(); } return result$data; } CopyWith$Variables$Mutation$GetNewRecoveryApiKey< Variables$Mutation$GetNewRecoveryApiKey> get copyWith => CopyWith$Variables$Mutation$GetNewRecoveryApiKey( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$GetNewRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } final l$limits = limits; final lOther$limits = other.limits; if (_$data.containsKey('limits') != other._$data.containsKey('limits')) { return false; } if (l$limits != lOther$limits) { return false; } return true; } @override int get hashCode { final l$limits = limits; return Object.hashAll([_$data.containsKey('limits') ? l$limits : const {}]); } } abstract class CopyWith$Variables$Mutation$GetNewRecoveryApiKey { factory CopyWith$Variables$Mutation$GetNewRecoveryApiKey( Variables$Mutation$GetNewRecoveryApiKey instance, TRes Function(Variables$Mutation$GetNewRecoveryApiKey) then, ) = _CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey; factory CopyWith$Variables$Mutation$GetNewRecoveryApiKey.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey; TRes call({Input$RecoveryKeyLimitsInput? limits}); } class _CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey implements CopyWith$Variables$Mutation$GetNewRecoveryApiKey { _CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey( this._instance, this._then, ); final Variables$Mutation$GetNewRecoveryApiKey _instance; final TRes Function(Variables$Mutation$GetNewRecoveryApiKey) _then; static const _undefined = {}; TRes call({Object? limits = _undefined}) => _then(Variables$Mutation$GetNewRecoveryApiKey._({ ..._instance._$data, if (limits != _undefined) 'limits': (limits as Input$RecoveryKeyLimitsInput?), })); } class _CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey implements CopyWith$Variables$Mutation$GetNewRecoveryApiKey { _CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey(this._res); TRes _res; call({Input$RecoveryKeyLimitsInput? limits}) => _res; } class Mutation$GetNewRecoveryApiKey { Mutation$GetNewRecoveryApiKey({ required this.getNewRecoveryApiKey, this.$__typename = 'Mutation', }); factory Mutation$GetNewRecoveryApiKey.fromJson(Map json) { final l$getNewRecoveryApiKey = json['getNewRecoveryApiKey']; final l$$__typename = json['__typename']; return Mutation$GetNewRecoveryApiKey( getNewRecoveryApiKey: Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.fromJson( (l$getNewRecoveryApiKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey getNewRecoveryApiKey; final String $__typename; Map toJson() { final _resultData = {}; final l$getNewRecoveryApiKey = getNewRecoveryApiKey; _resultData['getNewRecoveryApiKey'] = l$getNewRecoveryApiKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$getNewRecoveryApiKey = getNewRecoveryApiKey; final l$$__typename = $__typename; return Object.hashAll([ l$getNewRecoveryApiKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$GetNewRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } final l$getNewRecoveryApiKey = getNewRecoveryApiKey; final lOther$getNewRecoveryApiKey = other.getNewRecoveryApiKey; if (l$getNewRecoveryApiKey != lOther$getNewRecoveryApiKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$GetNewRecoveryApiKey on Mutation$GetNewRecoveryApiKey { CopyWith$Mutation$GetNewRecoveryApiKey get copyWith => CopyWith$Mutation$GetNewRecoveryApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$GetNewRecoveryApiKey { factory CopyWith$Mutation$GetNewRecoveryApiKey( Mutation$GetNewRecoveryApiKey instance, TRes Function(Mutation$GetNewRecoveryApiKey) then, ) = _CopyWithImpl$Mutation$GetNewRecoveryApiKey; factory CopyWith$Mutation$GetNewRecoveryApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey; TRes call({ Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey? getNewRecoveryApiKey, String? $__typename, }); CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey get getNewRecoveryApiKey; } class _CopyWithImpl$Mutation$GetNewRecoveryApiKey implements CopyWith$Mutation$GetNewRecoveryApiKey { _CopyWithImpl$Mutation$GetNewRecoveryApiKey( this._instance, this._then, ); final Mutation$GetNewRecoveryApiKey _instance; final TRes Function(Mutation$GetNewRecoveryApiKey) _then; static const _undefined = {}; TRes call({ Object? getNewRecoveryApiKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$GetNewRecoveryApiKey( getNewRecoveryApiKey: getNewRecoveryApiKey == _undefined || getNewRecoveryApiKey == null ? _instance.getNewRecoveryApiKey : (getNewRecoveryApiKey as Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey get getNewRecoveryApiKey { final local$getNewRecoveryApiKey = _instance.getNewRecoveryApiKey; return CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( local$getNewRecoveryApiKey, (e) => call(getNewRecoveryApiKey: e)); } } class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey implements CopyWith$Mutation$GetNewRecoveryApiKey { _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey(this._res); TRes _res; call({ Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey? getNewRecoveryApiKey, String? $__typename, }) => _res; CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey get getNewRecoveryApiKey => CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub( _res); } const documentNodeMutationGetNewRecoveryApiKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'GetNewRecoveryApiKey'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'limits')), type: NamedTypeNode( name: NameNode(value: 'RecoveryKeyLimitsInput'), isNonNull: false, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'getNewRecoveryApiKey'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'limits'), value: VariableNode(name: NameNode(value: 'limits')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'key'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$GetNewRecoveryApiKey _parserFn$Mutation$GetNewRecoveryApiKey( Map data) => Mutation$GetNewRecoveryApiKey.fromJson(data); typedef OnMutationCompleted$Mutation$GetNewRecoveryApiKey = FutureOr Function( Map?, Mutation$GetNewRecoveryApiKey?, ); class Options$Mutation$GetNewRecoveryApiKey extends graphql.MutationOptions { Options$Mutation$GetNewRecoveryApiKey({ String? operationName, Variables$Mutation$GetNewRecoveryApiKey? variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$GetNewRecoveryApiKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$GetNewRecoveryApiKey? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( variables: variables?.toJson() ?? {}, operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$GetNewRecoveryApiKey(data), ), update: update, onError: onError, document: documentNodeMutationGetNewRecoveryApiKey, parserFn: _parserFn$Mutation$GetNewRecoveryApiKey, ); final OnMutationCompleted$Mutation$GetNewRecoveryApiKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$GetNewRecoveryApiKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$GetNewRecoveryApiKey({ String? operationName, Variables$Mutation$GetNewRecoveryApiKey? variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$GetNewRecoveryApiKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( variables: variables?.toJson() ?? {}, operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationGetNewRecoveryApiKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$GetNewRecoveryApiKey, ); } extension ClientExtension$Mutation$GetNewRecoveryApiKey on graphql.GraphQLClient { Future> mutate$GetNewRecoveryApiKey( [Options$Mutation$GetNewRecoveryApiKey? options]) async => await this.mutate(options ?? Options$Mutation$GetNewRecoveryApiKey()); graphql.ObservableQuery watchMutation$GetNewRecoveryApiKey( [WatchOptions$Mutation$GetNewRecoveryApiKey? options]) => this.watchMutation( options ?? WatchOptions$Mutation$GetNewRecoveryApiKey()); } class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey implements Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'ApiKeyMutationReturn', this.key, }); factory Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$key = json['key']; return Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), key: (l$key as String?), ); } final int code; final String message; final bool success; final String $__typename; final String? key; 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; final l$key = key; _resultData['key'] = l$key; return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$key = key; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$key, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) || 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; } final l$key = key; final lOther$key = other.key; if (l$key != lOther$key) { return false; } return true; } } extension UtilityExtension$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey on Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey< Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey> get copyWith => CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey< TRes> { factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey instance, TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) then, ) = _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey; factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub( TRes res) = _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey; TRes call({ int? code, String? message, bool? success, String? $__typename, String? key, }); } class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey implements CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( this._instance, this._then, ); final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey _instance; final TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? key = _undefined, }) => _then(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( 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), key: key == _undefined ? _instance.key : (key as String?), )); } class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey implements CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey { _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, String? key, }) => _res; } class Variables$Mutation$UseRecoveryApiKey { factory Variables$Mutation$UseRecoveryApiKey( {required Input$UseRecoveryKeyInput input}) => Variables$Mutation$UseRecoveryApiKey._({ r'input': input, }); Variables$Mutation$UseRecoveryApiKey._(this._$data); factory Variables$Mutation$UseRecoveryApiKey.fromJson( Map data) { final result$data = {}; final l$input = data['input']; result$data['input'] = Input$UseRecoveryKeyInput.fromJson((l$input as Map)); return Variables$Mutation$UseRecoveryApiKey._(result$data); } Map _$data; Input$UseRecoveryKeyInput get input => (_$data['input'] as Input$UseRecoveryKeyInput); Map toJson() { final result$data = {}; final l$input = input; result$data['input'] = l$input.toJson(); return result$data; } CopyWith$Variables$Mutation$UseRecoveryApiKey< Variables$Mutation$UseRecoveryApiKey> get copyWith => CopyWith$Variables$Mutation$UseRecoveryApiKey( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$UseRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } final l$input = input; final lOther$input = other.input; if (l$input != lOther$input) { return false; } return true; } @override int get hashCode { final l$input = input; return Object.hashAll([l$input]); } } abstract class CopyWith$Variables$Mutation$UseRecoveryApiKey { factory CopyWith$Variables$Mutation$UseRecoveryApiKey( Variables$Mutation$UseRecoveryApiKey instance, TRes Function(Variables$Mutation$UseRecoveryApiKey) then, ) = _CopyWithImpl$Variables$Mutation$UseRecoveryApiKey; factory CopyWith$Variables$Mutation$UseRecoveryApiKey.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey; TRes call({Input$UseRecoveryKeyInput? input}); } class _CopyWithImpl$Variables$Mutation$UseRecoveryApiKey implements CopyWith$Variables$Mutation$UseRecoveryApiKey { _CopyWithImpl$Variables$Mutation$UseRecoveryApiKey( this._instance, this._then, ); final Variables$Mutation$UseRecoveryApiKey _instance; final TRes Function(Variables$Mutation$UseRecoveryApiKey) _then; static const _undefined = {}; TRes call({Object? input = _undefined}) => _then(Variables$Mutation$UseRecoveryApiKey._({ ..._instance._$data, if (input != _undefined && input != null) 'input': (input as Input$UseRecoveryKeyInput), })); } class _CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey implements CopyWith$Variables$Mutation$UseRecoveryApiKey { _CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey(this._res); TRes _res; call({Input$UseRecoveryKeyInput? input}) => _res; } class Mutation$UseRecoveryApiKey { Mutation$UseRecoveryApiKey({ required this.useRecoveryApiKey, this.$__typename = 'Mutation', }); factory Mutation$UseRecoveryApiKey.fromJson(Map json) { final l$useRecoveryApiKey = json['useRecoveryApiKey']; final l$$__typename = json['__typename']; return Mutation$UseRecoveryApiKey( useRecoveryApiKey: Mutation$UseRecoveryApiKey$useRecoveryApiKey.fromJson( (l$useRecoveryApiKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$UseRecoveryApiKey$useRecoveryApiKey useRecoveryApiKey; final String $__typename; Map toJson() { final _resultData = {}; final l$useRecoveryApiKey = useRecoveryApiKey; _resultData['useRecoveryApiKey'] = l$useRecoveryApiKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$useRecoveryApiKey = useRecoveryApiKey; final l$$__typename = $__typename; return Object.hashAll([ l$useRecoveryApiKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$UseRecoveryApiKey) || runtimeType != other.runtimeType) { return false; } final l$useRecoveryApiKey = useRecoveryApiKey; final lOther$useRecoveryApiKey = other.useRecoveryApiKey; if (l$useRecoveryApiKey != lOther$useRecoveryApiKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$UseRecoveryApiKey on Mutation$UseRecoveryApiKey { CopyWith$Mutation$UseRecoveryApiKey get copyWith => CopyWith$Mutation$UseRecoveryApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$UseRecoveryApiKey { factory CopyWith$Mutation$UseRecoveryApiKey( Mutation$UseRecoveryApiKey instance, TRes Function(Mutation$UseRecoveryApiKey) then, ) = _CopyWithImpl$Mutation$UseRecoveryApiKey; factory CopyWith$Mutation$UseRecoveryApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$UseRecoveryApiKey; TRes call({ Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey, String? $__typename, }); CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey get useRecoveryApiKey; } class _CopyWithImpl$Mutation$UseRecoveryApiKey implements CopyWith$Mutation$UseRecoveryApiKey { _CopyWithImpl$Mutation$UseRecoveryApiKey( this._instance, this._then, ); final Mutation$UseRecoveryApiKey _instance; final TRes Function(Mutation$UseRecoveryApiKey) _then; static const _undefined = {}; TRes call({ Object? useRecoveryApiKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UseRecoveryApiKey( useRecoveryApiKey: useRecoveryApiKey == _undefined || useRecoveryApiKey == null ? _instance.useRecoveryApiKey : (useRecoveryApiKey as Mutation$UseRecoveryApiKey$useRecoveryApiKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey get useRecoveryApiKey { final local$useRecoveryApiKey = _instance.useRecoveryApiKey; return CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( local$useRecoveryApiKey, (e) => call(useRecoveryApiKey: e)); } } class _CopyWithStubImpl$Mutation$UseRecoveryApiKey implements CopyWith$Mutation$UseRecoveryApiKey { _CopyWithStubImpl$Mutation$UseRecoveryApiKey(this._res); TRes _res; call({ Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey, String? $__typename, }) => _res; CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey get useRecoveryApiKey => CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(_res); } const documentNodeMutationUseRecoveryApiKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'UseRecoveryApiKey'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'input')), type: NamedTypeNode( name: NameNode(value: 'UseRecoveryKeyInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'useRecoveryApiKey'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'input'), value: VariableNode(name: NameNode(value: 'input')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'token'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$UseRecoveryApiKey _parserFn$Mutation$UseRecoveryApiKey( Map data) => Mutation$UseRecoveryApiKey.fromJson(data); typedef OnMutationCompleted$Mutation$UseRecoveryApiKey = FutureOr Function( Map?, Mutation$UseRecoveryApiKey?, ); class Options$Mutation$UseRecoveryApiKey extends graphql.MutationOptions { Options$Mutation$UseRecoveryApiKey({ String? operationName, required Variables$Mutation$UseRecoveryApiKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$UseRecoveryApiKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$UseRecoveryApiKey? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$UseRecoveryApiKey(data), ), update: update, onError: onError, document: documentNodeMutationUseRecoveryApiKey, parserFn: _parserFn$Mutation$UseRecoveryApiKey, ); final OnMutationCompleted$Mutation$UseRecoveryApiKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$UseRecoveryApiKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$UseRecoveryApiKey({ String? operationName, required Variables$Mutation$UseRecoveryApiKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$UseRecoveryApiKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationUseRecoveryApiKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$UseRecoveryApiKey, ); } extension ClientExtension$Mutation$UseRecoveryApiKey on graphql.GraphQLClient { Future> mutate$UseRecoveryApiKey( Options$Mutation$UseRecoveryApiKey options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$UseRecoveryApiKey( WatchOptions$Mutation$UseRecoveryApiKey options) => this.watchMutation(options); } class Mutation$UseRecoveryApiKey$useRecoveryApiKey implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { Mutation$UseRecoveryApiKey$useRecoveryApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'DeviceApiTokenMutationReturn', this.token, }); factory Mutation$UseRecoveryApiKey$useRecoveryApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; return Mutation$UseRecoveryApiKey$useRecoveryApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), token: (l$token as String?), ); } final int code; final String message; final bool success; final String $__typename; final String? token; 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; final l$token = token; _resultData['token'] = l$token; return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$token = token; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$token, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$UseRecoveryApiKey$useRecoveryApiKey) || 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; } final l$token = token; final lOther$token = other.token; if (l$token != lOther$token) { return false; } return true; } } extension UtilityExtension$Mutation$UseRecoveryApiKey$useRecoveryApiKey on Mutation$UseRecoveryApiKey$useRecoveryApiKey { CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey< Mutation$UseRecoveryApiKey$useRecoveryApiKey> get copyWith => CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey( Mutation$UseRecoveryApiKey$useRecoveryApiKey instance, TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) then, ) = _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey; factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey; TRes call({ int? code, String? message, bool? success, String? $__typename, String? token, }); } class _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey( this._instance, this._then, ); final Mutation$UseRecoveryApiKey$useRecoveryApiKey _instance; final TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? token = _undefined, }) => _then(Mutation$UseRecoveryApiKey$useRecoveryApiKey( 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), token: token == _undefined ? _instance.token : (token as String?), )); } class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey { _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, String? token, }) => _res; } class Mutation$RefreshDeviceApiToken { Mutation$RefreshDeviceApiToken({ required this.refreshDeviceApiToken, this.$__typename = 'Mutation', }); factory Mutation$RefreshDeviceApiToken.fromJson(Map json) { final l$refreshDeviceApiToken = json['refreshDeviceApiToken']; final l$$__typename = json['__typename']; return Mutation$RefreshDeviceApiToken( refreshDeviceApiToken: Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.fromJson( (l$refreshDeviceApiToken as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken refreshDeviceApiToken; final String $__typename; Map toJson() { final _resultData = {}; final l$refreshDeviceApiToken = refreshDeviceApiToken; _resultData['refreshDeviceApiToken'] = l$refreshDeviceApiToken.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$refreshDeviceApiToken = refreshDeviceApiToken; final l$$__typename = $__typename; return Object.hashAll([ l$refreshDeviceApiToken, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RefreshDeviceApiToken) || runtimeType != other.runtimeType) { return false; } final l$refreshDeviceApiToken = refreshDeviceApiToken; final lOther$refreshDeviceApiToken = other.refreshDeviceApiToken; if (l$refreshDeviceApiToken != lOther$refreshDeviceApiToken) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RefreshDeviceApiToken on Mutation$RefreshDeviceApiToken { CopyWith$Mutation$RefreshDeviceApiToken get copyWith => CopyWith$Mutation$RefreshDeviceApiToken( this, (i) => i, ); } abstract class CopyWith$Mutation$RefreshDeviceApiToken { factory CopyWith$Mutation$RefreshDeviceApiToken( Mutation$RefreshDeviceApiToken instance, TRes Function(Mutation$RefreshDeviceApiToken) then, ) = _CopyWithImpl$Mutation$RefreshDeviceApiToken; factory CopyWith$Mutation$RefreshDeviceApiToken.stub(TRes res) = _CopyWithStubImpl$Mutation$RefreshDeviceApiToken; TRes call({ Mutation$RefreshDeviceApiToken$refreshDeviceApiToken? refreshDeviceApiToken, String? $__typename, }); CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken get refreshDeviceApiToken; } class _CopyWithImpl$Mutation$RefreshDeviceApiToken implements CopyWith$Mutation$RefreshDeviceApiToken { _CopyWithImpl$Mutation$RefreshDeviceApiToken( this._instance, this._then, ); final Mutation$RefreshDeviceApiToken _instance; final TRes Function(Mutation$RefreshDeviceApiToken) _then; static const _undefined = {}; TRes call({ Object? refreshDeviceApiToken = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RefreshDeviceApiToken( refreshDeviceApiToken: refreshDeviceApiToken == _undefined || refreshDeviceApiToken == null ? _instance.refreshDeviceApiToken : (refreshDeviceApiToken as Mutation$RefreshDeviceApiToken$refreshDeviceApiToken), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken get refreshDeviceApiToken { final local$refreshDeviceApiToken = _instance.refreshDeviceApiToken; return CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( local$refreshDeviceApiToken, (e) => call(refreshDeviceApiToken: e)); } } class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken implements CopyWith$Mutation$RefreshDeviceApiToken { _CopyWithStubImpl$Mutation$RefreshDeviceApiToken(this._res); TRes _res; call({ Mutation$RefreshDeviceApiToken$refreshDeviceApiToken? refreshDeviceApiToken, String? $__typename, }) => _res; CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken get refreshDeviceApiToken => CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub( _res); } const documentNodeMutationRefreshDeviceApiToken = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RefreshDeviceApiToken'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'refreshDeviceApiToken'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'token'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$RefreshDeviceApiToken _parserFn$Mutation$RefreshDeviceApiToken( Map data) => Mutation$RefreshDeviceApiToken.fromJson(data); typedef OnMutationCompleted$Mutation$RefreshDeviceApiToken = FutureOr Function( Map?, Mutation$RefreshDeviceApiToken?, ); class Options$Mutation$RefreshDeviceApiToken extends graphql.MutationOptions { Options$Mutation$RefreshDeviceApiToken({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RefreshDeviceApiToken? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RefreshDeviceApiToken? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$RefreshDeviceApiToken(data), ), update: update, onError: onError, document: documentNodeMutationRefreshDeviceApiToken, parserFn: _parserFn$Mutation$RefreshDeviceApiToken, ); final OnMutationCompleted$Mutation$RefreshDeviceApiToken? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RefreshDeviceApiToken extends graphql.WatchQueryOptions { WatchOptions$Mutation$RefreshDeviceApiToken({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RefreshDeviceApiToken? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationRefreshDeviceApiToken, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RefreshDeviceApiToken, ); } extension ClientExtension$Mutation$RefreshDeviceApiToken on graphql.GraphQLClient { Future> mutate$RefreshDeviceApiToken( [Options$Mutation$RefreshDeviceApiToken? options]) async => await this .mutate(options ?? Options$Mutation$RefreshDeviceApiToken()); graphql.ObservableQuery watchMutation$RefreshDeviceApiToken( [WatchOptions$Mutation$RefreshDeviceApiToken? options]) => this.watchMutation( options ?? WatchOptions$Mutation$RefreshDeviceApiToken()); } class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { Mutation$RefreshDeviceApiToken$refreshDeviceApiToken({ required this.code, required this.message, required this.success, this.$__typename = 'DeviceApiTokenMutationReturn', this.token, }); factory Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; return Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), token: (l$token as String?), ); } final int code; final String message; final bool success; final String $__typename; final String? token; 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; final l$token = token; _resultData['token'] = l$token; return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$token = token; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$token, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) || 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; } final l$token = token; final lOther$token = other.token; if (l$token != lOther$token) { return false; } return true; } } extension UtilityExtension$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken on Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< Mutation$RefreshDeviceApiToken$refreshDeviceApiToken> get copyWith => CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( this, (i) => i, ); } abstract class CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< TRes> { factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( Mutation$RefreshDeviceApiToken$refreshDeviceApiToken instance, TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) then, ) = _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken; factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub( TRes res) = _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken; TRes call({ int? code, String? message, bool? success, String? $__typename, String? token, }); } class _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken implements CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( this._instance, this._then, ); final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken _instance; final TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? token = _undefined, }) => _then(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( 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), token: token == _undefined ? _instance.token : (token as String?), )); } class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken< TRes> implements CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken { _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, String? token, }) => _res; } class Variables$Mutation$DeleteDeviceApiToken { factory Variables$Mutation$DeleteDeviceApiToken({required String device}) => Variables$Mutation$DeleteDeviceApiToken._({ r'device': device, }); Variables$Mutation$DeleteDeviceApiToken._(this._$data); factory Variables$Mutation$DeleteDeviceApiToken.fromJson( Map data) { final result$data = {}; final l$device = data['device']; result$data['device'] = (l$device as String); return Variables$Mutation$DeleteDeviceApiToken._(result$data); } Map _$data; String get device => (_$data['device'] as String); Map toJson() { final result$data = {}; final l$device = device; result$data['device'] = l$device; return result$data; } CopyWith$Variables$Mutation$DeleteDeviceApiToken< Variables$Mutation$DeleteDeviceApiToken> get copyWith => CopyWith$Variables$Mutation$DeleteDeviceApiToken( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$DeleteDeviceApiToken) || runtimeType != other.runtimeType) { return false; } final l$device = device; final lOther$device = other.device; if (l$device != lOther$device) { return false; } return true; } @override int get hashCode { final l$device = device; return Object.hashAll([l$device]); } } abstract class CopyWith$Variables$Mutation$DeleteDeviceApiToken { factory CopyWith$Variables$Mutation$DeleteDeviceApiToken( Variables$Mutation$DeleteDeviceApiToken instance, TRes Function(Variables$Mutation$DeleteDeviceApiToken) then, ) = _CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken; factory CopyWith$Variables$Mutation$DeleteDeviceApiToken.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken; TRes call({String? device}); } class _CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken implements CopyWith$Variables$Mutation$DeleteDeviceApiToken { _CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken( this._instance, this._then, ); final Variables$Mutation$DeleteDeviceApiToken _instance; final TRes Function(Variables$Mutation$DeleteDeviceApiToken) _then; static const _undefined = {}; TRes call({Object? device = _undefined}) => _then(Variables$Mutation$DeleteDeviceApiToken._({ ..._instance._$data, if (device != _undefined && device != null) 'device': (device as String), })); } class _CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken implements CopyWith$Variables$Mutation$DeleteDeviceApiToken { _CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken(this._res); TRes _res; call({String? device}) => _res; } class Mutation$DeleteDeviceApiToken { Mutation$DeleteDeviceApiToken({ required this.deleteDeviceApiToken, this.$__typename = 'Mutation', }); factory Mutation$DeleteDeviceApiToken.fromJson(Map json) { final l$deleteDeviceApiToken = json['deleteDeviceApiToken']; final l$$__typename = json['__typename']; return Mutation$DeleteDeviceApiToken( deleteDeviceApiToken: Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.fromJson( (l$deleteDeviceApiToken as Map)), $__typename: (l$$__typename as String), ); } final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken deleteDeviceApiToken; final String $__typename; Map toJson() { final _resultData = {}; final l$deleteDeviceApiToken = deleteDeviceApiToken; _resultData['deleteDeviceApiToken'] = l$deleteDeviceApiToken.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$deleteDeviceApiToken = deleteDeviceApiToken; final l$$__typename = $__typename; return Object.hashAll([ l$deleteDeviceApiToken, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$DeleteDeviceApiToken) || runtimeType != other.runtimeType) { return false; } final l$deleteDeviceApiToken = deleteDeviceApiToken; final lOther$deleteDeviceApiToken = other.deleteDeviceApiToken; if (l$deleteDeviceApiToken != lOther$deleteDeviceApiToken) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$DeleteDeviceApiToken on Mutation$DeleteDeviceApiToken { CopyWith$Mutation$DeleteDeviceApiToken get copyWith => CopyWith$Mutation$DeleteDeviceApiToken( this, (i) => i, ); } abstract class CopyWith$Mutation$DeleteDeviceApiToken { factory CopyWith$Mutation$DeleteDeviceApiToken( Mutation$DeleteDeviceApiToken instance, TRes Function(Mutation$DeleteDeviceApiToken) then, ) = _CopyWithImpl$Mutation$DeleteDeviceApiToken; factory CopyWith$Mutation$DeleteDeviceApiToken.stub(TRes res) = _CopyWithStubImpl$Mutation$DeleteDeviceApiToken; TRes call({ Mutation$DeleteDeviceApiToken$deleteDeviceApiToken? deleteDeviceApiToken, String? $__typename, }); CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken get deleteDeviceApiToken; } class _CopyWithImpl$Mutation$DeleteDeviceApiToken implements CopyWith$Mutation$DeleteDeviceApiToken { _CopyWithImpl$Mutation$DeleteDeviceApiToken( this._instance, this._then, ); final Mutation$DeleteDeviceApiToken _instance; final TRes Function(Mutation$DeleteDeviceApiToken) _then; static const _undefined = {}; TRes call({ Object? deleteDeviceApiToken = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteDeviceApiToken( deleteDeviceApiToken: deleteDeviceApiToken == _undefined || deleteDeviceApiToken == null ? _instance.deleteDeviceApiToken : (deleteDeviceApiToken as Mutation$DeleteDeviceApiToken$deleteDeviceApiToken), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken get deleteDeviceApiToken { final local$deleteDeviceApiToken = _instance.deleteDeviceApiToken; return CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( local$deleteDeviceApiToken, (e) => call(deleteDeviceApiToken: e)); } } class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken implements CopyWith$Mutation$DeleteDeviceApiToken { _CopyWithStubImpl$Mutation$DeleteDeviceApiToken(this._res); TRes _res; call({ Mutation$DeleteDeviceApiToken$deleteDeviceApiToken? deleteDeviceApiToken, String? $__typename, }) => _res; CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken get deleteDeviceApiToken => CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub( _res); } const documentNodeMutationDeleteDeviceApiToken = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'DeleteDeviceApiToken'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'device')), type: NamedTypeNode( name: NameNode(value: 'String'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'deleteDeviceApiToken'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'device'), value: VariableNode(name: NameNode(value: 'device')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$DeleteDeviceApiToken _parserFn$Mutation$DeleteDeviceApiToken( Map data) => Mutation$DeleteDeviceApiToken.fromJson(data); typedef OnMutationCompleted$Mutation$DeleteDeviceApiToken = FutureOr Function( Map?, Mutation$DeleteDeviceApiToken?, ); class Options$Mutation$DeleteDeviceApiToken extends graphql.MutationOptions { Options$Mutation$DeleteDeviceApiToken({ String? operationName, required Variables$Mutation$DeleteDeviceApiToken variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$DeleteDeviceApiToken? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$DeleteDeviceApiToken? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$DeleteDeviceApiToken(data), ), update: update, onError: onError, document: documentNodeMutationDeleteDeviceApiToken, parserFn: _parserFn$Mutation$DeleteDeviceApiToken, ); final OnMutationCompleted$Mutation$DeleteDeviceApiToken? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$DeleteDeviceApiToken extends graphql.WatchQueryOptions { WatchOptions$Mutation$DeleteDeviceApiToken({ String? operationName, required Variables$Mutation$DeleteDeviceApiToken variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$DeleteDeviceApiToken? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationDeleteDeviceApiToken, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$DeleteDeviceApiToken, ); } extension ClientExtension$Mutation$DeleteDeviceApiToken on graphql.GraphQLClient { Future> mutate$DeleteDeviceApiToken( Options$Mutation$DeleteDeviceApiToken options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$DeleteDeviceApiToken( WatchOptions$Mutation$DeleteDeviceApiToken options) => this.watchMutation(options); } class Mutation$DeleteDeviceApiToken$deleteDeviceApiToken implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$DeleteDeviceApiToken$deleteDeviceApiToken({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( 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 Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) || 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$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken on Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken< Mutation$DeleteDeviceApiToken$deleteDeviceApiToken> get copyWith => CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( this, (i) => i, ); } abstract class CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken< TRes> { factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( Mutation$DeleteDeviceApiToken$deleteDeviceApiToken instance, TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) then, ) = _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken; factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub( TRes res) = _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken implements CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( this._instance, this._then, ); final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken _instance; final TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( 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$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken implements CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken { _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Mutation$GetNewDeviceApiKey { Mutation$GetNewDeviceApiKey({ required this.getNewDeviceApiKey, this.$__typename = 'Mutation', }); factory Mutation$GetNewDeviceApiKey.fromJson(Map json) { final l$getNewDeviceApiKey = json['getNewDeviceApiKey']; final l$$__typename = json['__typename']; return Mutation$GetNewDeviceApiKey( getNewDeviceApiKey: Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.fromJson( (l$getNewDeviceApiKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey getNewDeviceApiKey; final String $__typename; Map toJson() { final _resultData = {}; final l$getNewDeviceApiKey = getNewDeviceApiKey; _resultData['getNewDeviceApiKey'] = l$getNewDeviceApiKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$getNewDeviceApiKey = getNewDeviceApiKey; final l$$__typename = $__typename; return Object.hashAll([ l$getNewDeviceApiKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$GetNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } final l$getNewDeviceApiKey = getNewDeviceApiKey; final lOther$getNewDeviceApiKey = other.getNewDeviceApiKey; if (l$getNewDeviceApiKey != lOther$getNewDeviceApiKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$GetNewDeviceApiKey on Mutation$GetNewDeviceApiKey { CopyWith$Mutation$GetNewDeviceApiKey get copyWith => CopyWith$Mutation$GetNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$GetNewDeviceApiKey { factory CopyWith$Mutation$GetNewDeviceApiKey( Mutation$GetNewDeviceApiKey instance, TRes Function(Mutation$GetNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$GetNewDeviceApiKey; factory CopyWith$Mutation$GetNewDeviceApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$GetNewDeviceApiKey; TRes call({ Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey, String? $__typename, }); CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey get getNewDeviceApiKey; } class _CopyWithImpl$Mutation$GetNewDeviceApiKey implements CopyWith$Mutation$GetNewDeviceApiKey { _CopyWithImpl$Mutation$GetNewDeviceApiKey( this._instance, this._then, ); final Mutation$GetNewDeviceApiKey _instance; final TRes Function(Mutation$GetNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? getNewDeviceApiKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$GetNewDeviceApiKey( getNewDeviceApiKey: getNewDeviceApiKey == _undefined || getNewDeviceApiKey == null ? _instance.getNewDeviceApiKey : (getNewDeviceApiKey as Mutation$GetNewDeviceApiKey$getNewDeviceApiKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey get getNewDeviceApiKey { final local$getNewDeviceApiKey = _instance.getNewDeviceApiKey; return CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( local$getNewDeviceApiKey, (e) => call(getNewDeviceApiKey: e)); } } class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey implements CopyWith$Mutation$GetNewDeviceApiKey { _CopyWithStubImpl$Mutation$GetNewDeviceApiKey(this._res); TRes _res; call({ Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey, String? $__typename, }) => _res; CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey get getNewDeviceApiKey => CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub(_res); } const documentNodeMutationGetNewDeviceApiKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'GetNewDeviceApiKey'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'getNewDeviceApiKey'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'key'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$GetNewDeviceApiKey _parserFn$Mutation$GetNewDeviceApiKey( Map data) => Mutation$GetNewDeviceApiKey.fromJson(data); typedef OnMutationCompleted$Mutation$GetNewDeviceApiKey = FutureOr Function( Map?, Mutation$GetNewDeviceApiKey?, ); class Options$Mutation$GetNewDeviceApiKey extends graphql.MutationOptions { Options$Mutation$GetNewDeviceApiKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$GetNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$GetNewDeviceApiKey? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$GetNewDeviceApiKey(data), ), update: update, onError: onError, document: documentNodeMutationGetNewDeviceApiKey, parserFn: _parserFn$Mutation$GetNewDeviceApiKey, ); final OnMutationCompleted$Mutation$GetNewDeviceApiKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$GetNewDeviceApiKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$GetNewDeviceApiKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$GetNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationGetNewDeviceApiKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$GetNewDeviceApiKey, ); } extension ClientExtension$Mutation$GetNewDeviceApiKey on graphql.GraphQLClient { Future> mutate$GetNewDeviceApiKey( [Options$Mutation$GetNewDeviceApiKey? options]) async => await this.mutate(options ?? Options$Mutation$GetNewDeviceApiKey()); graphql.ObservableQuery< Mutation$GetNewDeviceApiKey> watchMutation$GetNewDeviceApiKey( [WatchOptions$Mutation$GetNewDeviceApiKey? options]) => this.watchMutation(options ?? WatchOptions$Mutation$GetNewDeviceApiKey()); } class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey implements Fragment$basicMutationReturnFields$$ApiKeyMutationReturn { Mutation$GetNewDeviceApiKey$getNewDeviceApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'ApiKeyMutationReturn', this.key, }); factory Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$key = json['key']; return Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), key: (l$key as String?), ); } final int code; final String message; final bool success; final String $__typename; final String? key; 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; final l$key = key; _resultData['key'] = l$key; return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$key = key; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$key, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) || 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; } final l$key = key; final lOther$key = other.key; if (l$key != lOther$key) { return false; } return true; } } extension UtilityExtension$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey on Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey< Mutation$GetNewDeviceApiKey$getNewDeviceApiKey> get copyWith => CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( Mutation$GetNewDeviceApiKey$getNewDeviceApiKey instance, TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey; factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub( TRes res) = _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey; TRes call({ int? code, String? message, bool? success, String? $__typename, String? key, }); } class _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( this._instance, this._then, ); final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey _instance; final TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? key = _undefined, }) => _then(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey( 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), key: key == _undefined ? _instance.key : (key as String?), )); } class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey { _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, String? key, }) => _res; } class Mutation$InvalidateNewDeviceApiKey { Mutation$InvalidateNewDeviceApiKey({ required this.invalidateNewDeviceApiKey, this.$__typename = 'Mutation', }); factory Mutation$InvalidateNewDeviceApiKey.fromJson( Map json) { final l$invalidateNewDeviceApiKey = json['invalidateNewDeviceApiKey']; final l$$__typename = json['__typename']; return Mutation$InvalidateNewDeviceApiKey( invalidateNewDeviceApiKey: Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.fromJson( (l$invalidateNewDeviceApiKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey invalidateNewDeviceApiKey; final String $__typename; Map toJson() { final _resultData = {}; final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; _resultData['invalidateNewDeviceApiKey'] = l$invalidateNewDeviceApiKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; final l$$__typename = $__typename; return Object.hashAll([ l$invalidateNewDeviceApiKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$InvalidateNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey; final lOther$invalidateNewDeviceApiKey = other.invalidateNewDeviceApiKey; if (l$invalidateNewDeviceApiKey != lOther$invalidateNewDeviceApiKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey on Mutation$InvalidateNewDeviceApiKey { CopyWith$Mutation$InvalidateNewDeviceApiKey< Mutation$InvalidateNewDeviceApiKey> get copyWith => CopyWith$Mutation$InvalidateNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey { factory CopyWith$Mutation$InvalidateNewDeviceApiKey( Mutation$InvalidateNewDeviceApiKey instance, TRes Function(Mutation$InvalidateNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey; factory CopyWith$Mutation$InvalidateNewDeviceApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey; TRes call({ Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey? invalidateNewDeviceApiKey, String? $__typename, }); CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey get invalidateNewDeviceApiKey; } class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey implements CopyWith$Mutation$InvalidateNewDeviceApiKey { _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey( this._instance, this._then, ); final Mutation$InvalidateNewDeviceApiKey _instance; final TRes Function(Mutation$InvalidateNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? invalidateNewDeviceApiKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$InvalidateNewDeviceApiKey( invalidateNewDeviceApiKey: invalidateNewDeviceApiKey == _undefined || invalidateNewDeviceApiKey == null ? _instance.invalidateNewDeviceApiKey : (invalidateNewDeviceApiKey as Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey get invalidateNewDeviceApiKey { final local$invalidateNewDeviceApiKey = _instance.invalidateNewDeviceApiKey; return CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( local$invalidateNewDeviceApiKey, (e) => call(invalidateNewDeviceApiKey: e)); } } class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey implements CopyWith$Mutation$InvalidateNewDeviceApiKey { _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey(this._res); TRes _res; call({ Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey? invalidateNewDeviceApiKey, String? $__typename, }) => _res; CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey get invalidateNewDeviceApiKey => CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey .stub(_res); } const documentNodeMutationInvalidateNewDeviceApiKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'InvalidateNewDeviceApiKey'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'invalidateNewDeviceApiKey'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$InvalidateNewDeviceApiKey _parserFn$Mutation$InvalidateNewDeviceApiKey( Map data) => Mutation$InvalidateNewDeviceApiKey.fromJson(data); typedef OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey = FutureOr Function( Map?, Mutation$InvalidateNewDeviceApiKey?, ); class Options$Mutation$InvalidateNewDeviceApiKey extends graphql.MutationOptions { Options$Mutation$InvalidateNewDeviceApiKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$InvalidateNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$InvalidateNewDeviceApiKey(data), ), update: update, onError: onError, document: documentNodeMutationInvalidateNewDeviceApiKey, parserFn: _parserFn$Mutation$InvalidateNewDeviceApiKey, ); final OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$InvalidateNewDeviceApiKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$InvalidateNewDeviceApiKey({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$InvalidateNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationInvalidateNewDeviceApiKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$InvalidateNewDeviceApiKey, ); } extension ClientExtension$Mutation$InvalidateNewDeviceApiKey on graphql.GraphQLClient { Future> mutate$InvalidateNewDeviceApiKey( [Options$Mutation$InvalidateNewDeviceApiKey? options]) async => await this .mutate(options ?? Options$Mutation$InvalidateNewDeviceApiKey()); graphql.ObservableQuery watchMutation$InvalidateNewDeviceApiKey( [WatchOptions$Mutation$InvalidateNewDeviceApiKey? options]) => this.watchMutation( options ?? WatchOptions$Mutation$InvalidateNewDeviceApiKey()); } class Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; return Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( 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 Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) || 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$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey on Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey { CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey> get copyWith => CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< TRes> { factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey instance, TRes Function(Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey; factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.stub( TRes res) = _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< TRes> implements CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< TRes> { _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( this._instance, this._then, ); final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey _instance; final TRes Function( Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( 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$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< TRes> implements CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey< TRes> { _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Variables$Mutation$AuthorizeWithNewDeviceApiKey { factory Variables$Mutation$AuthorizeWithNewDeviceApiKey( {required Input$UseNewDeviceKeyInput input}) => Variables$Mutation$AuthorizeWithNewDeviceApiKey._({ r'input': input, }); Variables$Mutation$AuthorizeWithNewDeviceApiKey._(this._$data); factory Variables$Mutation$AuthorizeWithNewDeviceApiKey.fromJson( Map data) { final result$data = {}; final l$input = data['input']; result$data['input'] = Input$UseNewDeviceKeyInput.fromJson((l$input as Map)); return Variables$Mutation$AuthorizeWithNewDeviceApiKey._(result$data); } Map _$data; Input$UseNewDeviceKeyInput get input => (_$data['input'] as Input$UseNewDeviceKeyInput); Map toJson() { final result$data = {}; final l$input = input; result$data['input'] = l$input.toJson(); return result$data; } CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey< Variables$Mutation$AuthorizeWithNewDeviceApiKey> get copyWith => CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$AuthorizeWithNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } final l$input = input; final lOther$input = other.input; if (l$input != lOther$input) { return false; } return true; } @override int get hashCode { final l$input = input; return Object.hashAll([l$input]); } } abstract class CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey { factory CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey( Variables$Mutation$AuthorizeWithNewDeviceApiKey instance, TRes Function(Variables$Mutation$AuthorizeWithNewDeviceApiKey) then, ) = _CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey; factory CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey.stub( TRes res) = _CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey; TRes call({Input$UseNewDeviceKeyInput? input}); } class _CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey implements CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey { _CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey( this._instance, this._then, ); final Variables$Mutation$AuthorizeWithNewDeviceApiKey _instance; final TRes Function(Variables$Mutation$AuthorizeWithNewDeviceApiKey) _then; static const _undefined = {}; TRes call({Object? input = _undefined}) => _then(Variables$Mutation$AuthorizeWithNewDeviceApiKey._({ ..._instance._$data, if (input != _undefined && input != null) 'input': (input as Input$UseNewDeviceKeyInput), })); } class _CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey implements CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey { _CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey(this._res); TRes _res; call({Input$UseNewDeviceKeyInput? input}) => _res; } class Mutation$AuthorizeWithNewDeviceApiKey { Mutation$AuthorizeWithNewDeviceApiKey({ required this.authorizeWithNewDeviceApiKey, this.$__typename = 'Mutation', }); factory Mutation$AuthorizeWithNewDeviceApiKey.fromJson( Map json) { final l$authorizeWithNewDeviceApiKey = json['authorizeWithNewDeviceApiKey']; final l$$__typename = json['__typename']; return Mutation$AuthorizeWithNewDeviceApiKey( authorizeWithNewDeviceApiKey: Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey .fromJson( (l$authorizeWithNewDeviceApiKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey authorizeWithNewDeviceApiKey; final String $__typename; Map toJson() { final _resultData = {}; final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; _resultData['authorizeWithNewDeviceApiKey'] = l$authorizeWithNewDeviceApiKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; final l$$__typename = $__typename; return Object.hashAll([ l$authorizeWithNewDeviceApiKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$AuthorizeWithNewDeviceApiKey) || runtimeType != other.runtimeType) { return false; } final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey; final lOther$authorizeWithNewDeviceApiKey = other.authorizeWithNewDeviceApiKey; if (l$authorizeWithNewDeviceApiKey != lOther$authorizeWithNewDeviceApiKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey on Mutation$AuthorizeWithNewDeviceApiKey { CopyWith$Mutation$AuthorizeWithNewDeviceApiKey< Mutation$AuthorizeWithNewDeviceApiKey> get copyWith => CopyWith$Mutation$AuthorizeWithNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey { factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey( Mutation$AuthorizeWithNewDeviceApiKey instance, TRes Function(Mutation$AuthorizeWithNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey; factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey.stub(TRes res) = _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey; TRes call({ Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey? authorizeWithNewDeviceApiKey, String? $__typename, }); CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> get authorizeWithNewDeviceApiKey; } class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey { _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey( this._instance, this._then, ); final Mutation$AuthorizeWithNewDeviceApiKey _instance; final TRes Function(Mutation$AuthorizeWithNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? authorizeWithNewDeviceApiKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$AuthorizeWithNewDeviceApiKey( authorizeWithNewDeviceApiKey: authorizeWithNewDeviceApiKey == _undefined || authorizeWithNewDeviceApiKey == null ? _instance.authorizeWithNewDeviceApiKey : (authorizeWithNewDeviceApiKey as Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> get authorizeWithNewDeviceApiKey { final local$authorizeWithNewDeviceApiKey = _instance.authorizeWithNewDeviceApiKey; return CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( local$authorizeWithNewDeviceApiKey, (e) => call(authorizeWithNewDeviceApiKey: e)); } } class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey { _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey(this._res); TRes _res; call({ Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey? authorizeWithNewDeviceApiKey, String? $__typename, }) => _res; CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> get authorizeWithNewDeviceApiKey => CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey .stub(_res); } const documentNodeMutationAuthorizeWithNewDeviceApiKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'AuthorizeWithNewDeviceApiKey'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'input')), type: NamedTypeNode( name: NameNode(value: 'UseNewDeviceKeyInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'authorizeWithNewDeviceApiKey'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'input'), value: VariableNode(name: NameNode(value: 'input')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'token'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$AuthorizeWithNewDeviceApiKey _parserFn$Mutation$AuthorizeWithNewDeviceApiKey( Map data) => Mutation$AuthorizeWithNewDeviceApiKey.fromJson(data); typedef OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey = FutureOr Function( Map?, Mutation$AuthorizeWithNewDeviceApiKey?, ); class Options$Mutation$AuthorizeWithNewDeviceApiKey extends graphql.MutationOptions { Options$Mutation$AuthorizeWithNewDeviceApiKey({ String? operationName, required Variables$Mutation$AuthorizeWithNewDeviceApiKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$AuthorizeWithNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey? onCompleted, graphql.OnMutationUpdate? update, graphql.OnError? onError, }) : onCompletedWithParsed = onCompleted, super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, onCompleted: onCompleted == null ? null : (data) => onCompleted( data, data == null ? null : _parserFn$Mutation$AuthorizeWithNewDeviceApiKey(data), ), update: update, onError: onError, document: documentNodeMutationAuthorizeWithNewDeviceApiKey, parserFn: _parserFn$Mutation$AuthorizeWithNewDeviceApiKey, ); final OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey({ String? operationName, required Variables$Mutation$AuthorizeWithNewDeviceApiKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$AuthorizeWithNewDeviceApiKey? typedOptimisticResult, graphql.Context? context, Duration? pollInterval, bool? eagerlyFetchResults, bool carryForwardDataOnException = true, bool fetchResults = false, }) : super( variables: variables.toJson(), operationName: operationName, fetchPolicy: fetchPolicy, errorPolicy: errorPolicy, cacheRereadPolicy: cacheRereadPolicy, optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(), context: context, document: documentNodeMutationAuthorizeWithNewDeviceApiKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$AuthorizeWithNewDeviceApiKey, ); } extension ClientExtension$Mutation$AuthorizeWithNewDeviceApiKey on graphql.GraphQLClient { Future> mutate$AuthorizeWithNewDeviceApiKey( Options$Mutation$AuthorizeWithNewDeviceApiKey options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$AuthorizeWithNewDeviceApiKey( WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey options) => this.watchMutation(options); } class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey implements Fragment$basicMutationReturnFields$$DeviceApiTokenMutationReturn { Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey({ required this.code, required this.message, required this.success, this.$__typename = 'DeviceApiTokenMutationReturn', this.token, }); factory Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.fromJson( Map json) { final l$code = json['code']; final l$message = json['message']; final l$success = json['success']; final l$$__typename = json['__typename']; final l$token = json['token']; return Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), token: (l$token as String?), ); } final int code; final String message; final bool success; final String $__typename; final String? token; 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; final l$token = token; _resultData['token'] = l$token; return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$token = token; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$token, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) || 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; } final l$token = token; final lOther$token = other.token; if (l$token != lOther$token) { return false; } return true; } } extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey on Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey { CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey> get copyWith => CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( this, (i) => i, ); } abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> { factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey instance, TRes Function( Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) then, ) = _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey; factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.stub( TRes res) = _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey; TRes call({ int? code, String? message, bool? success, String? $__typename, String? token, }); } class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> { _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( this._instance, this._then, ); final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey _instance; final TRes Function( Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? token = _undefined, }) => _then(Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( 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), token: token == _undefined ? _instance.token : (token as String?), )); } class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey< TRes> { _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey( this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, String? token, }) => _res; }