import 'dart:async'; import 'package:gql/ast.dart'; import 'package:graphql/client.dart' as graphql; import 'schema.graphql.dart'; import 'server_api.graphql.dart'; class Fragment$userFields { Fragment$userFields({ required this.username, required this.userType, required this.sshKeys, this.$__typename = 'User', }); factory Fragment$userFields.fromJson(Map json) { final l$username = json['username']; final l$userType = json['userType']; final l$sshKeys = json['sshKeys']; final l$$__typename = json['__typename']; return Fragment$userFields( username: (l$username as String), userType: fromJson$Enum$UserType((l$userType as String)), sshKeys: (l$sshKeys as List).map((e) => (e as String)).toList(), $__typename: (l$$__typename as String), ); } final String username; final Enum$UserType userType; final List sshKeys; final String $__typename; Map toJson() { final _resultData = {}; final l$username = username; _resultData['username'] = l$username; final l$userType = userType; _resultData['userType'] = toJson$Enum$UserType(l$userType); final l$sshKeys = sshKeys; _resultData['sshKeys'] = l$sshKeys.map((e) => e).toList(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$username = username; final l$userType = userType; final l$sshKeys = sshKeys; final l$$__typename = $__typename; return Object.hashAll([ l$username, l$userType, Object.hashAll(l$sshKeys.map((v) => v)), l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Fragment$userFields) || runtimeType != other.runtimeType) { return false; } final l$username = username; final lOther$username = other.username; if (l$username != lOther$username) { return false; } final l$userType = userType; final lOther$userType = other.userType; if (l$userType != lOther$userType) { return false; } final l$sshKeys = sshKeys; final lOther$sshKeys = other.sshKeys; if (l$sshKeys.length != lOther$sshKeys.length) { return false; } for (int i = 0; i < l$sshKeys.length; i++) { final l$sshKeys$entry = l$sshKeys[i]; final lOther$sshKeys$entry = lOther$sshKeys[i]; if (l$sshKeys$entry != lOther$sshKeys$entry) { return false; } } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Fragment$userFields on Fragment$userFields { CopyWith$Fragment$userFields get copyWith => CopyWith$Fragment$userFields( this, (i) => i, ); } abstract class CopyWith$Fragment$userFields { factory CopyWith$Fragment$userFields( Fragment$userFields instance, TRes Function(Fragment$userFields) then, ) = _CopyWithImpl$Fragment$userFields; factory CopyWith$Fragment$userFields.stub(TRes res) = _CopyWithStubImpl$Fragment$userFields; TRes call({ String? username, Enum$UserType? userType, List? sshKeys, String? $__typename, }); } class _CopyWithImpl$Fragment$userFields implements CopyWith$Fragment$userFields { _CopyWithImpl$Fragment$userFields( this._instance, this._then, ); final Fragment$userFields _instance; final TRes Function(Fragment$userFields) _then; static const _undefined = {}; TRes call({ Object? username = _undefined, Object? userType = _undefined, Object? sshKeys = _undefined, Object? $__typename = _undefined, }) => _then(Fragment$userFields( username: username == _undefined || username == null ? _instance.username : (username as String), userType: userType == _undefined || userType == null ? _instance.userType : (userType as Enum$UserType), sshKeys: sshKeys == _undefined || sshKeys == null ? _instance.sshKeys : (sshKeys as List), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); } class _CopyWithStubImpl$Fragment$userFields implements CopyWith$Fragment$userFields { _CopyWithStubImpl$Fragment$userFields(this._res); TRes _res; call({ String? username, Enum$UserType? userType, List? sshKeys, String? $__typename, }) => _res; } const fragmentDefinitionuserFields = FragmentDefinitionNode( name: NameNode(value: 'userFields'), typeCondition: TypeConditionNode( on: NamedTypeNode( name: NameNode(value: 'User'), isNonNull: false, )), directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'username'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'userType'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: 'sshKeys'), alias: null, arguments: [], directives: [], selectionSet: null, ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ); const documentNodeFragmentuserFields = DocumentNode(definitions: [ fragmentDefinitionuserFields, ]); extension ClientExtension$Fragment$userFields on graphql.GraphQLClient { void writeFragment$userFields({ required Fragment$userFields data, required Map idFields, bool broadcast = true, }) => this.writeFragment( graphql.FragmentRequest( idFields: idFields, fragment: const graphql.Fragment( fragmentName: 'userFields', document: documentNodeFragmentuserFields, ), ), data: data.toJson(), broadcast: broadcast, ); Fragment$userFields? readFragment$userFields({ required Map idFields, bool optimistic = true, }) { final result = this.readFragment( graphql.FragmentRequest( idFields: idFields, fragment: const graphql.Fragment( fragmentName: 'userFields', document: documentNodeFragmentuserFields, ), ), optimistic: optimistic, ); return result == null ? null : Fragment$userFields.fromJson(result); } } class Query$AllUsers { Query$AllUsers({ required this.users, this.$__typename = 'Query', }); factory Query$AllUsers.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Query$AllUsers( users: Query$AllUsers$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Query$AllUsers$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$AllUsers) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$AllUsers on Query$AllUsers { CopyWith$Query$AllUsers get copyWith => CopyWith$Query$AllUsers( this, (i) => i, ); } abstract class CopyWith$Query$AllUsers { factory CopyWith$Query$AllUsers( Query$AllUsers instance, TRes Function(Query$AllUsers) then, ) = _CopyWithImpl$Query$AllUsers; factory CopyWith$Query$AllUsers.stub(TRes res) = _CopyWithStubImpl$Query$AllUsers; TRes call({ Query$AllUsers$users? users, String? $__typename, }); CopyWith$Query$AllUsers$users get users; } class _CopyWithImpl$Query$AllUsers implements CopyWith$Query$AllUsers { _CopyWithImpl$Query$AllUsers( this._instance, this._then, ); final Query$AllUsers _instance; final TRes Function(Query$AllUsers) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Query$AllUsers( users: users == _undefined || users == null ? _instance.users : (users as Query$AllUsers$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$AllUsers$users get users { final local$users = _instance.users; return CopyWith$Query$AllUsers$users(local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Query$AllUsers implements CopyWith$Query$AllUsers { _CopyWithStubImpl$Query$AllUsers(this._res); TRes _res; call({ Query$AllUsers$users? users, String? $__typename, }) => _res; CopyWith$Query$AllUsers$users get users => CopyWith$Query$AllUsers$users.stub(_res); } const documentNodeQueryAllUsers = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'AllUsers'), variableDefinitions: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'allUsers'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), FieldNode( name: NameNode(value: 'getUser'), alias: NameNode(value: 'rootUser'), arguments: [ ArgumentNode( name: NameNode(value: 'username'), value: StringValueNode( value: 'root', isBlock: false, ), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), fragmentDefinitionuserFields, ]); Query$AllUsers _parserFn$Query$AllUsers(Map data) => Query$AllUsers.fromJson(data); typedef OnQueryComplete$Query$AllUsers = FutureOr Function( Map?, Query$AllUsers?, ); class Options$Query$AllUsers extends graphql.QueryOptions { Options$Query$AllUsers({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$AllUsers? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$AllUsers? 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$AllUsers(data), ), onError: onError, document: documentNodeQueryAllUsers, parserFn: _parserFn$Query$AllUsers, ); final OnQueryComplete$Query$AllUsers? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$AllUsers extends graphql.WatchQueryOptions { WatchOptions$Query$AllUsers({ String? operationName, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$AllUsers? 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: documentNodeQueryAllUsers, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$AllUsers, ); } class FetchMoreOptions$Query$AllUsers extends graphql.FetchMoreOptions { FetchMoreOptions$Query$AllUsers({required graphql.UpdateQuery updateQuery}) : super( updateQuery: updateQuery, document: documentNodeQueryAllUsers, ); } extension ClientExtension$Query$AllUsers on graphql.GraphQLClient { Future> query$AllUsers( [Options$Query$AllUsers? options]) async => await this.query(options ?? Options$Query$AllUsers()); graphql.ObservableQuery watchQuery$AllUsers( [WatchOptions$Query$AllUsers? options]) => this.watchQuery(options ?? WatchOptions$Query$AllUsers()); void writeQuery$AllUsers({ required Query$AllUsers data, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryAllUsers)), data: data.toJson(), broadcast: broadcast, ); Query$AllUsers? readQuery$AllUsers({bool optimistic = true}) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryAllUsers)), optimistic: optimistic, ); return result == null ? null : Query$AllUsers.fromJson(result); } } class Query$AllUsers$users { Query$AllUsers$users({ required this.allUsers, this.rootUser, this.$__typename = 'Users', }); factory Query$AllUsers$users.fromJson(Map json) { final l$allUsers = json['allUsers']; final l$rootUser = json['rootUser']; final l$$__typename = json['__typename']; return Query$AllUsers$users( allUsers: (l$allUsers as List) .map((e) => Fragment$userFields.fromJson((e as Map))) .toList(), rootUser: l$rootUser == null ? null : Fragment$userFields.fromJson((l$rootUser as Map)), $__typename: (l$$__typename as String), ); } final List allUsers; final Fragment$userFields? rootUser; final String $__typename; Map toJson() { final _resultData = {}; final l$allUsers = allUsers; _resultData['allUsers'] = l$allUsers.map((e) => e.toJson()).toList(); final l$rootUser = rootUser; _resultData['rootUser'] = l$rootUser?.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$allUsers = allUsers; final l$rootUser = rootUser; final l$$__typename = $__typename; return Object.hashAll([ Object.hashAll(l$allUsers.map((v) => v)), l$rootUser, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$AllUsers$users) || runtimeType != other.runtimeType) { return false; } final l$allUsers = allUsers; final lOther$allUsers = other.allUsers; if (l$allUsers.length != lOther$allUsers.length) { return false; } for (int i = 0; i < l$allUsers.length; i++) { final l$allUsers$entry = l$allUsers[i]; final lOther$allUsers$entry = lOther$allUsers[i]; if (l$allUsers$entry != lOther$allUsers$entry) { return false; } } final l$rootUser = rootUser; final lOther$rootUser = other.rootUser; if (l$rootUser != lOther$rootUser) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$AllUsers$users on Query$AllUsers$users { CopyWith$Query$AllUsers$users get copyWith => CopyWith$Query$AllUsers$users( this, (i) => i, ); } abstract class CopyWith$Query$AllUsers$users { factory CopyWith$Query$AllUsers$users( Query$AllUsers$users instance, TRes Function(Query$AllUsers$users) then, ) = _CopyWithImpl$Query$AllUsers$users; factory CopyWith$Query$AllUsers$users.stub(TRes res) = _CopyWithStubImpl$Query$AllUsers$users; TRes call({ List? allUsers, Fragment$userFields? rootUser, String? $__typename, }); TRes allUsers( Iterable Function( Iterable>) _fn); CopyWith$Fragment$userFields get rootUser; } class _CopyWithImpl$Query$AllUsers$users implements CopyWith$Query$AllUsers$users { _CopyWithImpl$Query$AllUsers$users( this._instance, this._then, ); final Query$AllUsers$users _instance; final TRes Function(Query$AllUsers$users) _then; static const _undefined = {}; TRes call({ Object? allUsers = _undefined, Object? rootUser = _undefined, Object? $__typename = _undefined, }) => _then(Query$AllUsers$users( allUsers: allUsers == _undefined || allUsers == null ? _instance.allUsers : (allUsers as List), rootUser: rootUser == _undefined ? _instance.rootUser : (rootUser as Fragment$userFields?), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); TRes allUsers( Iterable Function( Iterable>) _fn) => call( allUsers: _fn(_instance.allUsers.map((e) => CopyWith$Fragment$userFields( e, (i) => i, ))).toList()); CopyWith$Fragment$userFields get rootUser { final local$rootUser = _instance.rootUser; return local$rootUser == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields( local$rootUser, (e) => call(rootUser: e)); } } class _CopyWithStubImpl$Query$AllUsers$users implements CopyWith$Query$AllUsers$users { _CopyWithStubImpl$Query$AllUsers$users(this._res); TRes _res; call({ List? allUsers, Fragment$userFields? rootUser, String? $__typename, }) => _res; allUsers(_fn) => _res; CopyWith$Fragment$userFields get rootUser => CopyWith$Fragment$userFields.stub(_res); } class Variables$Query$GetUser { factory Variables$Query$GetUser({required String username}) => Variables$Query$GetUser._({ r'username': username, }); Variables$Query$GetUser._(this._$data); factory Variables$Query$GetUser.fromJson(Map data) { final result$data = {}; final l$username = data['username']; result$data['username'] = (l$username as String); return Variables$Query$GetUser._(result$data); } Map _$data; String get username => (_$data['username'] as String); Map toJson() { final result$data = {}; final l$username = username; result$data['username'] = l$username; return result$data; } CopyWith$Variables$Query$GetUser get copyWith => CopyWith$Variables$Query$GetUser( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Query$GetUser) || runtimeType != other.runtimeType) { return false; } final l$username = username; final lOther$username = other.username; if (l$username != lOther$username) { return false; } return true; } @override int get hashCode { final l$username = username; return Object.hashAll([l$username]); } } abstract class CopyWith$Variables$Query$GetUser { factory CopyWith$Variables$Query$GetUser( Variables$Query$GetUser instance, TRes Function(Variables$Query$GetUser) then, ) = _CopyWithImpl$Variables$Query$GetUser; factory CopyWith$Variables$Query$GetUser.stub(TRes res) = _CopyWithStubImpl$Variables$Query$GetUser; TRes call({String? username}); } class _CopyWithImpl$Variables$Query$GetUser implements CopyWith$Variables$Query$GetUser { _CopyWithImpl$Variables$Query$GetUser( this._instance, this._then, ); final Variables$Query$GetUser _instance; final TRes Function(Variables$Query$GetUser) _then; static const _undefined = {}; TRes call({Object? username = _undefined}) => _then(Variables$Query$GetUser._({ ..._instance._$data, if (username != _undefined && username != null) 'username': (username as String), })); } class _CopyWithStubImpl$Variables$Query$GetUser implements CopyWith$Variables$Query$GetUser { _CopyWithStubImpl$Variables$Query$GetUser(this._res); TRes _res; call({String? username}) => _res; } class Query$GetUser { Query$GetUser({ required this.users, this.$__typename = 'Query', }); factory Query$GetUser.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Query$GetUser( users: Query$GetUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Query$GetUser$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetUser) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetUser on Query$GetUser { CopyWith$Query$GetUser get copyWith => CopyWith$Query$GetUser( this, (i) => i, ); } abstract class CopyWith$Query$GetUser { factory CopyWith$Query$GetUser( Query$GetUser instance, TRes Function(Query$GetUser) then, ) = _CopyWithImpl$Query$GetUser; factory CopyWith$Query$GetUser.stub(TRes res) = _CopyWithStubImpl$Query$GetUser; TRes call({ Query$GetUser$users? users, String? $__typename, }); CopyWith$Query$GetUser$users get users; } class _CopyWithImpl$Query$GetUser implements CopyWith$Query$GetUser { _CopyWithImpl$Query$GetUser( this._instance, this._then, ); final Query$GetUser _instance; final TRes Function(Query$GetUser) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetUser( users: users == _undefined || users == null ? _instance.users : (users as Query$GetUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Query$GetUser$users get users { final local$users = _instance.users; return CopyWith$Query$GetUser$users(local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Query$GetUser implements CopyWith$Query$GetUser { _CopyWithStubImpl$Query$GetUser(this._res); TRes _res; call({ Query$GetUser$users? users, String? $__typename, }) => _res; CopyWith$Query$GetUser$users get users => CopyWith$Query$GetUser$users.stub(_res); } const documentNodeQueryGetUser = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.query, name: NameNode(value: 'GetUser'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'username')), type: NamedTypeNode( name: NameNode(value: 'String'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'getUser'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'username'), value: VariableNode(name: NameNode(value: 'username')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), fragmentDefinitionuserFields, ]); Query$GetUser _parserFn$Query$GetUser(Map data) => Query$GetUser.fromJson(data); typedef OnQueryComplete$Query$GetUser = FutureOr Function( Map?, Query$GetUser?, ); class Options$Query$GetUser extends graphql.QueryOptions { Options$Query$GetUser({ String? operationName, required Variables$Query$GetUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetUser? typedOptimisticResult, Duration? pollInterval, graphql.Context? context, OnQueryComplete$Query$GetUser? onComplete, graphql.OnQueryError? onError, }) : onCompleteWithParsed = onComplete, super( variables: variables.toJson(), 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$GetUser(data), ), onError: onError, document: documentNodeQueryGetUser, parserFn: _parserFn$Query$GetUser, ); final OnQueryComplete$Query$GetUser? onCompleteWithParsed; @override List get properties => [ ...super.onComplete == null ? super.properties : super.properties.where((property) => property != onComplete), onCompleteWithParsed, ]; } class WatchOptions$Query$GetUser extends graphql.WatchQueryOptions { WatchOptions$Query$GetUser({ String? operationName, required Variables$Query$GetUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Query$GetUser? 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: documentNodeQueryGetUser, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Query$GetUser, ); } class FetchMoreOptions$Query$GetUser extends graphql.FetchMoreOptions { FetchMoreOptions$Query$GetUser({ required graphql.UpdateQuery updateQuery, required Variables$Query$GetUser variables, }) : super( updateQuery: updateQuery, variables: variables.toJson(), document: documentNodeQueryGetUser, ); } extension ClientExtension$Query$GetUser on graphql.GraphQLClient { Future> query$GetUser( Options$Query$GetUser options) async => await this.query(options); graphql.ObservableQuery watchQuery$GetUser( WatchOptions$Query$GetUser options) => this.watchQuery(options); void writeQuery$GetUser({ required Query$GetUser data, required Variables$Query$GetUser variables, bool broadcast = true, }) => this.writeQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetUser), variables: variables.toJson(), ), data: data.toJson(), broadcast: broadcast, ); Query$GetUser? readQuery$GetUser({ required Variables$Query$GetUser variables, bool optimistic = true, }) { final result = this.readQuery( graphql.Request( operation: graphql.Operation(document: documentNodeQueryGetUser), variables: variables.toJson(), ), optimistic: optimistic, ); return result == null ? null : Query$GetUser.fromJson(result); } } class Query$GetUser$users { Query$GetUser$users({ this.getUser, this.$__typename = 'Users', }); factory Query$GetUser$users.fromJson(Map json) { final l$getUser = json['getUser']; final l$$__typename = json['__typename']; return Query$GetUser$users( getUser: l$getUser == null ? null : Fragment$userFields.fromJson((l$getUser as Map)), $__typename: (l$$__typename as String), ); } final Fragment$userFields? getUser; final String $__typename; Map toJson() { final _resultData = {}; final l$getUser = getUser; _resultData['getUser'] = l$getUser?.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$getUser = getUser; final l$$__typename = $__typename; return Object.hashAll([ l$getUser, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Query$GetUser$users) || runtimeType != other.runtimeType) { return false; } final l$getUser = getUser; final lOther$getUser = other.getUser; if (l$getUser != lOther$getUser) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Query$GetUser$users on Query$GetUser$users { CopyWith$Query$GetUser$users get copyWith => CopyWith$Query$GetUser$users( this, (i) => i, ); } abstract class CopyWith$Query$GetUser$users { factory CopyWith$Query$GetUser$users( Query$GetUser$users instance, TRes Function(Query$GetUser$users) then, ) = _CopyWithImpl$Query$GetUser$users; factory CopyWith$Query$GetUser$users.stub(TRes res) = _CopyWithStubImpl$Query$GetUser$users; TRes call({ Fragment$userFields? getUser, String? $__typename, }); CopyWith$Fragment$userFields get getUser; } class _CopyWithImpl$Query$GetUser$users implements CopyWith$Query$GetUser$users { _CopyWithImpl$Query$GetUser$users( this._instance, this._then, ); final Query$GetUser$users _instance; final TRes Function(Query$GetUser$users) _then; static const _undefined = {}; TRes call({ Object? getUser = _undefined, Object? $__typename = _undefined, }) => _then(Query$GetUser$users( getUser: getUser == _undefined ? _instance.getUser : (getUser as Fragment$userFields?), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Fragment$userFields get getUser { final local$getUser = _instance.getUser; return local$getUser == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields(local$getUser, (e) => call(getUser: e)); } } class _CopyWithStubImpl$Query$GetUser$users implements CopyWith$Query$GetUser$users { _CopyWithStubImpl$Query$GetUser$users(this._res); TRes _res; call({ Fragment$userFields? getUser, String? $__typename, }) => _res; CopyWith$Fragment$userFields get getUser => CopyWith$Fragment$userFields.stub(_res); } class Variables$Mutation$CreateUser { factory Variables$Mutation$CreateUser( {required Input$UserMutationInput user}) => Variables$Mutation$CreateUser._({ r'user': user, }); Variables$Mutation$CreateUser._(this._$data); factory Variables$Mutation$CreateUser.fromJson(Map data) { final result$data = {}; final l$user = data['user']; result$data['user'] = Input$UserMutationInput.fromJson((l$user as Map)); return Variables$Mutation$CreateUser._(result$data); } Map _$data; Input$UserMutationInput get user => (_$data['user'] as Input$UserMutationInput); Map toJson() { final result$data = {}; final l$user = user; result$data['user'] = l$user.toJson(); return result$data; } CopyWith$Variables$Mutation$CreateUser get copyWith => CopyWith$Variables$Mutation$CreateUser( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$CreateUser) || runtimeType != other.runtimeType) { return false; } final l$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } @override int get hashCode { final l$user = user; return Object.hashAll([l$user]); } } abstract class CopyWith$Variables$Mutation$CreateUser { factory CopyWith$Variables$Mutation$CreateUser( Variables$Mutation$CreateUser instance, TRes Function(Variables$Mutation$CreateUser) then, ) = _CopyWithImpl$Variables$Mutation$CreateUser; factory CopyWith$Variables$Mutation$CreateUser.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$CreateUser; TRes call({Input$UserMutationInput? user}); } class _CopyWithImpl$Variables$Mutation$CreateUser implements CopyWith$Variables$Mutation$CreateUser { _CopyWithImpl$Variables$Mutation$CreateUser( this._instance, this._then, ); final Variables$Mutation$CreateUser _instance; final TRes Function(Variables$Mutation$CreateUser) _then; static const _undefined = {}; TRes call({Object? user = _undefined}) => _then(Variables$Mutation$CreateUser._({ ..._instance._$data, if (user != _undefined && user != null) 'user': (user as Input$UserMutationInput), })); } class _CopyWithStubImpl$Variables$Mutation$CreateUser implements CopyWith$Variables$Mutation$CreateUser { _CopyWithStubImpl$Variables$Mutation$CreateUser(this._res); TRes _res; call({Input$UserMutationInput? user}) => _res; } class Mutation$CreateUser { Mutation$CreateUser({ required this.users, this.$__typename = 'Mutation', }); factory Mutation$CreateUser.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$CreateUser( users: Mutation$CreateUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Mutation$CreateUser$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$CreateUser) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$CreateUser on Mutation$CreateUser { CopyWith$Mutation$CreateUser get copyWith => CopyWith$Mutation$CreateUser( this, (i) => i, ); } abstract class CopyWith$Mutation$CreateUser { factory CopyWith$Mutation$CreateUser( Mutation$CreateUser instance, TRes Function(Mutation$CreateUser) then, ) = _CopyWithImpl$Mutation$CreateUser; factory CopyWith$Mutation$CreateUser.stub(TRes res) = _CopyWithStubImpl$Mutation$CreateUser; TRes call({ Mutation$CreateUser$users? users, String? $__typename, }); CopyWith$Mutation$CreateUser$users get users; } class _CopyWithImpl$Mutation$CreateUser implements CopyWith$Mutation$CreateUser { _CopyWithImpl$Mutation$CreateUser( this._instance, this._then, ); final Mutation$CreateUser _instance; final TRes Function(Mutation$CreateUser) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$CreateUser( users: users == _undefined || users == null ? _instance.users : (users as Mutation$CreateUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$CreateUser$users get users { final local$users = _instance.users; return CopyWith$Mutation$CreateUser$users( local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Mutation$CreateUser implements CopyWith$Mutation$CreateUser { _CopyWithStubImpl$Mutation$CreateUser(this._res); TRes _res; call({ Mutation$CreateUser$users? users, String? $__typename, }) => _res; CopyWith$Mutation$CreateUser$users get users => CopyWith$Mutation$CreateUser$users.stub(_res); } const documentNodeMutationCreateUser = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'CreateUser'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'user')), type: NamedTypeNode( name: NameNode(value: 'UserMutationInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'createUser'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'user'), value: VariableNode(name: NameNode(value: 'user')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'user'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, fragmentDefinitionuserFields, ]); Mutation$CreateUser _parserFn$Mutation$CreateUser(Map data) => Mutation$CreateUser.fromJson(data); typedef OnMutationCompleted$Mutation$CreateUser = FutureOr Function( Map?, Mutation$CreateUser?, ); class Options$Mutation$CreateUser extends graphql.MutationOptions { Options$Mutation$CreateUser({ String? operationName, required Variables$Mutation$CreateUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$CreateUser? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$CreateUser? 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$CreateUser(data), ), update: update, onError: onError, document: documentNodeMutationCreateUser, parserFn: _parserFn$Mutation$CreateUser, ); final OnMutationCompleted$Mutation$CreateUser? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$CreateUser extends graphql.WatchQueryOptions { WatchOptions$Mutation$CreateUser({ String? operationName, required Variables$Mutation$CreateUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$CreateUser? 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: documentNodeMutationCreateUser, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$CreateUser, ); } extension ClientExtension$Mutation$CreateUser on graphql.GraphQLClient { Future> mutate$CreateUser( Options$Mutation$CreateUser options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$CreateUser( WatchOptions$Mutation$CreateUser options) => this.watchMutation(options); } class Mutation$CreateUser$users { Mutation$CreateUser$users({ required this.createUser, this.$__typename = 'UsersMutations', }); factory Mutation$CreateUser$users.fromJson(Map json) { final l$createUser = json['createUser']; final l$$__typename = json['__typename']; return Mutation$CreateUser$users( createUser: Mutation$CreateUser$users$createUser.fromJson( (l$createUser as Map)), $__typename: (l$$__typename as String), ); } final Mutation$CreateUser$users$createUser createUser; final String $__typename; Map toJson() { final _resultData = {}; final l$createUser = createUser; _resultData['createUser'] = l$createUser.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$createUser = createUser; final l$$__typename = $__typename; return Object.hashAll([ l$createUser, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$CreateUser$users) || runtimeType != other.runtimeType) { return false; } final l$createUser = createUser; final lOther$createUser = other.createUser; if (l$createUser != lOther$createUser) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$CreateUser$users on Mutation$CreateUser$users { CopyWith$Mutation$CreateUser$users get copyWith => CopyWith$Mutation$CreateUser$users( this, (i) => i, ); } abstract class CopyWith$Mutation$CreateUser$users { factory CopyWith$Mutation$CreateUser$users( Mutation$CreateUser$users instance, TRes Function(Mutation$CreateUser$users) then, ) = _CopyWithImpl$Mutation$CreateUser$users; factory CopyWith$Mutation$CreateUser$users.stub(TRes res) = _CopyWithStubImpl$Mutation$CreateUser$users; TRes call({ Mutation$CreateUser$users$createUser? createUser, String? $__typename, }); CopyWith$Mutation$CreateUser$users$createUser get createUser; } class _CopyWithImpl$Mutation$CreateUser$users implements CopyWith$Mutation$CreateUser$users { _CopyWithImpl$Mutation$CreateUser$users( this._instance, this._then, ); final Mutation$CreateUser$users _instance; final TRes Function(Mutation$CreateUser$users) _then; static const _undefined = {}; TRes call({ Object? createUser = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$CreateUser$users( createUser: createUser == _undefined || createUser == null ? _instance.createUser : (createUser as Mutation$CreateUser$users$createUser), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$CreateUser$users$createUser get createUser { final local$createUser = _instance.createUser; return CopyWith$Mutation$CreateUser$users$createUser( local$createUser, (e) => call(createUser: e)); } } class _CopyWithStubImpl$Mutation$CreateUser$users implements CopyWith$Mutation$CreateUser$users { _CopyWithStubImpl$Mutation$CreateUser$users(this._res); TRes _res; call({ Mutation$CreateUser$users$createUser? createUser, String? $__typename, }) => _res; CopyWith$Mutation$CreateUser$users$createUser get createUser => CopyWith$Mutation$CreateUser$users$createUser.stub(_res); } class Mutation$CreateUser$users$createUser implements Fragment$basicMutationReturnFields$$UserMutationReturn { Mutation$CreateUser$users$createUser({ required this.code, required this.message, required this.success, this.$__typename = 'UserMutationReturn', this.user, }); factory Mutation$CreateUser$users$createUser.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$user = json['user']; return Mutation$CreateUser$users$createUser( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), user: l$user == null ? null : Fragment$userFields.fromJson((l$user as Map)), ); } final int code; final String message; final bool success; final String $__typename; final Fragment$userFields? user; 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$user = user; _resultData['user'] = l$user?.toJson(); return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$user = user; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$user, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$CreateUser$users$createUser) || 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$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } } extension UtilityExtension$Mutation$CreateUser$users$createUser on Mutation$CreateUser$users$createUser { CopyWith$Mutation$CreateUser$users$createUser< Mutation$CreateUser$users$createUser> get copyWith => CopyWith$Mutation$CreateUser$users$createUser( this, (i) => i, ); } abstract class CopyWith$Mutation$CreateUser$users$createUser { factory CopyWith$Mutation$CreateUser$users$createUser( Mutation$CreateUser$users$createUser instance, TRes Function(Mutation$CreateUser$users$createUser) then, ) = _CopyWithImpl$Mutation$CreateUser$users$createUser; factory CopyWith$Mutation$CreateUser$users$createUser.stub(TRes res) = _CopyWithStubImpl$Mutation$CreateUser$users$createUser; TRes call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }); CopyWith$Fragment$userFields get user; } class _CopyWithImpl$Mutation$CreateUser$users$createUser implements CopyWith$Mutation$CreateUser$users$createUser { _CopyWithImpl$Mutation$CreateUser$users$createUser( this._instance, this._then, ); final Mutation$CreateUser$users$createUser _instance; final TRes Function(Mutation$CreateUser$users$createUser) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? user = _undefined, }) => _then(Mutation$CreateUser$users$createUser( 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), user: user == _undefined ? _instance.user : (user as Fragment$userFields?), )); CopyWith$Fragment$userFields get user { final local$user = _instance.user; return local$user == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields(local$user, (e) => call(user: e)); } } class _CopyWithStubImpl$Mutation$CreateUser$users$createUser implements CopyWith$Mutation$CreateUser$users$createUser { _CopyWithStubImpl$Mutation$CreateUser$users$createUser(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }) => _res; CopyWith$Fragment$userFields get user => CopyWith$Fragment$userFields.stub(_res); } class Variables$Mutation$DeleteUser { factory Variables$Mutation$DeleteUser({required String username}) => Variables$Mutation$DeleteUser._({ r'username': username, }); Variables$Mutation$DeleteUser._(this._$data); factory Variables$Mutation$DeleteUser.fromJson(Map data) { final result$data = {}; final l$username = data['username']; result$data['username'] = (l$username as String); return Variables$Mutation$DeleteUser._(result$data); } Map _$data; String get username => (_$data['username'] as String); Map toJson() { final result$data = {}; final l$username = username; result$data['username'] = l$username; return result$data; } CopyWith$Variables$Mutation$DeleteUser get copyWith => CopyWith$Variables$Mutation$DeleteUser( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$DeleteUser) || runtimeType != other.runtimeType) { return false; } final l$username = username; final lOther$username = other.username; if (l$username != lOther$username) { return false; } return true; } @override int get hashCode { final l$username = username; return Object.hashAll([l$username]); } } abstract class CopyWith$Variables$Mutation$DeleteUser { factory CopyWith$Variables$Mutation$DeleteUser( Variables$Mutation$DeleteUser instance, TRes Function(Variables$Mutation$DeleteUser) then, ) = _CopyWithImpl$Variables$Mutation$DeleteUser; factory CopyWith$Variables$Mutation$DeleteUser.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$DeleteUser; TRes call({String? username}); } class _CopyWithImpl$Variables$Mutation$DeleteUser implements CopyWith$Variables$Mutation$DeleteUser { _CopyWithImpl$Variables$Mutation$DeleteUser( this._instance, this._then, ); final Variables$Mutation$DeleteUser _instance; final TRes Function(Variables$Mutation$DeleteUser) _then; static const _undefined = {}; TRes call({Object? username = _undefined}) => _then(Variables$Mutation$DeleteUser._({ ..._instance._$data, if (username != _undefined && username != null) 'username': (username as String), })); } class _CopyWithStubImpl$Variables$Mutation$DeleteUser implements CopyWith$Variables$Mutation$DeleteUser { _CopyWithStubImpl$Variables$Mutation$DeleteUser(this._res); TRes _res; call({String? username}) => _res; } class Mutation$DeleteUser { Mutation$DeleteUser({ required this.users, this.$__typename = 'Mutation', }); factory Mutation$DeleteUser.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$DeleteUser( users: Mutation$DeleteUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Mutation$DeleteUser$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$DeleteUser) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$DeleteUser on Mutation$DeleteUser { CopyWith$Mutation$DeleteUser get copyWith => CopyWith$Mutation$DeleteUser( this, (i) => i, ); } abstract class CopyWith$Mutation$DeleteUser { factory CopyWith$Mutation$DeleteUser( Mutation$DeleteUser instance, TRes Function(Mutation$DeleteUser) then, ) = _CopyWithImpl$Mutation$DeleteUser; factory CopyWith$Mutation$DeleteUser.stub(TRes res) = _CopyWithStubImpl$Mutation$DeleteUser; TRes call({ Mutation$DeleteUser$users? users, String? $__typename, }); CopyWith$Mutation$DeleteUser$users get users; } class _CopyWithImpl$Mutation$DeleteUser implements CopyWith$Mutation$DeleteUser { _CopyWithImpl$Mutation$DeleteUser( this._instance, this._then, ); final Mutation$DeleteUser _instance; final TRes Function(Mutation$DeleteUser) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteUser( users: users == _undefined || users == null ? _instance.users : (users as Mutation$DeleteUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$DeleteUser$users get users { final local$users = _instance.users; return CopyWith$Mutation$DeleteUser$users( local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Mutation$DeleteUser implements CopyWith$Mutation$DeleteUser { _CopyWithStubImpl$Mutation$DeleteUser(this._res); TRes _res; call({ Mutation$DeleteUser$users? users, String? $__typename, }) => _res; CopyWith$Mutation$DeleteUser$users get users => CopyWith$Mutation$DeleteUser$users.stub(_res); } const documentNodeMutationDeleteUser = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'DeleteUser'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'username')), type: NamedTypeNode( name: NameNode(value: 'String'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'deleteUser'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'username'), value: VariableNode(name: NameNode(value: 'username')), ) ], 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, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, ]); Mutation$DeleteUser _parserFn$Mutation$DeleteUser(Map data) => Mutation$DeleteUser.fromJson(data); typedef OnMutationCompleted$Mutation$DeleteUser = FutureOr Function( Map?, Mutation$DeleteUser?, ); class Options$Mutation$DeleteUser extends graphql.MutationOptions { Options$Mutation$DeleteUser({ String? operationName, required Variables$Mutation$DeleteUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$DeleteUser? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$DeleteUser? 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$DeleteUser(data), ), update: update, onError: onError, document: documentNodeMutationDeleteUser, parserFn: _parserFn$Mutation$DeleteUser, ); final OnMutationCompleted$Mutation$DeleteUser? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$DeleteUser extends graphql.WatchQueryOptions { WatchOptions$Mutation$DeleteUser({ String? operationName, required Variables$Mutation$DeleteUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$DeleteUser? 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: documentNodeMutationDeleteUser, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$DeleteUser, ); } extension ClientExtension$Mutation$DeleteUser on graphql.GraphQLClient { Future> mutate$DeleteUser( Options$Mutation$DeleteUser options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$DeleteUser( WatchOptions$Mutation$DeleteUser options) => this.watchMutation(options); } class Mutation$DeleteUser$users { Mutation$DeleteUser$users({ required this.deleteUser, this.$__typename = 'UsersMutations', }); factory Mutation$DeleteUser$users.fromJson(Map json) { final l$deleteUser = json['deleteUser']; final l$$__typename = json['__typename']; return Mutation$DeleteUser$users( deleteUser: Mutation$DeleteUser$users$deleteUser.fromJson( (l$deleteUser as Map)), $__typename: (l$$__typename as String), ); } final Mutation$DeleteUser$users$deleteUser deleteUser; final String $__typename; Map toJson() { final _resultData = {}; final l$deleteUser = deleteUser; _resultData['deleteUser'] = l$deleteUser.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$deleteUser = deleteUser; final l$$__typename = $__typename; return Object.hashAll([ l$deleteUser, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$DeleteUser$users) || runtimeType != other.runtimeType) { return false; } final l$deleteUser = deleteUser; final lOther$deleteUser = other.deleteUser; if (l$deleteUser != lOther$deleteUser) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$DeleteUser$users on Mutation$DeleteUser$users { CopyWith$Mutation$DeleteUser$users get copyWith => CopyWith$Mutation$DeleteUser$users( this, (i) => i, ); } abstract class CopyWith$Mutation$DeleteUser$users { factory CopyWith$Mutation$DeleteUser$users( Mutation$DeleteUser$users instance, TRes Function(Mutation$DeleteUser$users) then, ) = _CopyWithImpl$Mutation$DeleteUser$users; factory CopyWith$Mutation$DeleteUser$users.stub(TRes res) = _CopyWithStubImpl$Mutation$DeleteUser$users; TRes call({ Mutation$DeleteUser$users$deleteUser? deleteUser, String? $__typename, }); CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser; } class _CopyWithImpl$Mutation$DeleteUser$users implements CopyWith$Mutation$DeleteUser$users { _CopyWithImpl$Mutation$DeleteUser$users( this._instance, this._then, ); final Mutation$DeleteUser$users _instance; final TRes Function(Mutation$DeleteUser$users) _then; static const _undefined = {}; TRes call({ Object? deleteUser = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteUser$users( deleteUser: deleteUser == _undefined || deleteUser == null ? _instance.deleteUser : (deleteUser as Mutation$DeleteUser$users$deleteUser), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser { final local$deleteUser = _instance.deleteUser; return CopyWith$Mutation$DeleteUser$users$deleteUser( local$deleteUser, (e) => call(deleteUser: e)); } } class _CopyWithStubImpl$Mutation$DeleteUser$users implements CopyWith$Mutation$DeleteUser$users { _CopyWithStubImpl$Mutation$DeleteUser$users(this._res); TRes _res; call({ Mutation$DeleteUser$users$deleteUser? deleteUser, String? $__typename, }) => _res; CopyWith$Mutation$DeleteUser$users$deleteUser get deleteUser => CopyWith$Mutation$DeleteUser$users$deleteUser.stub(_res); } class Mutation$DeleteUser$users$deleteUser implements Fragment$basicMutationReturnFields$$GenericMutationReturn { Mutation$DeleteUser$users$deleteUser({ required this.code, required this.message, required this.success, this.$__typename = 'GenericMutationReturn', }); factory Mutation$DeleteUser$users$deleteUser.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$DeleteUser$users$deleteUser( 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$DeleteUser$users$deleteUser) || 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$DeleteUser$users$deleteUser on Mutation$DeleteUser$users$deleteUser { CopyWith$Mutation$DeleteUser$users$deleteUser< Mutation$DeleteUser$users$deleteUser> get copyWith => CopyWith$Mutation$DeleteUser$users$deleteUser( this, (i) => i, ); } abstract class CopyWith$Mutation$DeleteUser$users$deleteUser { factory CopyWith$Mutation$DeleteUser$users$deleteUser( Mutation$DeleteUser$users$deleteUser instance, TRes Function(Mutation$DeleteUser$users$deleteUser) then, ) = _CopyWithImpl$Mutation$DeleteUser$users$deleteUser; factory CopyWith$Mutation$DeleteUser$users$deleteUser.stub(TRes res) = _CopyWithStubImpl$Mutation$DeleteUser$users$deleteUser; TRes call({ int? code, String? message, bool? success, String? $__typename, }); } class _CopyWithImpl$Mutation$DeleteUser$users$deleteUser implements CopyWith$Mutation$DeleteUser$users$deleteUser { _CopyWithImpl$Mutation$DeleteUser$users$deleteUser( this._instance, this._then, ); final Mutation$DeleteUser$users$deleteUser _instance; final TRes Function(Mutation$DeleteUser$users$deleteUser) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$DeleteUser$users$deleteUser( 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$DeleteUser$users$deleteUser implements CopyWith$Mutation$DeleteUser$users$deleteUser { _CopyWithStubImpl$Mutation$DeleteUser$users$deleteUser(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, }) => _res; } class Variables$Mutation$UpdateUser { factory Variables$Mutation$UpdateUser( {required Input$UserMutationInput user}) => Variables$Mutation$UpdateUser._({ r'user': user, }); Variables$Mutation$UpdateUser._(this._$data); factory Variables$Mutation$UpdateUser.fromJson(Map data) { final result$data = {}; final l$user = data['user']; result$data['user'] = Input$UserMutationInput.fromJson((l$user as Map)); return Variables$Mutation$UpdateUser._(result$data); } Map _$data; Input$UserMutationInput get user => (_$data['user'] as Input$UserMutationInput); Map toJson() { final result$data = {}; final l$user = user; result$data['user'] = l$user.toJson(); return result$data; } CopyWith$Variables$Mutation$UpdateUser get copyWith => CopyWith$Variables$Mutation$UpdateUser( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$UpdateUser) || runtimeType != other.runtimeType) { return false; } final l$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } @override int get hashCode { final l$user = user; return Object.hashAll([l$user]); } } abstract class CopyWith$Variables$Mutation$UpdateUser { factory CopyWith$Variables$Mutation$UpdateUser( Variables$Mutation$UpdateUser instance, TRes Function(Variables$Mutation$UpdateUser) then, ) = _CopyWithImpl$Variables$Mutation$UpdateUser; factory CopyWith$Variables$Mutation$UpdateUser.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$UpdateUser; TRes call({Input$UserMutationInput? user}); } class _CopyWithImpl$Variables$Mutation$UpdateUser implements CopyWith$Variables$Mutation$UpdateUser { _CopyWithImpl$Variables$Mutation$UpdateUser( this._instance, this._then, ); final Variables$Mutation$UpdateUser _instance; final TRes Function(Variables$Mutation$UpdateUser) _then; static const _undefined = {}; TRes call({Object? user = _undefined}) => _then(Variables$Mutation$UpdateUser._({ ..._instance._$data, if (user != _undefined && user != null) 'user': (user as Input$UserMutationInput), })); } class _CopyWithStubImpl$Variables$Mutation$UpdateUser implements CopyWith$Variables$Mutation$UpdateUser { _CopyWithStubImpl$Variables$Mutation$UpdateUser(this._res); TRes _res; call({Input$UserMutationInput? user}) => _res; } class Mutation$UpdateUser { Mutation$UpdateUser({ required this.users, this.$__typename = 'Mutation', }); factory Mutation$UpdateUser.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$UpdateUser( users: Mutation$UpdateUser$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Mutation$UpdateUser$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$UpdateUser) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$UpdateUser on Mutation$UpdateUser { CopyWith$Mutation$UpdateUser get copyWith => CopyWith$Mutation$UpdateUser( this, (i) => i, ); } abstract class CopyWith$Mutation$UpdateUser { factory CopyWith$Mutation$UpdateUser( Mutation$UpdateUser instance, TRes Function(Mutation$UpdateUser) then, ) = _CopyWithImpl$Mutation$UpdateUser; factory CopyWith$Mutation$UpdateUser.stub(TRes res) = _CopyWithStubImpl$Mutation$UpdateUser; TRes call({ Mutation$UpdateUser$users? users, String? $__typename, }); CopyWith$Mutation$UpdateUser$users get users; } class _CopyWithImpl$Mutation$UpdateUser implements CopyWith$Mutation$UpdateUser { _CopyWithImpl$Mutation$UpdateUser( this._instance, this._then, ); final Mutation$UpdateUser _instance; final TRes Function(Mutation$UpdateUser) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UpdateUser( users: users == _undefined || users == null ? _instance.users : (users as Mutation$UpdateUser$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$UpdateUser$users get users { final local$users = _instance.users; return CopyWith$Mutation$UpdateUser$users( local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Mutation$UpdateUser implements CopyWith$Mutation$UpdateUser { _CopyWithStubImpl$Mutation$UpdateUser(this._res); TRes _res; call({ Mutation$UpdateUser$users? users, String? $__typename, }) => _res; CopyWith$Mutation$UpdateUser$users get users => CopyWith$Mutation$UpdateUser$users.stub(_res); } const documentNodeMutationUpdateUser = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'UpdateUser'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'user')), type: NamedTypeNode( name: NameNode(value: 'UserMutationInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'updateUser'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'user'), value: VariableNode(name: NameNode(value: 'user')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'user'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, fragmentDefinitionuserFields, ]); Mutation$UpdateUser _parserFn$Mutation$UpdateUser(Map data) => Mutation$UpdateUser.fromJson(data); typedef OnMutationCompleted$Mutation$UpdateUser = FutureOr Function( Map?, Mutation$UpdateUser?, ); class Options$Mutation$UpdateUser extends graphql.MutationOptions { Options$Mutation$UpdateUser({ String? operationName, required Variables$Mutation$UpdateUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$UpdateUser? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$UpdateUser? 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$UpdateUser(data), ), update: update, onError: onError, document: documentNodeMutationUpdateUser, parserFn: _parserFn$Mutation$UpdateUser, ); final OnMutationCompleted$Mutation$UpdateUser? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$UpdateUser extends graphql.WatchQueryOptions { WatchOptions$Mutation$UpdateUser({ String? operationName, required Variables$Mutation$UpdateUser variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$UpdateUser? 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: documentNodeMutationUpdateUser, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$UpdateUser, ); } extension ClientExtension$Mutation$UpdateUser on graphql.GraphQLClient { Future> mutate$UpdateUser( Options$Mutation$UpdateUser options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$UpdateUser( WatchOptions$Mutation$UpdateUser options) => this.watchMutation(options); } class Mutation$UpdateUser$users { Mutation$UpdateUser$users({ required this.updateUser, this.$__typename = 'UsersMutations', }); factory Mutation$UpdateUser$users.fromJson(Map json) { final l$updateUser = json['updateUser']; final l$$__typename = json['__typename']; return Mutation$UpdateUser$users( updateUser: Mutation$UpdateUser$users$updateUser.fromJson( (l$updateUser as Map)), $__typename: (l$$__typename as String), ); } final Mutation$UpdateUser$users$updateUser updateUser; final String $__typename; Map toJson() { final _resultData = {}; final l$updateUser = updateUser; _resultData['updateUser'] = l$updateUser.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$updateUser = updateUser; final l$$__typename = $__typename; return Object.hashAll([ l$updateUser, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$UpdateUser$users) || runtimeType != other.runtimeType) { return false; } final l$updateUser = updateUser; final lOther$updateUser = other.updateUser; if (l$updateUser != lOther$updateUser) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$UpdateUser$users on Mutation$UpdateUser$users { CopyWith$Mutation$UpdateUser$users get copyWith => CopyWith$Mutation$UpdateUser$users( this, (i) => i, ); } abstract class CopyWith$Mutation$UpdateUser$users { factory CopyWith$Mutation$UpdateUser$users( Mutation$UpdateUser$users instance, TRes Function(Mutation$UpdateUser$users) then, ) = _CopyWithImpl$Mutation$UpdateUser$users; factory CopyWith$Mutation$UpdateUser$users.stub(TRes res) = _CopyWithStubImpl$Mutation$UpdateUser$users; TRes call({ Mutation$UpdateUser$users$updateUser? updateUser, String? $__typename, }); CopyWith$Mutation$UpdateUser$users$updateUser get updateUser; } class _CopyWithImpl$Mutation$UpdateUser$users implements CopyWith$Mutation$UpdateUser$users { _CopyWithImpl$Mutation$UpdateUser$users( this._instance, this._then, ); final Mutation$UpdateUser$users _instance; final TRes Function(Mutation$UpdateUser$users) _then; static const _undefined = {}; TRes call({ Object? updateUser = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$UpdateUser$users( updateUser: updateUser == _undefined || updateUser == null ? _instance.updateUser : (updateUser as Mutation$UpdateUser$users$updateUser), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$UpdateUser$users$updateUser get updateUser { final local$updateUser = _instance.updateUser; return CopyWith$Mutation$UpdateUser$users$updateUser( local$updateUser, (e) => call(updateUser: e)); } } class _CopyWithStubImpl$Mutation$UpdateUser$users implements CopyWith$Mutation$UpdateUser$users { _CopyWithStubImpl$Mutation$UpdateUser$users(this._res); TRes _res; call({ Mutation$UpdateUser$users$updateUser? updateUser, String? $__typename, }) => _res; CopyWith$Mutation$UpdateUser$users$updateUser get updateUser => CopyWith$Mutation$UpdateUser$users$updateUser.stub(_res); } class Mutation$UpdateUser$users$updateUser implements Fragment$basicMutationReturnFields$$UserMutationReturn { Mutation$UpdateUser$users$updateUser({ required this.code, required this.message, required this.success, this.$__typename = 'UserMutationReturn', this.user, }); factory Mutation$UpdateUser$users$updateUser.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$user = json['user']; return Mutation$UpdateUser$users$updateUser( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), user: l$user == null ? null : Fragment$userFields.fromJson((l$user as Map)), ); } final int code; final String message; final bool success; final String $__typename; final Fragment$userFields? user; 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$user = user; _resultData['user'] = l$user?.toJson(); return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$user = user; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$user, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$UpdateUser$users$updateUser) || 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$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } } extension UtilityExtension$Mutation$UpdateUser$users$updateUser on Mutation$UpdateUser$users$updateUser { CopyWith$Mutation$UpdateUser$users$updateUser< Mutation$UpdateUser$users$updateUser> get copyWith => CopyWith$Mutation$UpdateUser$users$updateUser( this, (i) => i, ); } abstract class CopyWith$Mutation$UpdateUser$users$updateUser { factory CopyWith$Mutation$UpdateUser$users$updateUser( Mutation$UpdateUser$users$updateUser instance, TRes Function(Mutation$UpdateUser$users$updateUser) then, ) = _CopyWithImpl$Mutation$UpdateUser$users$updateUser; factory CopyWith$Mutation$UpdateUser$users$updateUser.stub(TRes res) = _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser; TRes call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }); CopyWith$Fragment$userFields get user; } class _CopyWithImpl$Mutation$UpdateUser$users$updateUser implements CopyWith$Mutation$UpdateUser$users$updateUser { _CopyWithImpl$Mutation$UpdateUser$users$updateUser( this._instance, this._then, ); final Mutation$UpdateUser$users$updateUser _instance; final TRes Function(Mutation$UpdateUser$users$updateUser) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? user = _undefined, }) => _then(Mutation$UpdateUser$users$updateUser( 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), user: user == _undefined ? _instance.user : (user as Fragment$userFields?), )); CopyWith$Fragment$userFields get user { final local$user = _instance.user; return local$user == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields(local$user, (e) => call(user: e)); } } class _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser implements CopyWith$Mutation$UpdateUser$users$updateUser { _CopyWithStubImpl$Mutation$UpdateUser$users$updateUser(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }) => _res; CopyWith$Fragment$userFields get user => CopyWith$Fragment$userFields.stub(_res); } class Variables$Mutation$AddSshKey { factory Variables$Mutation$AddSshKey( {required Input$SshMutationInput sshInput}) => Variables$Mutation$AddSshKey._({ r'sshInput': sshInput, }); Variables$Mutation$AddSshKey._(this._$data); factory Variables$Mutation$AddSshKey.fromJson(Map data) { final result$data = {}; final l$sshInput = data['sshInput']; result$data['sshInput'] = Input$SshMutationInput.fromJson((l$sshInput as Map)); return Variables$Mutation$AddSshKey._(result$data); } Map _$data; Input$SshMutationInput get sshInput => (_$data['sshInput'] as Input$SshMutationInput); Map toJson() { final result$data = {}; final l$sshInput = sshInput; result$data['sshInput'] = l$sshInput.toJson(); return result$data; } CopyWith$Variables$Mutation$AddSshKey get copyWith => CopyWith$Variables$Mutation$AddSshKey( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$AddSshKey) || runtimeType != other.runtimeType) { return false; } final l$sshInput = sshInput; final lOther$sshInput = other.sshInput; if (l$sshInput != lOther$sshInput) { return false; } return true; } @override int get hashCode { final l$sshInput = sshInput; return Object.hashAll([l$sshInput]); } } abstract class CopyWith$Variables$Mutation$AddSshKey { factory CopyWith$Variables$Mutation$AddSshKey( Variables$Mutation$AddSshKey instance, TRes Function(Variables$Mutation$AddSshKey) then, ) = _CopyWithImpl$Variables$Mutation$AddSshKey; factory CopyWith$Variables$Mutation$AddSshKey.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$AddSshKey; TRes call({Input$SshMutationInput? sshInput}); } class _CopyWithImpl$Variables$Mutation$AddSshKey implements CopyWith$Variables$Mutation$AddSshKey { _CopyWithImpl$Variables$Mutation$AddSshKey( this._instance, this._then, ); final Variables$Mutation$AddSshKey _instance; final TRes Function(Variables$Mutation$AddSshKey) _then; static const _undefined = {}; TRes call({Object? sshInput = _undefined}) => _then(Variables$Mutation$AddSshKey._({ ..._instance._$data, if (sshInput != _undefined && sshInput != null) 'sshInput': (sshInput as Input$SshMutationInput), })); } class _CopyWithStubImpl$Variables$Mutation$AddSshKey implements CopyWith$Variables$Mutation$AddSshKey { _CopyWithStubImpl$Variables$Mutation$AddSshKey(this._res); TRes _res; call({Input$SshMutationInput? sshInput}) => _res; } class Mutation$AddSshKey { Mutation$AddSshKey({ required this.users, this.$__typename = 'Mutation', }); factory Mutation$AddSshKey.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$AddSshKey( users: Mutation$AddSshKey$users.fromJson((l$users as Map)), $__typename: (l$$__typename as String), ); } final Mutation$AddSshKey$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$AddSshKey) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$AddSshKey on Mutation$AddSshKey { CopyWith$Mutation$AddSshKey get copyWith => CopyWith$Mutation$AddSshKey( this, (i) => i, ); } abstract class CopyWith$Mutation$AddSshKey { factory CopyWith$Mutation$AddSshKey( Mutation$AddSshKey instance, TRes Function(Mutation$AddSshKey) then, ) = _CopyWithImpl$Mutation$AddSshKey; factory CopyWith$Mutation$AddSshKey.stub(TRes res) = _CopyWithStubImpl$Mutation$AddSshKey; TRes call({ Mutation$AddSshKey$users? users, String? $__typename, }); CopyWith$Mutation$AddSshKey$users get users; } class _CopyWithImpl$Mutation$AddSshKey implements CopyWith$Mutation$AddSshKey { _CopyWithImpl$Mutation$AddSshKey( this._instance, this._then, ); final Mutation$AddSshKey _instance; final TRes Function(Mutation$AddSshKey) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$AddSshKey( users: users == _undefined || users == null ? _instance.users : (users as Mutation$AddSshKey$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$AddSshKey$users get users { final local$users = _instance.users; return CopyWith$Mutation$AddSshKey$users( local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Mutation$AddSshKey implements CopyWith$Mutation$AddSshKey { _CopyWithStubImpl$Mutation$AddSshKey(this._res); TRes _res; call({ Mutation$AddSshKey$users? users, String? $__typename, }) => _res; CopyWith$Mutation$AddSshKey$users get users => CopyWith$Mutation$AddSshKey$users.stub(_res); } const documentNodeMutationAddSshKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'AddSshKey'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'sshInput')), type: NamedTypeNode( name: NameNode(value: 'SshMutationInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'addSshKey'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'sshInput'), value: VariableNode(name: NameNode(value: 'sshInput')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'user'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, fragmentDefinitionuserFields, ]); Mutation$AddSshKey _parserFn$Mutation$AddSshKey(Map data) => Mutation$AddSshKey.fromJson(data); typedef OnMutationCompleted$Mutation$AddSshKey = FutureOr Function( Map?, Mutation$AddSshKey?, ); class Options$Mutation$AddSshKey extends graphql.MutationOptions { Options$Mutation$AddSshKey({ String? operationName, required Variables$Mutation$AddSshKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$AddSshKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$AddSshKey? 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$AddSshKey(data), ), update: update, onError: onError, document: documentNodeMutationAddSshKey, parserFn: _parserFn$Mutation$AddSshKey, ); final OnMutationCompleted$Mutation$AddSshKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$AddSshKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$AddSshKey({ String? operationName, required Variables$Mutation$AddSshKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$AddSshKey? 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: documentNodeMutationAddSshKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$AddSshKey, ); } extension ClientExtension$Mutation$AddSshKey on graphql.GraphQLClient { Future> mutate$AddSshKey( Options$Mutation$AddSshKey options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$AddSshKey( WatchOptions$Mutation$AddSshKey options) => this.watchMutation(options); } class Mutation$AddSshKey$users { Mutation$AddSshKey$users({ required this.addSshKey, this.$__typename = 'UsersMutations', }); factory Mutation$AddSshKey$users.fromJson(Map json) { final l$addSshKey = json['addSshKey']; final l$$__typename = json['__typename']; return Mutation$AddSshKey$users( addSshKey: Mutation$AddSshKey$users$addSshKey.fromJson( (l$addSshKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$AddSshKey$users$addSshKey addSshKey; final String $__typename; Map toJson() { final _resultData = {}; final l$addSshKey = addSshKey; _resultData['addSshKey'] = l$addSshKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$addSshKey = addSshKey; final l$$__typename = $__typename; return Object.hashAll([ l$addSshKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$AddSshKey$users) || runtimeType != other.runtimeType) { return false; } final l$addSshKey = addSshKey; final lOther$addSshKey = other.addSshKey; if (l$addSshKey != lOther$addSshKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$AddSshKey$users on Mutation$AddSshKey$users { CopyWith$Mutation$AddSshKey$users get copyWith => CopyWith$Mutation$AddSshKey$users( this, (i) => i, ); } abstract class CopyWith$Mutation$AddSshKey$users { factory CopyWith$Mutation$AddSshKey$users( Mutation$AddSshKey$users instance, TRes Function(Mutation$AddSshKey$users) then, ) = _CopyWithImpl$Mutation$AddSshKey$users; factory CopyWith$Mutation$AddSshKey$users.stub(TRes res) = _CopyWithStubImpl$Mutation$AddSshKey$users; TRes call({ Mutation$AddSshKey$users$addSshKey? addSshKey, String? $__typename, }); CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey; } class _CopyWithImpl$Mutation$AddSshKey$users implements CopyWith$Mutation$AddSshKey$users { _CopyWithImpl$Mutation$AddSshKey$users( this._instance, this._then, ); final Mutation$AddSshKey$users _instance; final TRes Function(Mutation$AddSshKey$users) _then; static const _undefined = {}; TRes call({ Object? addSshKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$AddSshKey$users( addSshKey: addSshKey == _undefined || addSshKey == null ? _instance.addSshKey : (addSshKey as Mutation$AddSshKey$users$addSshKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey { final local$addSshKey = _instance.addSshKey; return CopyWith$Mutation$AddSshKey$users$addSshKey( local$addSshKey, (e) => call(addSshKey: e)); } } class _CopyWithStubImpl$Mutation$AddSshKey$users implements CopyWith$Mutation$AddSshKey$users { _CopyWithStubImpl$Mutation$AddSshKey$users(this._res); TRes _res; call({ Mutation$AddSshKey$users$addSshKey? addSshKey, String? $__typename, }) => _res; CopyWith$Mutation$AddSshKey$users$addSshKey get addSshKey => CopyWith$Mutation$AddSshKey$users$addSshKey.stub(_res); } class Mutation$AddSshKey$users$addSshKey implements Fragment$basicMutationReturnFields$$UserMutationReturn { Mutation$AddSshKey$users$addSshKey({ required this.code, required this.message, required this.success, this.$__typename = 'UserMutationReturn', this.user, }); factory Mutation$AddSshKey$users$addSshKey.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$user = json['user']; return Mutation$AddSshKey$users$addSshKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), user: l$user == null ? null : Fragment$userFields.fromJson((l$user as Map)), ); } final int code; final String message; final bool success; final String $__typename; final Fragment$userFields? user; 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$user = user; _resultData['user'] = l$user?.toJson(); return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$user = user; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$user, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$AddSshKey$users$addSshKey) || 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$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } } extension UtilityExtension$Mutation$AddSshKey$users$addSshKey on Mutation$AddSshKey$users$addSshKey { CopyWith$Mutation$AddSshKey$users$addSshKey< Mutation$AddSshKey$users$addSshKey> get copyWith => CopyWith$Mutation$AddSshKey$users$addSshKey( this, (i) => i, ); } abstract class CopyWith$Mutation$AddSshKey$users$addSshKey { factory CopyWith$Mutation$AddSshKey$users$addSshKey( Mutation$AddSshKey$users$addSshKey instance, TRes Function(Mutation$AddSshKey$users$addSshKey) then, ) = _CopyWithImpl$Mutation$AddSshKey$users$addSshKey; factory CopyWith$Mutation$AddSshKey$users$addSshKey.stub(TRes res) = _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey; TRes call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }); CopyWith$Fragment$userFields get user; } class _CopyWithImpl$Mutation$AddSshKey$users$addSshKey implements CopyWith$Mutation$AddSshKey$users$addSshKey { _CopyWithImpl$Mutation$AddSshKey$users$addSshKey( this._instance, this._then, ); final Mutation$AddSshKey$users$addSshKey _instance; final TRes Function(Mutation$AddSshKey$users$addSshKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? user = _undefined, }) => _then(Mutation$AddSshKey$users$addSshKey( 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), user: user == _undefined ? _instance.user : (user as Fragment$userFields?), )); CopyWith$Fragment$userFields get user { final local$user = _instance.user; return local$user == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields(local$user, (e) => call(user: e)); } } class _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey implements CopyWith$Mutation$AddSshKey$users$addSshKey { _CopyWithStubImpl$Mutation$AddSshKey$users$addSshKey(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }) => _res; CopyWith$Fragment$userFields get user => CopyWith$Fragment$userFields.stub(_res); } class Variables$Mutation$RemoveSshKey { factory Variables$Mutation$RemoveSshKey( {required Input$SshMutationInput sshInput}) => Variables$Mutation$RemoveSshKey._({ r'sshInput': sshInput, }); Variables$Mutation$RemoveSshKey._(this._$data); factory Variables$Mutation$RemoveSshKey.fromJson(Map data) { final result$data = {}; final l$sshInput = data['sshInput']; result$data['sshInput'] = Input$SshMutationInput.fromJson((l$sshInput as Map)); return Variables$Mutation$RemoveSshKey._(result$data); } Map _$data; Input$SshMutationInput get sshInput => (_$data['sshInput'] as Input$SshMutationInput); Map toJson() { final result$data = {}; final l$sshInput = sshInput; result$data['sshInput'] = l$sshInput.toJson(); return result$data; } CopyWith$Variables$Mutation$RemoveSshKey get copyWith => CopyWith$Variables$Mutation$RemoveSshKey( this, (i) => i, ); @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Variables$Mutation$RemoveSshKey) || runtimeType != other.runtimeType) { return false; } final l$sshInput = sshInput; final lOther$sshInput = other.sshInput; if (l$sshInput != lOther$sshInput) { return false; } return true; } @override int get hashCode { final l$sshInput = sshInput; return Object.hashAll([l$sshInput]); } } abstract class CopyWith$Variables$Mutation$RemoveSshKey { factory CopyWith$Variables$Mutation$RemoveSshKey( Variables$Mutation$RemoveSshKey instance, TRes Function(Variables$Mutation$RemoveSshKey) then, ) = _CopyWithImpl$Variables$Mutation$RemoveSshKey; factory CopyWith$Variables$Mutation$RemoveSshKey.stub(TRes res) = _CopyWithStubImpl$Variables$Mutation$RemoveSshKey; TRes call({Input$SshMutationInput? sshInput}); } class _CopyWithImpl$Variables$Mutation$RemoveSshKey implements CopyWith$Variables$Mutation$RemoveSshKey { _CopyWithImpl$Variables$Mutation$RemoveSshKey( this._instance, this._then, ); final Variables$Mutation$RemoveSshKey _instance; final TRes Function(Variables$Mutation$RemoveSshKey) _then; static const _undefined = {}; TRes call({Object? sshInput = _undefined}) => _then(Variables$Mutation$RemoveSshKey._({ ..._instance._$data, if (sshInput != _undefined && sshInput != null) 'sshInput': (sshInput as Input$SshMutationInput), })); } class _CopyWithStubImpl$Variables$Mutation$RemoveSshKey implements CopyWith$Variables$Mutation$RemoveSshKey { _CopyWithStubImpl$Variables$Mutation$RemoveSshKey(this._res); TRes _res; call({Input$SshMutationInput? sshInput}) => _res; } class Mutation$RemoveSshKey { Mutation$RemoveSshKey({ required this.users, this.$__typename = 'Mutation', }); factory Mutation$RemoveSshKey.fromJson(Map json) { final l$users = json['users']; final l$$__typename = json['__typename']; return Mutation$RemoveSshKey( users: Mutation$RemoveSshKey$users.fromJson( (l$users as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RemoveSshKey$users users; final String $__typename; Map toJson() { final _resultData = {}; final l$users = users; _resultData['users'] = l$users.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$users = users; final l$$__typename = $__typename; return Object.hashAll([ l$users, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RemoveSshKey) || runtimeType != other.runtimeType) { return false; } final l$users = users; final lOther$users = other.users; if (l$users != lOther$users) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RemoveSshKey on Mutation$RemoveSshKey { CopyWith$Mutation$RemoveSshKey get copyWith => CopyWith$Mutation$RemoveSshKey( this, (i) => i, ); } abstract class CopyWith$Mutation$RemoveSshKey { factory CopyWith$Mutation$RemoveSshKey( Mutation$RemoveSshKey instance, TRes Function(Mutation$RemoveSshKey) then, ) = _CopyWithImpl$Mutation$RemoveSshKey; factory CopyWith$Mutation$RemoveSshKey.stub(TRes res) = _CopyWithStubImpl$Mutation$RemoveSshKey; TRes call({ Mutation$RemoveSshKey$users? users, String? $__typename, }); CopyWith$Mutation$RemoveSshKey$users get users; } class _CopyWithImpl$Mutation$RemoveSshKey implements CopyWith$Mutation$RemoveSshKey { _CopyWithImpl$Mutation$RemoveSshKey( this._instance, this._then, ); final Mutation$RemoveSshKey _instance; final TRes Function(Mutation$RemoveSshKey) _then; static const _undefined = {}; TRes call({ Object? users = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveSshKey( users: users == _undefined || users == null ? _instance.users : (users as Mutation$RemoveSshKey$users), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RemoveSshKey$users get users { final local$users = _instance.users; return CopyWith$Mutation$RemoveSshKey$users( local$users, (e) => call(users: e)); } } class _CopyWithStubImpl$Mutation$RemoveSshKey implements CopyWith$Mutation$RemoveSshKey { _CopyWithStubImpl$Mutation$RemoveSshKey(this._res); TRes _res; call({ Mutation$RemoveSshKey$users? users, String? $__typename, }) => _res; CopyWith$Mutation$RemoveSshKey$users get users => CopyWith$Mutation$RemoveSshKey$users.stub(_res); } const documentNodeMutationRemoveSshKey = DocumentNode(definitions: [ OperationDefinitionNode( type: OperationType.mutation, name: NameNode(value: 'RemoveSshKey'), variableDefinitions: [ VariableDefinitionNode( variable: VariableNode(name: NameNode(value: 'sshInput')), type: NamedTypeNode( name: NameNode(value: 'SshMutationInput'), isNonNull: true, ), defaultValue: DefaultValueNode(value: null), directives: [], ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'users'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FieldNode( name: NameNode(value: 'removeSshKey'), alias: null, arguments: [ ArgumentNode( name: NameNode(value: 'sshInput'), value: VariableNode(name: NameNode(value: 'sshInput')), ) ], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'basicMutationReturnFields'), directives: [], ), FieldNode( name: NameNode(value: 'user'), alias: null, arguments: [], directives: [], selectionSet: SelectionSetNode(selections: [ FragmentSpreadNode( name: NameNode(value: 'userFields'), directives: [], ), 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, ), ]), ), FieldNode( name: NameNode(value: '__typename'), alias: null, arguments: [], directives: [], selectionSet: null, ), ]), ), fragmentDefinitionbasicMutationReturnFields, fragmentDefinitionuserFields, ]); Mutation$RemoveSshKey _parserFn$Mutation$RemoveSshKey( Map data) => Mutation$RemoveSshKey.fromJson(data); typedef OnMutationCompleted$Mutation$RemoveSshKey = FutureOr Function( Map?, Mutation$RemoveSshKey?, ); class Options$Mutation$RemoveSshKey extends graphql.MutationOptions { Options$Mutation$RemoveSshKey({ String? operationName, required Variables$Mutation$RemoveSshKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RemoveSshKey? typedOptimisticResult, graphql.Context? context, OnMutationCompleted$Mutation$RemoveSshKey? 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$RemoveSshKey(data), ), update: update, onError: onError, document: documentNodeMutationRemoveSshKey, parserFn: _parserFn$Mutation$RemoveSshKey, ); final OnMutationCompleted$Mutation$RemoveSshKey? onCompletedWithParsed; @override List get properties => [ ...super.onCompleted == null ? super.properties : super.properties.where((property) => property != onCompleted), onCompletedWithParsed, ]; } class WatchOptions$Mutation$RemoveSshKey extends graphql.WatchQueryOptions { WatchOptions$Mutation$RemoveSshKey({ String? operationName, required Variables$Mutation$RemoveSshKey variables, graphql.FetchPolicy? fetchPolicy, graphql.ErrorPolicy? errorPolicy, graphql.CacheRereadPolicy? cacheRereadPolicy, Object? optimisticResult, Mutation$RemoveSshKey? 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: documentNodeMutationRemoveSshKey, pollInterval: pollInterval, eagerlyFetchResults: eagerlyFetchResults, carryForwardDataOnException: carryForwardDataOnException, fetchResults: fetchResults, parserFn: _parserFn$Mutation$RemoveSshKey, ); } extension ClientExtension$Mutation$RemoveSshKey on graphql.GraphQLClient { Future> mutate$RemoveSshKey( Options$Mutation$RemoveSshKey options) async => await this.mutate(options); graphql.ObservableQuery watchMutation$RemoveSshKey( WatchOptions$Mutation$RemoveSshKey options) => this.watchMutation(options); } class Mutation$RemoveSshKey$users { Mutation$RemoveSshKey$users({ required this.removeSshKey, this.$__typename = 'UsersMutations', }); factory Mutation$RemoveSshKey$users.fromJson(Map json) { final l$removeSshKey = json['removeSshKey']; final l$$__typename = json['__typename']; return Mutation$RemoveSshKey$users( removeSshKey: Mutation$RemoveSshKey$users$removeSshKey.fromJson( (l$removeSshKey as Map)), $__typename: (l$$__typename as String), ); } final Mutation$RemoveSshKey$users$removeSshKey removeSshKey; final String $__typename; Map toJson() { final _resultData = {}; final l$removeSshKey = removeSshKey; _resultData['removeSshKey'] = l$removeSshKey.toJson(); final l$$__typename = $__typename; _resultData['__typename'] = l$$__typename; return _resultData; } @override int get hashCode { final l$removeSshKey = removeSshKey; final l$$__typename = $__typename; return Object.hashAll([ l$removeSshKey, l$$__typename, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RemoveSshKey$users) || runtimeType != other.runtimeType) { return false; } final l$removeSshKey = removeSshKey; final lOther$removeSshKey = other.removeSshKey; if (l$removeSshKey != lOther$removeSshKey) { return false; } final l$$__typename = $__typename; final lOther$$__typename = other.$__typename; if (l$$__typename != lOther$$__typename) { return false; } return true; } } extension UtilityExtension$Mutation$RemoveSshKey$users on Mutation$RemoveSshKey$users { CopyWith$Mutation$RemoveSshKey$users get copyWith => CopyWith$Mutation$RemoveSshKey$users( this, (i) => i, ); } abstract class CopyWith$Mutation$RemoveSshKey$users { factory CopyWith$Mutation$RemoveSshKey$users( Mutation$RemoveSshKey$users instance, TRes Function(Mutation$RemoveSshKey$users) then, ) = _CopyWithImpl$Mutation$RemoveSshKey$users; factory CopyWith$Mutation$RemoveSshKey$users.stub(TRes res) = _CopyWithStubImpl$Mutation$RemoveSshKey$users; TRes call({ Mutation$RemoveSshKey$users$removeSshKey? removeSshKey, String? $__typename, }); CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey; } class _CopyWithImpl$Mutation$RemoveSshKey$users implements CopyWith$Mutation$RemoveSshKey$users { _CopyWithImpl$Mutation$RemoveSshKey$users( this._instance, this._then, ); final Mutation$RemoveSshKey$users _instance; final TRes Function(Mutation$RemoveSshKey$users) _then; static const _undefined = {}; TRes call({ Object? removeSshKey = _undefined, Object? $__typename = _undefined, }) => _then(Mutation$RemoveSshKey$users( removeSshKey: removeSshKey == _undefined || removeSshKey == null ? _instance.removeSshKey : (removeSshKey as Mutation$RemoveSshKey$users$removeSshKey), $__typename: $__typename == _undefined || $__typename == null ? _instance.$__typename : ($__typename as String), )); CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey { final local$removeSshKey = _instance.removeSshKey; return CopyWith$Mutation$RemoveSshKey$users$removeSshKey( local$removeSshKey, (e) => call(removeSshKey: e)); } } class _CopyWithStubImpl$Mutation$RemoveSshKey$users implements CopyWith$Mutation$RemoveSshKey$users { _CopyWithStubImpl$Mutation$RemoveSshKey$users(this._res); TRes _res; call({ Mutation$RemoveSshKey$users$removeSshKey? removeSshKey, String? $__typename, }) => _res; CopyWith$Mutation$RemoveSshKey$users$removeSshKey get removeSshKey => CopyWith$Mutation$RemoveSshKey$users$removeSshKey.stub(_res); } class Mutation$RemoveSshKey$users$removeSshKey implements Fragment$basicMutationReturnFields$$UserMutationReturn { Mutation$RemoveSshKey$users$removeSshKey({ required this.code, required this.message, required this.success, this.$__typename = 'UserMutationReturn', this.user, }); factory Mutation$RemoveSshKey$users$removeSshKey.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$user = json['user']; return Mutation$RemoveSshKey$users$removeSshKey( code: (l$code as int), message: (l$message as String), success: (l$success as bool), $__typename: (l$$__typename as String), user: l$user == null ? null : Fragment$userFields.fromJson((l$user as Map)), ); } final int code; final String message; final bool success; final String $__typename; final Fragment$userFields? user; 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$user = user; _resultData['user'] = l$user?.toJson(); return _resultData; } @override int get hashCode { final l$code = code; final l$message = message; final l$success = success; final l$$__typename = $__typename; final l$user = user; return Object.hashAll([ l$code, l$message, l$success, l$$__typename, l$user, ]); } @override bool operator ==(Object other) { if (identical(this, other)) { return true; } if (!(other is Mutation$RemoveSshKey$users$removeSshKey) || 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$user = user; final lOther$user = other.user; if (l$user != lOther$user) { return false; } return true; } } extension UtilityExtension$Mutation$RemoveSshKey$users$removeSshKey on Mutation$RemoveSshKey$users$removeSshKey { CopyWith$Mutation$RemoveSshKey$users$removeSshKey< Mutation$RemoveSshKey$users$removeSshKey> get copyWith => CopyWith$Mutation$RemoveSshKey$users$removeSshKey( this, (i) => i, ); } abstract class CopyWith$Mutation$RemoveSshKey$users$removeSshKey { factory CopyWith$Mutation$RemoveSshKey$users$removeSshKey( Mutation$RemoveSshKey$users$removeSshKey instance, TRes Function(Mutation$RemoveSshKey$users$removeSshKey) then, ) = _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey; factory CopyWith$Mutation$RemoveSshKey$users$removeSshKey.stub(TRes res) = _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey; TRes call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }); CopyWith$Fragment$userFields get user; } class _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey implements CopyWith$Mutation$RemoveSshKey$users$removeSshKey { _CopyWithImpl$Mutation$RemoveSshKey$users$removeSshKey( this._instance, this._then, ); final Mutation$RemoveSshKey$users$removeSshKey _instance; final TRes Function(Mutation$RemoveSshKey$users$removeSshKey) _then; static const _undefined = {}; TRes call({ Object? code = _undefined, Object? message = _undefined, Object? success = _undefined, Object? $__typename = _undefined, Object? user = _undefined, }) => _then(Mutation$RemoveSshKey$users$removeSshKey( 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), user: user == _undefined ? _instance.user : (user as Fragment$userFields?), )); CopyWith$Fragment$userFields get user { final local$user = _instance.user; return local$user == null ? CopyWith$Fragment$userFields.stub(_then(_instance)) : CopyWith$Fragment$userFields(local$user, (e) => call(user: e)); } } class _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey implements CopyWith$Mutation$RemoveSshKey$users$removeSshKey { _CopyWithStubImpl$Mutation$RemoveSshKey$users$removeSshKey(this._res); TRes _res; call({ int? code, String? message, bool? success, String? $__typename, Fragment$userFields? user, }) => _res; CopyWith$Fragment$userFields get user => CopyWith$Fragment$userFields.stub(_res); }