selfprivacy.org.app/lib/logic/api_maps/graphql_maps/schema/server_api.graphql.dart

7091 lines
251 KiB
Dart

import 'dart:async';
import 'package:gql/ast.dart';
import 'package:graphql/client.dart' as graphql;
import 'package:json_annotation/json_annotation.dart';
import 'package:selfprivacy/utils/scalars.dart';
import 'schema.graphql.dart';
import 'services.graphql.dart';
part 'server_api.graphql.g.dart';
@JsonSerializable(explicitToJson: true)
class Fragment$basicMutationReturnFields {
Fragment$basicMutationReturnFields(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Fragment$basicMutationReturnFields.fromJson(
Map<String, dynamic> json) =>
_$Fragment$basicMutationReturnFieldsFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Fragment$basicMutationReturnFieldsToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Fragment$basicMutationReturnFields) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Fragment$basicMutationReturnFields
on Fragment$basicMutationReturnFields {
CopyWith$Fragment$basicMutationReturnFields<
Fragment$basicMutationReturnFields>
get copyWith =>
CopyWith$Fragment$basicMutationReturnFields(this, (i) => i);
}
abstract class CopyWith$Fragment$basicMutationReturnFields<TRes> {
factory CopyWith$Fragment$basicMutationReturnFields(
Fragment$basicMutationReturnFields instance,
TRes Function(Fragment$basicMutationReturnFields) then) =
_CopyWithImpl$Fragment$basicMutationReturnFields;
factory CopyWith$Fragment$basicMutationReturnFields.stub(TRes res) =
_CopyWithStubImpl$Fragment$basicMutationReturnFields;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Fragment$basicMutationReturnFields<TRes>
implements CopyWith$Fragment$basicMutationReturnFields<TRes> {
_CopyWithImpl$Fragment$basicMutationReturnFields(this._instance, this._then);
final Fragment$basicMutationReturnFields _instance;
final TRes Function(Fragment$basicMutationReturnFields) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Fragment$basicMutationReturnFields(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Fragment$basicMutationReturnFields<TRes>
implements CopyWith$Fragment$basicMutationReturnFields<TRes> {
_CopyWithStubImpl$Fragment$basicMutationReturnFields(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
const fragmentDefinitionbasicMutationReturnFields = FragmentDefinitionNode(
name: NameNode(value: 'basicMutationReturnFields'),
typeCondition: TypeConditionNode(
on: NamedTypeNode(
name: NameNode(value: 'MutationReturnInterface'),
isNonNull: false)),
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'code'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'message'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'success'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
]));
const documentNodeFragmentbasicMutationReturnFields =
DocumentNode(definitions: [
fragmentDefinitionbasicMutationReturnFields,
]);
extension ClientExtension$Fragment$basicMutationReturnFields
on graphql.GraphQLClient {
void writeFragment$basicMutationReturnFields(
{required Fragment$basicMutationReturnFields data,
required Map<String, dynamic> idFields,
bool broadcast = true}) =>
this.writeFragment(
graphql.FragmentRequest(
idFields: idFields,
fragment: const graphql.Fragment(
fragmentName: 'basicMutationReturnFields',
document: documentNodeFragmentbasicMutationReturnFields)),
data: data.toJson(),
broadcast: broadcast);
Fragment$basicMutationReturnFields? readFragment$basicMutationReturnFields(
{required Map<String, dynamic> idFields, bool optimistic = true}) {
final result = this.readFragment(
graphql.FragmentRequest(
idFields: idFields,
fragment: const graphql.Fragment(
fragmentName: 'basicMutationReturnFields',
document: documentNodeFragmentbasicMutationReturnFields)),
optimistic: optimistic);
return result == null
? null
: Fragment$basicMutationReturnFields.fromJson(result);
}
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiVersion {
Query$GetApiVersion({required this.api, required this.$__typename});
@override
factory Query$GetApiVersion.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiVersionFromJson(json);
final Query$GetApiVersion$api api;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiVersionToJson(this);
int get hashCode {
final l$api = api;
final l$$__typename = $__typename;
return Object.hashAll([l$api, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiVersion) || runtimeType != other.runtimeType)
return false;
final l$api = api;
final lOther$api = other.api;
if (l$api != lOther$api) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiVersion on Query$GetApiVersion {
CopyWith$Query$GetApiVersion<Query$GetApiVersion> get copyWith =>
CopyWith$Query$GetApiVersion(this, (i) => i);
}
abstract class CopyWith$Query$GetApiVersion<TRes> {
factory CopyWith$Query$GetApiVersion(Query$GetApiVersion instance,
TRes Function(Query$GetApiVersion) then) =
_CopyWithImpl$Query$GetApiVersion;
factory CopyWith$Query$GetApiVersion.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiVersion;
TRes call({Query$GetApiVersion$api? api, String? $__typename});
CopyWith$Query$GetApiVersion$api<TRes> get api;
}
class _CopyWithImpl$Query$GetApiVersion<TRes>
implements CopyWith$Query$GetApiVersion<TRes> {
_CopyWithImpl$Query$GetApiVersion(this._instance, this._then);
final Query$GetApiVersion _instance;
final TRes Function(Query$GetApiVersion) _then;
static const _undefined = {};
TRes call({Object? api = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiVersion(
api: api == _undefined || api == null
? _instance.api
: (api as Query$GetApiVersion$api),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Query$GetApiVersion$api<TRes> get api {
final local$api = _instance.api;
return CopyWith$Query$GetApiVersion$api(local$api, (e) => call(api: e));
}
}
class _CopyWithStubImpl$Query$GetApiVersion<TRes>
implements CopyWith$Query$GetApiVersion<TRes> {
_CopyWithStubImpl$Query$GetApiVersion(this._res);
TRes _res;
call({Query$GetApiVersion$api? api, String? $__typename}) => _res;
CopyWith$Query$GetApiVersion$api<TRes> get api =>
CopyWith$Query$GetApiVersion$api.stub(_res);
}
const documentNodeQueryGetApiVersion = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: NameNode(value: 'GetApiVersion'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'api'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'version'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
]);
Query$GetApiVersion _parserFn$Query$GetApiVersion(Map<String, dynamic> data) =>
Query$GetApiVersion.fromJson(data);
class Options$Query$GetApiVersion
extends graphql.QueryOptions<Query$GetApiVersion> {
Options$Query$GetApiVersion(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
Duration? pollInterval,
graphql.Context? context})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
pollInterval: pollInterval,
context: context,
document: documentNodeQueryGetApiVersion,
parserFn: _parserFn$Query$GetApiVersion);
}
class WatchOptions$Query$GetApiVersion
extends graphql.WatchQueryOptions<Query$GetApiVersion> {
WatchOptions$Query$GetApiVersion(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeQueryGetApiVersion,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Query$GetApiVersion);
}
class FetchMoreOptions$Query$GetApiVersion extends graphql.FetchMoreOptions {
FetchMoreOptions$Query$GetApiVersion(
{required graphql.UpdateQuery updateQuery})
: super(
updateQuery: updateQuery, document: documentNodeQueryGetApiVersion);
}
extension ClientExtension$Query$GetApiVersion on graphql.GraphQLClient {
Future<graphql.QueryResult<Query$GetApiVersion>> query$GetApiVersion(
[Options$Query$GetApiVersion? options]) async =>
await this.query(options ?? Options$Query$GetApiVersion());
graphql.ObservableQuery<Query$GetApiVersion> watchQuery$GetApiVersion(
[WatchOptions$Query$GetApiVersion? options]) =>
this.watchQuery(options ?? WatchOptions$Query$GetApiVersion());
void writeQuery$GetApiVersion(
{required Query$GetApiVersion data, bool broadcast = true}) =>
this.writeQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiVersion)),
data: data.toJson(),
broadcast: broadcast);
Query$GetApiVersion? readQuery$GetApiVersion({bool optimistic = true}) {
final result = this.readQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiVersion)),
optimistic: optimistic);
return result == null ? null : Query$GetApiVersion.fromJson(result);
}
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiVersion$api {
Query$GetApiVersion$api({required this.version, required this.$__typename});
@override
factory Query$GetApiVersion$api.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiVersion$apiFromJson(json);
final String version;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiVersion$apiToJson(this);
int get hashCode {
final l$version = version;
final l$$__typename = $__typename;
return Object.hashAll([l$version, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiVersion$api) || runtimeType != other.runtimeType)
return false;
final l$version = version;
final lOther$version = other.version;
if (l$version != lOther$version) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiVersion$api on Query$GetApiVersion$api {
CopyWith$Query$GetApiVersion$api<Query$GetApiVersion$api> get copyWith =>
CopyWith$Query$GetApiVersion$api(this, (i) => i);
}
abstract class CopyWith$Query$GetApiVersion$api<TRes> {
factory CopyWith$Query$GetApiVersion$api(Query$GetApiVersion$api instance,
TRes Function(Query$GetApiVersion$api) then) =
_CopyWithImpl$Query$GetApiVersion$api;
factory CopyWith$Query$GetApiVersion$api.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiVersion$api;
TRes call({String? version, String? $__typename});
}
class _CopyWithImpl$Query$GetApiVersion$api<TRes>
implements CopyWith$Query$GetApiVersion$api<TRes> {
_CopyWithImpl$Query$GetApiVersion$api(this._instance, this._then);
final Query$GetApiVersion$api _instance;
final TRes Function(Query$GetApiVersion$api) _then;
static const _undefined = {};
TRes call({Object? version = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiVersion$api(
version: version == _undefined || version == null
? _instance.version
: (version as String),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Query$GetApiVersion$api<TRes>
implements CopyWith$Query$GetApiVersion$api<TRes> {
_CopyWithStubImpl$Query$GetApiVersion$api(this._res);
TRes _res;
call({String? version, String? $__typename}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiJobs {
Query$GetApiJobs({required this.jobs, required this.$__typename});
@override
factory Query$GetApiJobs.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiJobsFromJson(json);
final Query$GetApiJobs$jobs jobs;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiJobsToJson(this);
int get hashCode {
final l$jobs = jobs;
final l$$__typename = $__typename;
return Object.hashAll([l$jobs, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiJobs) || runtimeType != other.runtimeType)
return false;
final l$jobs = jobs;
final lOther$jobs = other.jobs;
if (l$jobs != lOther$jobs) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiJobs on Query$GetApiJobs {
CopyWith$Query$GetApiJobs<Query$GetApiJobs> get copyWith =>
CopyWith$Query$GetApiJobs(this, (i) => i);
}
abstract class CopyWith$Query$GetApiJobs<TRes> {
factory CopyWith$Query$GetApiJobs(
Query$GetApiJobs instance, TRes Function(Query$GetApiJobs) then) =
_CopyWithImpl$Query$GetApiJobs;
factory CopyWith$Query$GetApiJobs.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiJobs;
TRes call({Query$GetApiJobs$jobs? jobs, String? $__typename});
CopyWith$Query$GetApiJobs$jobs<TRes> get jobs;
}
class _CopyWithImpl$Query$GetApiJobs<TRes>
implements CopyWith$Query$GetApiJobs<TRes> {
_CopyWithImpl$Query$GetApiJobs(this._instance, this._then);
final Query$GetApiJobs _instance;
final TRes Function(Query$GetApiJobs) _then;
static const _undefined = {};
TRes call({Object? jobs = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiJobs(
jobs: jobs == _undefined || jobs == null
? _instance.jobs
: (jobs as Query$GetApiJobs$jobs),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Query$GetApiJobs$jobs<TRes> get jobs {
final local$jobs = _instance.jobs;
return CopyWith$Query$GetApiJobs$jobs(local$jobs, (e) => call(jobs: e));
}
}
class _CopyWithStubImpl$Query$GetApiJobs<TRes>
implements CopyWith$Query$GetApiJobs<TRes> {
_CopyWithStubImpl$Query$GetApiJobs(this._res);
TRes _res;
call({Query$GetApiJobs$jobs? jobs, String? $__typename}) => _res;
CopyWith$Query$GetApiJobs$jobs<TRes> get jobs =>
CopyWith$Query$GetApiJobs$jobs.stub(_res);
}
const documentNodeQueryGetApiJobs = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: NameNode(value: 'GetApiJobs'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'jobs'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'getJobs'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'createdAt'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'description'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'error'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'finishedAt'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'name'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'progress'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'result'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'status'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'statusText'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'uid'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'updatedAt'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
]);
Query$GetApiJobs _parserFn$Query$GetApiJobs(Map<String, dynamic> data) =>
Query$GetApiJobs.fromJson(data);
class Options$Query$GetApiJobs extends graphql.QueryOptions<Query$GetApiJobs> {
Options$Query$GetApiJobs(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
Duration? pollInterval,
graphql.Context? context})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
pollInterval: pollInterval,
context: context,
document: documentNodeQueryGetApiJobs,
parserFn: _parserFn$Query$GetApiJobs);
}
class WatchOptions$Query$GetApiJobs
extends graphql.WatchQueryOptions<Query$GetApiJobs> {
WatchOptions$Query$GetApiJobs(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeQueryGetApiJobs,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Query$GetApiJobs);
}
class FetchMoreOptions$Query$GetApiJobs extends graphql.FetchMoreOptions {
FetchMoreOptions$Query$GetApiJobs({required graphql.UpdateQuery updateQuery})
: super(updateQuery: updateQuery, document: documentNodeQueryGetApiJobs);
}
extension ClientExtension$Query$GetApiJobs on graphql.GraphQLClient {
Future<graphql.QueryResult<Query$GetApiJobs>> query$GetApiJobs(
[Options$Query$GetApiJobs? options]) async =>
await this.query(options ?? Options$Query$GetApiJobs());
graphql.ObservableQuery<Query$GetApiJobs> watchQuery$GetApiJobs(
[WatchOptions$Query$GetApiJobs? options]) =>
this.watchQuery(options ?? WatchOptions$Query$GetApiJobs());
void writeQuery$GetApiJobs(
{required Query$GetApiJobs data, bool broadcast = true}) =>
this.writeQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiJobs)),
data: data.toJson(),
broadcast: broadcast);
Query$GetApiJobs? readQuery$GetApiJobs({bool optimistic = true}) {
final result = this.readQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiJobs)),
optimistic: optimistic);
return result == null ? null : Query$GetApiJobs.fromJson(result);
}
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiJobs$jobs {
Query$GetApiJobs$jobs({required this.getJobs, required this.$__typename});
@override
factory Query$GetApiJobs$jobs.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiJobs$jobsFromJson(json);
final List<Query$GetApiJobs$jobs$getJobs> getJobs;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiJobs$jobsToJson(this);
int get hashCode {
final l$getJobs = getJobs;
final l$$__typename = $__typename;
return Object.hashAll(
[Object.hashAll(l$getJobs.map((v) => v)), l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiJobs$jobs) || runtimeType != other.runtimeType)
return false;
final l$getJobs = getJobs;
final lOther$getJobs = other.getJobs;
if (l$getJobs.length != lOther$getJobs.length) return false;
for (int i = 0; i < l$getJobs.length; i++) {
final l$getJobs$entry = l$getJobs[i];
final lOther$getJobs$entry = lOther$getJobs[i];
if (l$getJobs$entry != lOther$getJobs$entry) return false;
}
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiJobs$jobs on Query$GetApiJobs$jobs {
CopyWith$Query$GetApiJobs$jobs<Query$GetApiJobs$jobs> get copyWith =>
CopyWith$Query$GetApiJobs$jobs(this, (i) => i);
}
abstract class CopyWith$Query$GetApiJobs$jobs<TRes> {
factory CopyWith$Query$GetApiJobs$jobs(Query$GetApiJobs$jobs instance,
TRes Function(Query$GetApiJobs$jobs) then) =
_CopyWithImpl$Query$GetApiJobs$jobs;
factory CopyWith$Query$GetApiJobs$jobs.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiJobs$jobs;
TRes call(
{List<Query$GetApiJobs$jobs$getJobs>? getJobs, String? $__typename});
TRes getJobs(
Iterable<Query$GetApiJobs$jobs$getJobs> Function(
Iterable<
CopyWith$Query$GetApiJobs$jobs$getJobs<
Query$GetApiJobs$jobs$getJobs>>)
_fn);
}
class _CopyWithImpl$Query$GetApiJobs$jobs<TRes>
implements CopyWith$Query$GetApiJobs$jobs<TRes> {
_CopyWithImpl$Query$GetApiJobs$jobs(this._instance, this._then);
final Query$GetApiJobs$jobs _instance;
final TRes Function(Query$GetApiJobs$jobs) _then;
static const _undefined = {};
TRes call({Object? getJobs = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiJobs$jobs(
getJobs: getJobs == _undefined || getJobs == null
? _instance.getJobs
: (getJobs as List<Query$GetApiJobs$jobs$getJobs>),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
TRes getJobs(
Iterable<Query$GetApiJobs$jobs$getJobs> Function(
Iterable<
CopyWith$Query$GetApiJobs$jobs$getJobs<
Query$GetApiJobs$jobs$getJobs>>)
_fn) =>
call(
getJobs: _fn(_instance.getJobs.map(
(e) => CopyWith$Query$GetApiJobs$jobs$getJobs(e, (i) => i)))
.toList());
}
class _CopyWithStubImpl$Query$GetApiJobs$jobs<TRes>
implements CopyWith$Query$GetApiJobs$jobs<TRes> {
_CopyWithStubImpl$Query$GetApiJobs$jobs(this._res);
TRes _res;
call({List<Query$GetApiJobs$jobs$getJobs>? getJobs, String? $__typename}) =>
_res;
getJobs(_fn) => _res;
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiJobs$jobs$getJobs {
Query$GetApiJobs$jobs$getJobs(
{required this.createdAt,
required this.description,
this.error,
this.finishedAt,
required this.name,
this.progress,
this.result,
required this.status,
this.statusText,
required this.uid,
required this.updatedAt,
required this.$__typename});
@override
factory Query$GetApiJobs$jobs$getJobs.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiJobs$jobs$getJobsFromJson(json);
@JsonKey(fromJson: dateTimeFromJson, toJson: dateTimeToJson)
final DateTime createdAt;
final String description;
final String? error;
@JsonKey(
fromJson: _nullable$dateTimeFromJson, toJson: _nullable$dateTimeToJson)
final DateTime? finishedAt;
final String name;
final int? progress;
final String? result;
final String status;
final String? statusText;
final String uid;
@JsonKey(fromJson: dateTimeFromJson, toJson: dateTimeToJson)
final DateTime updatedAt;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiJobs$jobs$getJobsToJson(this);
int get hashCode {
final l$createdAt = createdAt;
final l$description = description;
final l$error = error;
final l$finishedAt = finishedAt;
final l$name = name;
final l$progress = progress;
final l$result = result;
final l$status = status;
final l$statusText = statusText;
final l$uid = uid;
final l$updatedAt = updatedAt;
final l$$__typename = $__typename;
return Object.hashAll([
l$createdAt,
l$description,
l$error,
l$finishedAt,
l$name,
l$progress,
l$result,
l$status,
l$statusText,
l$uid,
l$updatedAt,
l$$__typename
]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiJobs$jobs$getJobs) ||
runtimeType != other.runtimeType) return false;
final l$createdAt = createdAt;
final lOther$createdAt = other.createdAt;
if (l$createdAt != lOther$createdAt) return false;
final l$description = description;
final lOther$description = other.description;
if (l$description != lOther$description) return false;
final l$error = error;
final lOther$error = other.error;
if (l$error != lOther$error) return false;
final l$finishedAt = finishedAt;
final lOther$finishedAt = other.finishedAt;
if (l$finishedAt != lOther$finishedAt) return false;
final l$name = name;
final lOther$name = other.name;
if (l$name != lOther$name) return false;
final l$progress = progress;
final lOther$progress = other.progress;
if (l$progress != lOther$progress) return false;
final l$result = result;
final lOther$result = other.result;
if (l$result != lOther$result) return false;
final l$status = status;
final lOther$status = other.status;
if (l$status != lOther$status) return false;
final l$statusText = statusText;
final lOther$statusText = other.statusText;
if (l$statusText != lOther$statusText) return false;
final l$uid = uid;
final lOther$uid = other.uid;
if (l$uid != lOther$uid) return false;
final l$updatedAt = updatedAt;
final lOther$updatedAt = other.updatedAt;
if (l$updatedAt != lOther$updatedAt) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiJobs$jobs$getJobs
on Query$GetApiJobs$jobs$getJobs {
CopyWith$Query$GetApiJobs$jobs$getJobs<Query$GetApiJobs$jobs$getJobs>
get copyWith => CopyWith$Query$GetApiJobs$jobs$getJobs(this, (i) => i);
}
abstract class CopyWith$Query$GetApiJobs$jobs$getJobs<TRes> {
factory CopyWith$Query$GetApiJobs$jobs$getJobs(
Query$GetApiJobs$jobs$getJobs instance,
TRes Function(Query$GetApiJobs$jobs$getJobs) then) =
_CopyWithImpl$Query$GetApiJobs$jobs$getJobs;
factory CopyWith$Query$GetApiJobs$jobs$getJobs.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs;
TRes call(
{DateTime? createdAt,
String? description,
String? error,
DateTime? finishedAt,
String? name,
int? progress,
String? result,
String? status,
String? statusText,
String? uid,
DateTime? updatedAt,
String? $__typename});
}
class _CopyWithImpl$Query$GetApiJobs$jobs$getJobs<TRes>
implements CopyWith$Query$GetApiJobs$jobs$getJobs<TRes> {
_CopyWithImpl$Query$GetApiJobs$jobs$getJobs(this._instance, this._then);
final Query$GetApiJobs$jobs$getJobs _instance;
final TRes Function(Query$GetApiJobs$jobs$getJobs) _then;
static const _undefined = {};
TRes call(
{Object? createdAt = _undefined,
Object? description = _undefined,
Object? error = _undefined,
Object? finishedAt = _undefined,
Object? name = _undefined,
Object? progress = _undefined,
Object? result = _undefined,
Object? status = _undefined,
Object? statusText = _undefined,
Object? uid = _undefined,
Object? updatedAt = _undefined,
Object? $__typename = _undefined}) =>
_then(Query$GetApiJobs$jobs$getJobs(
createdAt: createdAt == _undefined || createdAt == null
? _instance.createdAt
: (createdAt as DateTime),
description: description == _undefined || description == null
? _instance.description
: (description as String),
error: error == _undefined ? _instance.error : (error as String?),
finishedAt: finishedAt == _undefined
? _instance.finishedAt
: (finishedAt as DateTime?),
name: name == _undefined || name == null
? _instance.name
: (name as String),
progress:
progress == _undefined ? _instance.progress : (progress as int?),
result: result == _undefined ? _instance.result : (result as String?),
status: status == _undefined || status == null
? _instance.status
: (status as String),
statusText: statusText == _undefined
? _instance.statusText
: (statusText as String?),
uid: uid == _undefined || uid == null
? _instance.uid
: (uid as String),
updatedAt: updatedAt == _undefined || updatedAt == null
? _instance.updatedAt
: (updatedAt as DateTime),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs<TRes>
implements CopyWith$Query$GetApiJobs$jobs$getJobs<TRes> {
_CopyWithStubImpl$Query$GetApiJobs$jobs$getJobs(this._res);
TRes _res;
call(
{DateTime? createdAt,
String? description,
String? error,
DateTime? finishedAt,
String? name,
int? progress,
String? result,
String? status,
String? statusText,
String? uid,
DateTime? updatedAt,
String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Variables$Mutation$RemoveJob {
Variables$Mutation$RemoveJob({required this.jobId});
@override
factory Variables$Mutation$RemoveJob.fromJson(Map<String, dynamic> json) =>
_$Variables$Mutation$RemoveJobFromJson(json);
final String jobId;
Map<String, dynamic> toJson() => _$Variables$Mutation$RemoveJobToJson(this);
int get hashCode {
final l$jobId = jobId;
return Object.hashAll([l$jobId]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Variables$Mutation$RemoveJob) ||
runtimeType != other.runtimeType) return false;
final l$jobId = jobId;
final lOther$jobId = other.jobId;
if (l$jobId != lOther$jobId) return false;
return true;
}
CopyWith$Variables$Mutation$RemoveJob<Variables$Mutation$RemoveJob>
get copyWith => CopyWith$Variables$Mutation$RemoveJob(this, (i) => i);
}
abstract class CopyWith$Variables$Mutation$RemoveJob<TRes> {
factory CopyWith$Variables$Mutation$RemoveJob(
Variables$Mutation$RemoveJob instance,
TRes Function(Variables$Mutation$RemoveJob) then) =
_CopyWithImpl$Variables$Mutation$RemoveJob;
factory CopyWith$Variables$Mutation$RemoveJob.stub(TRes res) =
_CopyWithStubImpl$Variables$Mutation$RemoveJob;
TRes call({String? jobId});
}
class _CopyWithImpl$Variables$Mutation$RemoveJob<TRes>
implements CopyWith$Variables$Mutation$RemoveJob<TRes> {
_CopyWithImpl$Variables$Mutation$RemoveJob(this._instance, this._then);
final Variables$Mutation$RemoveJob _instance;
final TRes Function(Variables$Mutation$RemoveJob) _then;
static const _undefined = {};
TRes call({Object? jobId = _undefined}) => _then(Variables$Mutation$RemoveJob(
jobId: jobId == _undefined || jobId == null
? _instance.jobId
: (jobId as String)));
}
class _CopyWithStubImpl$Variables$Mutation$RemoveJob<TRes>
implements CopyWith$Variables$Mutation$RemoveJob<TRes> {
_CopyWithStubImpl$Variables$Mutation$RemoveJob(this._res);
TRes _res;
call({String? jobId}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RemoveJob {
Mutation$RemoveJob({required this.removeJob, required this.$__typename});
@override
factory Mutation$RemoveJob.fromJson(Map<String, dynamic> json) =>
_$Mutation$RemoveJobFromJson(json);
final Mutation$RemoveJob$removeJob removeJob;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RemoveJobToJson(this);
int get hashCode {
final l$removeJob = removeJob;
final l$$__typename = $__typename;
return Object.hashAll([l$removeJob, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RemoveJob) || runtimeType != other.runtimeType)
return false;
final l$removeJob = removeJob;
final lOther$removeJob = other.removeJob;
if (l$removeJob != lOther$removeJob) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RemoveJob on Mutation$RemoveJob {
CopyWith$Mutation$RemoveJob<Mutation$RemoveJob> get copyWith =>
CopyWith$Mutation$RemoveJob(this, (i) => i);
}
abstract class CopyWith$Mutation$RemoveJob<TRes> {
factory CopyWith$Mutation$RemoveJob(
Mutation$RemoveJob instance, TRes Function(Mutation$RemoveJob) then) =
_CopyWithImpl$Mutation$RemoveJob;
factory CopyWith$Mutation$RemoveJob.stub(TRes res) =
_CopyWithStubImpl$Mutation$RemoveJob;
TRes call({Mutation$RemoveJob$removeJob? removeJob, String? $__typename});
CopyWith$Mutation$RemoveJob$removeJob<TRes> get removeJob;
}
class _CopyWithImpl$Mutation$RemoveJob<TRes>
implements CopyWith$Mutation$RemoveJob<TRes> {
_CopyWithImpl$Mutation$RemoveJob(this._instance, this._then);
final Mutation$RemoveJob _instance;
final TRes Function(Mutation$RemoveJob) _then;
static const _undefined = {};
TRes call(
{Object? removeJob = _undefined, Object? $__typename = _undefined}) =>
_then(Mutation$RemoveJob(
removeJob: removeJob == _undefined || removeJob == null
? _instance.removeJob
: (removeJob as Mutation$RemoveJob$removeJob),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RemoveJob$removeJob<TRes> get removeJob {
final local$removeJob = _instance.removeJob;
return CopyWith$Mutation$RemoveJob$removeJob(
local$removeJob, (e) => call(removeJob: e));
}
}
class _CopyWithStubImpl$Mutation$RemoveJob<TRes>
implements CopyWith$Mutation$RemoveJob<TRes> {
_CopyWithStubImpl$Mutation$RemoveJob(this._res);
TRes _res;
call({Mutation$RemoveJob$removeJob? removeJob, String? $__typename}) => _res;
CopyWith$Mutation$RemoveJob$removeJob<TRes> get removeJob =>
CopyWith$Mutation$RemoveJob$removeJob.stub(_res);
}
const documentNodeMutationRemoveJob = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RemoveJob'),
variableDefinitions: [
VariableDefinitionNode(
variable: VariableNode(name: NameNode(value: 'jobId')),
type:
NamedTypeNode(name: NameNode(value: 'String'), isNonNull: true),
defaultValue: DefaultValueNode(value: null),
directives: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'removeJob'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'jobId'),
value: VariableNode(name: NameNode(value: 'jobId')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RemoveJob _parserFn$Mutation$RemoveJob(Map<String, dynamic> data) =>
Mutation$RemoveJob.fromJson(data);
typedef OnMutationCompleted$Mutation$RemoveJob = FutureOr<void> Function(
dynamic, Mutation$RemoveJob?);
class Options$Mutation$RemoveJob
extends graphql.MutationOptions<Mutation$RemoveJob> {
Options$Mutation$RemoveJob(
{String? operationName,
required Variables$Mutation$RemoveJob variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RemoveJob? onCompleted,
graphql.OnMutationUpdate<Mutation$RemoveJob>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
variables: variables.toJson(),
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(data,
data == null ? null : _parserFn$Mutation$RemoveJob(data)),
update: update,
onError: onError,
document: documentNodeMutationRemoveJob,
parserFn: _parserFn$Mutation$RemoveJob);
final OnMutationCompleted$Mutation$RemoveJob? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RemoveJob
extends graphql.WatchQueryOptions<Mutation$RemoveJob> {
WatchOptions$Mutation$RemoveJob(
{String? operationName,
required Variables$Mutation$RemoveJob variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
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,
context: context,
document: documentNodeMutationRemoveJob,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RemoveJob);
}
extension ClientExtension$Mutation$RemoveJob on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RemoveJob>> mutate$RemoveJob(
Options$Mutation$RemoveJob options) async =>
await this.mutate(options);
graphql.ObservableQuery<Mutation$RemoveJob> watchMutation$RemoveJob(
WatchOptions$Mutation$RemoveJob options) =>
this.watchMutation(options);
}
@JsonSerializable(explicitToJson: true)
class Mutation$RemoveJob$removeJob
implements Fragment$basicMutationReturnFields {
Mutation$RemoveJob$removeJob(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$RemoveJob$removeJob.fromJson(Map<String, dynamic> json) =>
_$Mutation$RemoveJob$removeJobFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RemoveJob$removeJobToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RemoveJob$removeJob) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RemoveJob$removeJob
on Mutation$RemoveJob$removeJob {
CopyWith$Mutation$RemoveJob$removeJob<Mutation$RemoveJob$removeJob>
get copyWith => CopyWith$Mutation$RemoveJob$removeJob(this, (i) => i);
}
abstract class CopyWith$Mutation$RemoveJob$removeJob<TRes> {
factory CopyWith$Mutation$RemoveJob$removeJob(
Mutation$RemoveJob$removeJob instance,
TRes Function(Mutation$RemoveJob$removeJob) then) =
_CopyWithImpl$Mutation$RemoveJob$removeJob;
factory CopyWith$Mutation$RemoveJob$removeJob.stub(TRes res) =
_CopyWithStubImpl$Mutation$RemoveJob$removeJob;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$RemoveJob$removeJob<TRes>
implements CopyWith$Mutation$RemoveJob$removeJob<TRes> {
_CopyWithImpl$Mutation$RemoveJob$removeJob(this._instance, this._then);
final Mutation$RemoveJob$removeJob _instance;
final TRes Function(Mutation$RemoveJob$removeJob) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RemoveJob$removeJob(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$RemoveJob$removeJob<TRes>
implements CopyWith$Mutation$RemoveJob$removeJob<TRes> {
_CopyWithStubImpl$Mutation$RemoveJob$removeJob(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemRebuild {
Mutation$RunSystemRebuild(
{required this.runSystemRebuild, required this.$__typename});
@override
factory Mutation$RunSystemRebuild.fromJson(Map<String, dynamic> json) =>
_$Mutation$RunSystemRebuildFromJson(json);
final Mutation$RunSystemRebuild$runSystemRebuild runSystemRebuild;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RunSystemRebuildToJson(this);
int get hashCode {
final l$runSystemRebuild = runSystemRebuild;
final l$$__typename = $__typename;
return Object.hashAll([l$runSystemRebuild, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemRebuild) ||
runtimeType != other.runtimeType) return false;
final l$runSystemRebuild = runSystemRebuild;
final lOther$runSystemRebuild = other.runSystemRebuild;
if (l$runSystemRebuild != lOther$runSystemRebuild) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemRebuild
on Mutation$RunSystemRebuild {
CopyWith$Mutation$RunSystemRebuild<Mutation$RunSystemRebuild> get copyWith =>
CopyWith$Mutation$RunSystemRebuild(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemRebuild<TRes> {
factory CopyWith$Mutation$RunSystemRebuild(Mutation$RunSystemRebuild instance,
TRes Function(Mutation$RunSystemRebuild) then) =
_CopyWithImpl$Mutation$RunSystemRebuild;
factory CopyWith$Mutation$RunSystemRebuild.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemRebuild;
TRes call(
{Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild,
String? $__typename});
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes>
get runSystemRebuild;
}
class _CopyWithImpl$Mutation$RunSystemRebuild<TRes>
implements CopyWith$Mutation$RunSystemRebuild<TRes> {
_CopyWithImpl$Mutation$RunSystemRebuild(this._instance, this._then);
final Mutation$RunSystemRebuild _instance;
final TRes Function(Mutation$RunSystemRebuild) _then;
static const _undefined = {};
TRes call(
{Object? runSystemRebuild = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemRebuild(
runSystemRebuild:
runSystemRebuild == _undefined || runSystemRebuild == null
? _instance.runSystemRebuild
: (runSystemRebuild
as Mutation$RunSystemRebuild$runSystemRebuild),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes>
get runSystemRebuild {
final local$runSystemRebuild = _instance.runSystemRebuild;
return CopyWith$Mutation$RunSystemRebuild$runSystemRebuild(
local$runSystemRebuild, (e) => call(runSystemRebuild: e));
}
}
class _CopyWithStubImpl$Mutation$RunSystemRebuild<TRes>
implements CopyWith$Mutation$RunSystemRebuild<TRes> {
_CopyWithStubImpl$Mutation$RunSystemRebuild(this._res);
TRes _res;
call(
{Mutation$RunSystemRebuild$runSystemRebuild? runSystemRebuild,
String? $__typename}) =>
_res;
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes>
get runSystemRebuild =>
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(_res);
}
const documentNodeMutationRunSystemRebuild = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RunSystemRebuild'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'runSystemRebuild'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RunSystemRebuild _parserFn$Mutation$RunSystemRebuild(
Map<String, dynamic> data) =>
Mutation$RunSystemRebuild.fromJson(data);
typedef OnMutationCompleted$Mutation$RunSystemRebuild = FutureOr<void> Function(
dynamic, Mutation$RunSystemRebuild?);
class Options$Mutation$RunSystemRebuild
extends graphql.MutationOptions<Mutation$RunSystemRebuild> {
Options$Mutation$RunSystemRebuild(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RunSystemRebuild? onCompleted,
graphql.OnMutationUpdate<Mutation$RunSystemRebuild>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$RunSystemRebuild(data)),
update: update,
onError: onError,
document: documentNodeMutationRunSystemRebuild,
parserFn: _parserFn$Mutation$RunSystemRebuild);
final OnMutationCompleted$Mutation$RunSystemRebuild? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RunSystemRebuild
extends graphql.WatchQueryOptions<Mutation$RunSystemRebuild> {
WatchOptions$Mutation$RunSystemRebuild(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationRunSystemRebuild,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RunSystemRebuild);
}
extension ClientExtension$Mutation$RunSystemRebuild on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RunSystemRebuild>>
mutate$RunSystemRebuild(
[Options$Mutation$RunSystemRebuild? options]) async =>
await this.mutate(options ?? Options$Mutation$RunSystemRebuild());
graphql.ObservableQuery<
Mutation$RunSystemRebuild> watchMutation$RunSystemRebuild(
[WatchOptions$Mutation$RunSystemRebuild? options]) =>
this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRebuild());
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemRebuild$runSystemRebuild
implements Fragment$basicMutationReturnFields {
Mutation$RunSystemRebuild$runSystemRebuild(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$RunSystemRebuild$runSystemRebuild.fromJson(
Map<String, dynamic> json) =>
_$Mutation$RunSystemRebuild$runSystemRebuildFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$RunSystemRebuild$runSystemRebuildToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemRebuild$runSystemRebuild) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemRebuild$runSystemRebuild
on Mutation$RunSystemRebuild$runSystemRebuild {
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<
Mutation$RunSystemRebuild$runSystemRebuild>
get copyWith =>
CopyWith$Mutation$RunSystemRebuild$runSystemRebuild(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes> {
factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild(
Mutation$RunSystemRebuild$runSystemRebuild instance,
TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) then) =
_CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild;
factory CopyWith$Mutation$RunSystemRebuild$runSystemRebuild.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild<TRes>
implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes> {
_CopyWithImpl$Mutation$RunSystemRebuild$runSystemRebuild(
this._instance, this._then);
final Mutation$RunSystemRebuild$runSystemRebuild _instance;
final TRes Function(Mutation$RunSystemRebuild$runSystemRebuild) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemRebuild$runSystemRebuild(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild<TRes>
implements CopyWith$Mutation$RunSystemRebuild$runSystemRebuild<TRes> {
_CopyWithStubImpl$Mutation$RunSystemRebuild$runSystemRebuild(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemRollback {
Mutation$RunSystemRollback(
{required this.runSystemRollback, required this.$__typename});
@override
factory Mutation$RunSystemRollback.fromJson(Map<String, dynamic> json) =>
_$Mutation$RunSystemRollbackFromJson(json);
final Mutation$RunSystemRollback$runSystemRollback runSystemRollback;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RunSystemRollbackToJson(this);
int get hashCode {
final l$runSystemRollback = runSystemRollback;
final l$$__typename = $__typename;
return Object.hashAll([l$runSystemRollback, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemRollback) ||
runtimeType != other.runtimeType) return false;
final l$runSystemRollback = runSystemRollback;
final lOther$runSystemRollback = other.runSystemRollback;
if (l$runSystemRollback != lOther$runSystemRollback) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemRollback
on Mutation$RunSystemRollback {
CopyWith$Mutation$RunSystemRollback<Mutation$RunSystemRollback>
get copyWith => CopyWith$Mutation$RunSystemRollback(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemRollback<TRes> {
factory CopyWith$Mutation$RunSystemRollback(
Mutation$RunSystemRollback instance,
TRes Function(Mutation$RunSystemRollback) then) =
_CopyWithImpl$Mutation$RunSystemRollback;
factory CopyWith$Mutation$RunSystemRollback.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemRollback;
TRes call(
{Mutation$RunSystemRollback$runSystemRollback? runSystemRollback,
String? $__typename});
CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes>
get runSystemRollback;
}
class _CopyWithImpl$Mutation$RunSystemRollback<TRes>
implements CopyWith$Mutation$RunSystemRollback<TRes> {
_CopyWithImpl$Mutation$RunSystemRollback(this._instance, this._then);
final Mutation$RunSystemRollback _instance;
final TRes Function(Mutation$RunSystemRollback) _then;
static const _undefined = {};
TRes call(
{Object? runSystemRollback = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemRollback(
runSystemRollback:
runSystemRollback == _undefined || runSystemRollback == null
? _instance.runSystemRollback
: (runSystemRollback
as Mutation$RunSystemRollback$runSystemRollback),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes>
get runSystemRollback {
final local$runSystemRollback = _instance.runSystemRollback;
return CopyWith$Mutation$RunSystemRollback$runSystemRollback(
local$runSystemRollback, (e) => call(runSystemRollback: e));
}
}
class _CopyWithStubImpl$Mutation$RunSystemRollback<TRes>
implements CopyWith$Mutation$RunSystemRollback<TRes> {
_CopyWithStubImpl$Mutation$RunSystemRollback(this._res);
TRes _res;
call(
{Mutation$RunSystemRollback$runSystemRollback? runSystemRollback,
String? $__typename}) =>
_res;
CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes>
get runSystemRollback =>
CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(_res);
}
const documentNodeMutationRunSystemRollback = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RunSystemRollback'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'runSystemRollback'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RunSystemRollback _parserFn$Mutation$RunSystemRollback(
Map<String, dynamic> data) =>
Mutation$RunSystemRollback.fromJson(data);
typedef OnMutationCompleted$Mutation$RunSystemRollback = FutureOr<void>
Function(dynamic, Mutation$RunSystemRollback?);
class Options$Mutation$RunSystemRollback
extends graphql.MutationOptions<Mutation$RunSystemRollback> {
Options$Mutation$RunSystemRollback(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RunSystemRollback? onCompleted,
graphql.OnMutationUpdate<Mutation$RunSystemRollback>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$RunSystemRollback(data)),
update: update,
onError: onError,
document: documentNodeMutationRunSystemRollback,
parserFn: _parserFn$Mutation$RunSystemRollback);
final OnMutationCompleted$Mutation$RunSystemRollback? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RunSystemRollback
extends graphql.WatchQueryOptions<Mutation$RunSystemRollback> {
WatchOptions$Mutation$RunSystemRollback(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationRunSystemRollback,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RunSystemRollback);
}
extension ClientExtension$Mutation$RunSystemRollback on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RunSystemRollback>>
mutate$RunSystemRollback(
[Options$Mutation$RunSystemRollback? options]) async =>
await this.mutate(options ?? Options$Mutation$RunSystemRollback());
graphql.ObservableQuery<
Mutation$RunSystemRollback> watchMutation$RunSystemRollback(
[WatchOptions$Mutation$RunSystemRollback? options]) =>
this.watchMutation(options ?? WatchOptions$Mutation$RunSystemRollback());
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemRollback$runSystemRollback
implements Fragment$basicMutationReturnFields {
Mutation$RunSystemRollback$runSystemRollback(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$RunSystemRollback$runSystemRollback.fromJson(
Map<String, dynamic> json) =>
_$Mutation$RunSystemRollback$runSystemRollbackFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$RunSystemRollback$runSystemRollbackToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemRollback$runSystemRollback) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemRollback$runSystemRollback
on Mutation$RunSystemRollback$runSystemRollback {
CopyWith$Mutation$RunSystemRollback$runSystemRollback<
Mutation$RunSystemRollback$runSystemRollback>
get copyWith =>
CopyWith$Mutation$RunSystemRollback$runSystemRollback(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes> {
factory CopyWith$Mutation$RunSystemRollback$runSystemRollback(
Mutation$RunSystemRollback$runSystemRollback instance,
TRes Function(Mutation$RunSystemRollback$runSystemRollback) then) =
_CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback;
factory CopyWith$Mutation$RunSystemRollback$runSystemRollback.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback<TRes>
implements CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes> {
_CopyWithImpl$Mutation$RunSystemRollback$runSystemRollback(
this._instance, this._then);
final Mutation$RunSystemRollback$runSystemRollback _instance;
final TRes Function(Mutation$RunSystemRollback$runSystemRollback) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemRollback$runSystemRollback(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback<TRes>
implements CopyWith$Mutation$RunSystemRollback$runSystemRollback<TRes> {
_CopyWithStubImpl$Mutation$RunSystemRollback$runSystemRollback(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemUpgrade {
Mutation$RunSystemUpgrade(
{required this.runSystemUpgrade, required this.$__typename});
@override
factory Mutation$RunSystemUpgrade.fromJson(Map<String, dynamic> json) =>
_$Mutation$RunSystemUpgradeFromJson(json);
final Mutation$RunSystemUpgrade$runSystemUpgrade runSystemUpgrade;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RunSystemUpgradeToJson(this);
int get hashCode {
final l$runSystemUpgrade = runSystemUpgrade;
final l$$__typename = $__typename;
return Object.hashAll([l$runSystemUpgrade, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemUpgrade) ||
runtimeType != other.runtimeType) return false;
final l$runSystemUpgrade = runSystemUpgrade;
final lOther$runSystemUpgrade = other.runSystemUpgrade;
if (l$runSystemUpgrade != lOther$runSystemUpgrade) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemUpgrade
on Mutation$RunSystemUpgrade {
CopyWith$Mutation$RunSystemUpgrade<Mutation$RunSystemUpgrade> get copyWith =>
CopyWith$Mutation$RunSystemUpgrade(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemUpgrade<TRes> {
factory CopyWith$Mutation$RunSystemUpgrade(Mutation$RunSystemUpgrade instance,
TRes Function(Mutation$RunSystemUpgrade) then) =
_CopyWithImpl$Mutation$RunSystemUpgrade;
factory CopyWith$Mutation$RunSystemUpgrade.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemUpgrade;
TRes call(
{Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade,
String? $__typename});
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes>
get runSystemUpgrade;
}
class _CopyWithImpl$Mutation$RunSystemUpgrade<TRes>
implements CopyWith$Mutation$RunSystemUpgrade<TRes> {
_CopyWithImpl$Mutation$RunSystemUpgrade(this._instance, this._then);
final Mutation$RunSystemUpgrade _instance;
final TRes Function(Mutation$RunSystemUpgrade) _then;
static const _undefined = {};
TRes call(
{Object? runSystemUpgrade = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemUpgrade(
runSystemUpgrade:
runSystemUpgrade == _undefined || runSystemUpgrade == null
? _instance.runSystemUpgrade
: (runSystemUpgrade
as Mutation$RunSystemUpgrade$runSystemUpgrade),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes>
get runSystemUpgrade {
final local$runSystemUpgrade = _instance.runSystemUpgrade;
return CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade(
local$runSystemUpgrade, (e) => call(runSystemUpgrade: e));
}
}
class _CopyWithStubImpl$Mutation$RunSystemUpgrade<TRes>
implements CopyWith$Mutation$RunSystemUpgrade<TRes> {
_CopyWithStubImpl$Mutation$RunSystemUpgrade(this._res);
TRes _res;
call(
{Mutation$RunSystemUpgrade$runSystemUpgrade? runSystemUpgrade,
String? $__typename}) =>
_res;
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes>
get runSystemUpgrade =>
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(_res);
}
const documentNodeMutationRunSystemUpgrade = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RunSystemUpgrade'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'runSystemUpgrade'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RunSystemUpgrade _parserFn$Mutation$RunSystemUpgrade(
Map<String, dynamic> data) =>
Mutation$RunSystemUpgrade.fromJson(data);
typedef OnMutationCompleted$Mutation$RunSystemUpgrade = FutureOr<void> Function(
dynamic, Mutation$RunSystemUpgrade?);
class Options$Mutation$RunSystemUpgrade
extends graphql.MutationOptions<Mutation$RunSystemUpgrade> {
Options$Mutation$RunSystemUpgrade(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RunSystemUpgrade? onCompleted,
graphql.OnMutationUpdate<Mutation$RunSystemUpgrade>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$RunSystemUpgrade(data)),
update: update,
onError: onError,
document: documentNodeMutationRunSystemUpgrade,
parserFn: _parserFn$Mutation$RunSystemUpgrade);
final OnMutationCompleted$Mutation$RunSystemUpgrade? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RunSystemUpgrade
extends graphql.WatchQueryOptions<Mutation$RunSystemUpgrade> {
WatchOptions$Mutation$RunSystemUpgrade(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationRunSystemUpgrade,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RunSystemUpgrade);
}
extension ClientExtension$Mutation$RunSystemUpgrade on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RunSystemUpgrade>>
mutate$RunSystemUpgrade(
[Options$Mutation$RunSystemUpgrade? options]) async =>
await this.mutate(options ?? Options$Mutation$RunSystemUpgrade());
graphql.ObservableQuery<
Mutation$RunSystemUpgrade> watchMutation$RunSystemUpgrade(
[WatchOptions$Mutation$RunSystemUpgrade? options]) =>
this.watchMutation(options ?? WatchOptions$Mutation$RunSystemUpgrade());
}
@JsonSerializable(explicitToJson: true)
class Mutation$RunSystemUpgrade$runSystemUpgrade
implements Fragment$basicMutationReturnFields {
Mutation$RunSystemUpgrade$runSystemUpgrade(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$RunSystemUpgrade$runSystemUpgrade.fromJson(
Map<String, dynamic> json) =>
_$Mutation$RunSystemUpgrade$runSystemUpgradeFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$RunSystemUpgrade$runSystemUpgradeToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RunSystemUpgrade$runSystemUpgrade) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RunSystemUpgrade$runSystemUpgrade
on Mutation$RunSystemUpgrade$runSystemUpgrade {
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<
Mutation$RunSystemUpgrade$runSystemUpgrade>
get copyWith =>
CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade(this, (i) => i);
}
abstract class CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes> {
factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade(
Mutation$RunSystemUpgrade$runSystemUpgrade instance,
TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) then) =
_CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade;
factory CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade.stub(TRes res) =
_CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes>
implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes> {
_CopyWithImpl$Mutation$RunSystemUpgrade$runSystemUpgrade(
this._instance, this._then);
final Mutation$RunSystemUpgrade$runSystemUpgrade _instance;
final TRes Function(Mutation$RunSystemUpgrade$runSystemUpgrade) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RunSystemUpgrade$runSystemUpgrade(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes>
implements CopyWith$Mutation$RunSystemUpgrade$runSystemUpgrade<TRes> {
_CopyWithStubImpl$Mutation$RunSystemUpgrade$runSystemUpgrade(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$PullRepositoryChanges {
Mutation$PullRepositoryChanges(
{required this.pullRepositoryChanges, required this.$__typename});
@override
factory Mutation$PullRepositoryChanges.fromJson(Map<String, dynamic> json) =>
_$Mutation$PullRepositoryChangesFromJson(json);
final Mutation$PullRepositoryChanges$pullRepositoryChanges
pullRepositoryChanges;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$PullRepositoryChangesToJson(this);
int get hashCode {
final l$pullRepositoryChanges = pullRepositoryChanges;
final l$$__typename = $__typename;
return Object.hashAll([l$pullRepositoryChanges, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$PullRepositoryChanges) ||
runtimeType != other.runtimeType) return false;
final l$pullRepositoryChanges = pullRepositoryChanges;
final lOther$pullRepositoryChanges = other.pullRepositoryChanges;
if (l$pullRepositoryChanges != lOther$pullRepositoryChanges) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$PullRepositoryChanges
on Mutation$PullRepositoryChanges {
CopyWith$Mutation$PullRepositoryChanges<Mutation$PullRepositoryChanges>
get copyWith => CopyWith$Mutation$PullRepositoryChanges(this, (i) => i);
}
abstract class CopyWith$Mutation$PullRepositoryChanges<TRes> {
factory CopyWith$Mutation$PullRepositoryChanges(
Mutation$PullRepositoryChanges instance,
TRes Function(Mutation$PullRepositoryChanges) then) =
_CopyWithImpl$Mutation$PullRepositoryChanges;
factory CopyWith$Mutation$PullRepositoryChanges.stub(TRes res) =
_CopyWithStubImpl$Mutation$PullRepositoryChanges;
TRes call(
{Mutation$PullRepositoryChanges$pullRepositoryChanges?
pullRepositoryChanges,
String? $__typename});
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes>
get pullRepositoryChanges;
}
class _CopyWithImpl$Mutation$PullRepositoryChanges<TRes>
implements CopyWith$Mutation$PullRepositoryChanges<TRes> {
_CopyWithImpl$Mutation$PullRepositoryChanges(this._instance, this._then);
final Mutation$PullRepositoryChanges _instance;
final TRes Function(Mutation$PullRepositoryChanges) _then;
static const _undefined = {};
TRes call(
{Object? pullRepositoryChanges = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$PullRepositoryChanges(
pullRepositoryChanges: pullRepositoryChanges == _undefined ||
pullRepositoryChanges == null
? _instance.pullRepositoryChanges
: (pullRepositoryChanges
as Mutation$PullRepositoryChanges$pullRepositoryChanges),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes>
get pullRepositoryChanges {
final local$pullRepositoryChanges = _instance.pullRepositoryChanges;
return CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges(
local$pullRepositoryChanges, (e) => call(pullRepositoryChanges: e));
}
}
class _CopyWithStubImpl$Mutation$PullRepositoryChanges<TRes>
implements CopyWith$Mutation$PullRepositoryChanges<TRes> {
_CopyWithStubImpl$Mutation$PullRepositoryChanges(this._res);
TRes _res;
call(
{Mutation$PullRepositoryChanges$pullRepositoryChanges?
pullRepositoryChanges,
String? $__typename}) =>
_res;
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes>
get pullRepositoryChanges =>
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub(
_res);
}
const documentNodeMutationPullRepositoryChanges = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'PullRepositoryChanges'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'pullRepositoryChanges'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$PullRepositoryChanges _parserFn$Mutation$PullRepositoryChanges(
Map<String, dynamic> data) =>
Mutation$PullRepositoryChanges.fromJson(data);
typedef OnMutationCompleted$Mutation$PullRepositoryChanges = FutureOr<void>
Function(dynamic, Mutation$PullRepositoryChanges?);
class Options$Mutation$PullRepositoryChanges
extends graphql.MutationOptions<Mutation$PullRepositoryChanges> {
Options$Mutation$PullRepositoryChanges(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$PullRepositoryChanges? onCompleted,
graphql.OnMutationUpdate<Mutation$PullRepositoryChanges>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$PullRepositoryChanges(data)),
update: update,
onError: onError,
document: documentNodeMutationPullRepositoryChanges,
parserFn: _parserFn$Mutation$PullRepositoryChanges);
final OnMutationCompleted$Mutation$PullRepositoryChanges?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$PullRepositoryChanges
extends graphql.WatchQueryOptions<Mutation$PullRepositoryChanges> {
WatchOptions$Mutation$PullRepositoryChanges(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationPullRepositoryChanges,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$PullRepositoryChanges);
}
extension ClientExtension$Mutation$PullRepositoryChanges
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$PullRepositoryChanges>>
mutate$PullRepositoryChanges(
[Options$Mutation$PullRepositoryChanges? options]) async =>
await this
.mutate(options ?? Options$Mutation$PullRepositoryChanges());
graphql.ObservableQuery<Mutation$PullRepositoryChanges>
watchMutation$PullRepositoryChanges(
[WatchOptions$Mutation$PullRepositoryChanges? options]) =>
this.watchMutation(
options ?? WatchOptions$Mutation$PullRepositoryChanges());
}
@JsonSerializable(explicitToJson: true)
class Mutation$PullRepositoryChanges$pullRepositoryChanges
implements Fragment$basicMutationReturnFields {
Mutation$PullRepositoryChanges$pullRepositoryChanges(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$PullRepositoryChanges$pullRepositoryChanges.fromJson(
Map<String, dynamic> json) =>
_$Mutation$PullRepositoryChanges$pullRepositoryChangesFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$PullRepositoryChanges$pullRepositoryChangesToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$PullRepositoryChanges$pullRepositoryChanges) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$PullRepositoryChanges$pullRepositoryChanges
on Mutation$PullRepositoryChanges$pullRepositoryChanges {
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<
Mutation$PullRepositoryChanges$pullRepositoryChanges>
get copyWith =>
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges(
this, (i) => i);
}
abstract class CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<
TRes> {
factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges(
Mutation$PullRepositoryChanges$pullRepositoryChanges instance,
TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges)
then) =
_CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges;
factory CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges.stub(
TRes res) =
_CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes>
implements
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes> {
_CopyWithImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges(
this._instance, this._then);
final Mutation$PullRepositoryChanges$pullRepositoryChanges _instance;
final TRes Function(Mutation$PullRepositoryChanges$pullRepositoryChanges)
_then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$PullRepositoryChanges$pullRepositoryChanges(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges<
TRes>
implements
CopyWith$Mutation$PullRepositoryChanges$pullRepositoryChanges<TRes> {
_CopyWithStubImpl$Mutation$PullRepositoryChanges$pullRepositoryChanges(
this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RebootSystem {
Mutation$RebootSystem(
{required this.rebootSystem, required this.$__typename});
@override
factory Mutation$RebootSystem.fromJson(Map<String, dynamic> json) =>
_$Mutation$RebootSystemFromJson(json);
final Mutation$RebootSystem$rebootSystem rebootSystem;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RebootSystemToJson(this);
int get hashCode {
final l$rebootSystem = rebootSystem;
final l$$__typename = $__typename;
return Object.hashAll([l$rebootSystem, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RebootSystem) || runtimeType != other.runtimeType)
return false;
final l$rebootSystem = rebootSystem;
final lOther$rebootSystem = other.rebootSystem;
if (l$rebootSystem != lOther$rebootSystem) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RebootSystem on Mutation$RebootSystem {
CopyWith$Mutation$RebootSystem<Mutation$RebootSystem> get copyWith =>
CopyWith$Mutation$RebootSystem(this, (i) => i);
}
abstract class CopyWith$Mutation$RebootSystem<TRes> {
factory CopyWith$Mutation$RebootSystem(Mutation$RebootSystem instance,
TRes Function(Mutation$RebootSystem) then) =
_CopyWithImpl$Mutation$RebootSystem;
factory CopyWith$Mutation$RebootSystem.stub(TRes res) =
_CopyWithStubImpl$Mutation$RebootSystem;
TRes call(
{Mutation$RebootSystem$rebootSystem? rebootSystem, String? $__typename});
CopyWith$Mutation$RebootSystem$rebootSystem<TRes> get rebootSystem;
}
class _CopyWithImpl$Mutation$RebootSystem<TRes>
implements CopyWith$Mutation$RebootSystem<TRes> {
_CopyWithImpl$Mutation$RebootSystem(this._instance, this._then);
final Mutation$RebootSystem _instance;
final TRes Function(Mutation$RebootSystem) _then;
static const _undefined = {};
TRes call(
{Object? rebootSystem = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RebootSystem(
rebootSystem: rebootSystem == _undefined || rebootSystem == null
? _instance.rebootSystem
: (rebootSystem as Mutation$RebootSystem$rebootSystem),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RebootSystem$rebootSystem<TRes> get rebootSystem {
final local$rebootSystem = _instance.rebootSystem;
return CopyWith$Mutation$RebootSystem$rebootSystem(
local$rebootSystem, (e) => call(rebootSystem: e));
}
}
class _CopyWithStubImpl$Mutation$RebootSystem<TRes>
implements CopyWith$Mutation$RebootSystem<TRes> {
_CopyWithStubImpl$Mutation$RebootSystem(this._res);
TRes _res;
call(
{Mutation$RebootSystem$rebootSystem? rebootSystem,
String? $__typename}) =>
_res;
CopyWith$Mutation$RebootSystem$rebootSystem<TRes> get rebootSystem =>
CopyWith$Mutation$RebootSystem$rebootSystem.stub(_res);
}
const documentNodeMutationRebootSystem = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RebootSystem'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'rebootSystem'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RebootSystem _parserFn$Mutation$RebootSystem(
Map<String, dynamic> data) =>
Mutation$RebootSystem.fromJson(data);
typedef OnMutationCompleted$Mutation$RebootSystem = FutureOr<void> Function(
dynamic, Mutation$RebootSystem?);
class Options$Mutation$RebootSystem
extends graphql.MutationOptions<Mutation$RebootSystem> {
Options$Mutation$RebootSystem(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RebootSystem? onCompleted,
graphql.OnMutationUpdate<Mutation$RebootSystem>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$RebootSystem(data)),
update: update,
onError: onError,
document: documentNodeMutationRebootSystem,
parserFn: _parserFn$Mutation$RebootSystem);
final OnMutationCompleted$Mutation$RebootSystem? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RebootSystem
extends graphql.WatchQueryOptions<Mutation$RebootSystem> {
WatchOptions$Mutation$RebootSystem(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationRebootSystem,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RebootSystem);
}
extension ClientExtension$Mutation$RebootSystem on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RebootSystem>> mutate$RebootSystem(
[Options$Mutation$RebootSystem? options]) async =>
await this.mutate(options ?? Options$Mutation$RebootSystem());
graphql.ObservableQuery<Mutation$RebootSystem> watchMutation$RebootSystem(
[WatchOptions$Mutation$RebootSystem? options]) =>
this.watchMutation(options ?? WatchOptions$Mutation$RebootSystem());
}
@JsonSerializable(explicitToJson: true)
class Mutation$RebootSystem$rebootSystem
implements Fragment$basicMutationReturnFields {
Mutation$RebootSystem$rebootSystem(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$RebootSystem$rebootSystem.fromJson(
Map<String, dynamic> json) =>
_$Mutation$RebootSystem$rebootSystemFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$RebootSystem$rebootSystemToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RebootSystem$rebootSystem) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RebootSystem$rebootSystem
on Mutation$RebootSystem$rebootSystem {
CopyWith$Mutation$RebootSystem$rebootSystem<
Mutation$RebootSystem$rebootSystem>
get copyWith =>
CopyWith$Mutation$RebootSystem$rebootSystem(this, (i) => i);
}
abstract class CopyWith$Mutation$RebootSystem$rebootSystem<TRes> {
factory CopyWith$Mutation$RebootSystem$rebootSystem(
Mutation$RebootSystem$rebootSystem instance,
TRes Function(Mutation$RebootSystem$rebootSystem) then) =
_CopyWithImpl$Mutation$RebootSystem$rebootSystem;
factory CopyWith$Mutation$RebootSystem$rebootSystem.stub(TRes res) =
_CopyWithStubImpl$Mutation$RebootSystem$rebootSystem;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$RebootSystem$rebootSystem<TRes>
implements CopyWith$Mutation$RebootSystem$rebootSystem<TRes> {
_CopyWithImpl$Mutation$RebootSystem$rebootSystem(this._instance, this._then);
final Mutation$RebootSystem$rebootSystem _instance;
final TRes Function(Mutation$RebootSystem$rebootSystem) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RebootSystem$rebootSystem(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$RebootSystem$rebootSystem<TRes>
implements CopyWith$Mutation$RebootSystem$rebootSystem<TRes> {
_CopyWithStubImpl$Mutation$RebootSystem$rebootSystem(this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiTokens {
Query$GetApiTokens({required this.api, required this.$__typename});
@override
factory Query$GetApiTokens.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiTokensFromJson(json);
final Query$GetApiTokens$api api;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiTokensToJson(this);
int get hashCode {
final l$api = api;
final l$$__typename = $__typename;
return Object.hashAll([l$api, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiTokens) || runtimeType != other.runtimeType)
return false;
final l$api = api;
final lOther$api = other.api;
if (l$api != lOther$api) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiTokens on Query$GetApiTokens {
CopyWith$Query$GetApiTokens<Query$GetApiTokens> get copyWith =>
CopyWith$Query$GetApiTokens(this, (i) => i);
}
abstract class CopyWith$Query$GetApiTokens<TRes> {
factory CopyWith$Query$GetApiTokens(
Query$GetApiTokens instance, TRes Function(Query$GetApiTokens) then) =
_CopyWithImpl$Query$GetApiTokens;
factory CopyWith$Query$GetApiTokens.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiTokens;
TRes call({Query$GetApiTokens$api? api, String? $__typename});
CopyWith$Query$GetApiTokens$api<TRes> get api;
}
class _CopyWithImpl$Query$GetApiTokens<TRes>
implements CopyWith$Query$GetApiTokens<TRes> {
_CopyWithImpl$Query$GetApiTokens(this._instance, this._then);
final Query$GetApiTokens _instance;
final TRes Function(Query$GetApiTokens) _then;
static const _undefined = {};
TRes call({Object? api = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiTokens(
api: api == _undefined || api == null
? _instance.api
: (api as Query$GetApiTokens$api),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Query$GetApiTokens$api<TRes> get api {
final local$api = _instance.api;
return CopyWith$Query$GetApiTokens$api(local$api, (e) => call(api: e));
}
}
class _CopyWithStubImpl$Query$GetApiTokens<TRes>
implements CopyWith$Query$GetApiTokens<TRes> {
_CopyWithStubImpl$Query$GetApiTokens(this._res);
TRes _res;
call({Query$GetApiTokens$api? api, String? $__typename}) => _res;
CopyWith$Query$GetApiTokens$api<TRes> get api =>
CopyWith$Query$GetApiTokens$api.stub(_res);
}
const documentNodeQueryGetApiTokens = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: NameNode(value: 'GetApiTokens'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'api'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'devices'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'creationDate'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'isCaller'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'name'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
]);
Query$GetApiTokens _parserFn$Query$GetApiTokens(Map<String, dynamic> data) =>
Query$GetApiTokens.fromJson(data);
class Options$Query$GetApiTokens
extends graphql.QueryOptions<Query$GetApiTokens> {
Options$Query$GetApiTokens(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
Duration? pollInterval,
graphql.Context? context})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
pollInterval: pollInterval,
context: context,
document: documentNodeQueryGetApiTokens,
parserFn: _parserFn$Query$GetApiTokens);
}
class WatchOptions$Query$GetApiTokens
extends graphql.WatchQueryOptions<Query$GetApiTokens> {
WatchOptions$Query$GetApiTokens(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeQueryGetApiTokens,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Query$GetApiTokens);
}
class FetchMoreOptions$Query$GetApiTokens extends graphql.FetchMoreOptions {
FetchMoreOptions$Query$GetApiTokens(
{required graphql.UpdateQuery updateQuery})
: super(
updateQuery: updateQuery, document: documentNodeQueryGetApiTokens);
}
extension ClientExtension$Query$GetApiTokens on graphql.GraphQLClient {
Future<graphql.QueryResult<Query$GetApiTokens>> query$GetApiTokens(
[Options$Query$GetApiTokens? options]) async =>
await this.query(options ?? Options$Query$GetApiTokens());
graphql.ObservableQuery<Query$GetApiTokens> watchQuery$GetApiTokens(
[WatchOptions$Query$GetApiTokens? options]) =>
this.watchQuery(options ?? WatchOptions$Query$GetApiTokens());
void writeQuery$GetApiTokens(
{required Query$GetApiTokens data, bool broadcast = true}) =>
this.writeQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiTokens)),
data: data.toJson(),
broadcast: broadcast);
Query$GetApiTokens? readQuery$GetApiTokens({bool optimistic = true}) {
final result = this.readQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryGetApiTokens)),
optimistic: optimistic);
return result == null ? null : Query$GetApiTokens.fromJson(result);
}
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiTokens$api {
Query$GetApiTokens$api({required this.devices, required this.$__typename});
@override
factory Query$GetApiTokens$api.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiTokens$apiFromJson(json);
final List<Query$GetApiTokens$api$devices> devices;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiTokens$apiToJson(this);
int get hashCode {
final l$devices = devices;
final l$$__typename = $__typename;
return Object.hashAll(
[Object.hashAll(l$devices.map((v) => v)), l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiTokens$api) || runtimeType != other.runtimeType)
return false;
final l$devices = devices;
final lOther$devices = other.devices;
if (l$devices.length != lOther$devices.length) return false;
for (int i = 0; i < l$devices.length; i++) {
final l$devices$entry = l$devices[i];
final lOther$devices$entry = lOther$devices[i];
if (l$devices$entry != lOther$devices$entry) return false;
}
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiTokens$api on Query$GetApiTokens$api {
CopyWith$Query$GetApiTokens$api<Query$GetApiTokens$api> get copyWith =>
CopyWith$Query$GetApiTokens$api(this, (i) => i);
}
abstract class CopyWith$Query$GetApiTokens$api<TRes> {
factory CopyWith$Query$GetApiTokens$api(Query$GetApiTokens$api instance,
TRes Function(Query$GetApiTokens$api) then) =
_CopyWithImpl$Query$GetApiTokens$api;
factory CopyWith$Query$GetApiTokens$api.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiTokens$api;
TRes call(
{List<Query$GetApiTokens$api$devices>? devices, String? $__typename});
TRes devices(
Iterable<Query$GetApiTokens$api$devices> Function(
Iterable<
CopyWith$Query$GetApiTokens$api$devices<
Query$GetApiTokens$api$devices>>)
_fn);
}
class _CopyWithImpl$Query$GetApiTokens$api<TRes>
implements CopyWith$Query$GetApiTokens$api<TRes> {
_CopyWithImpl$Query$GetApiTokens$api(this._instance, this._then);
final Query$GetApiTokens$api _instance;
final TRes Function(Query$GetApiTokens$api) _then;
static const _undefined = {};
TRes call({Object? devices = _undefined, Object? $__typename = _undefined}) =>
_then(Query$GetApiTokens$api(
devices: devices == _undefined || devices == null
? _instance.devices
: (devices as List<Query$GetApiTokens$api$devices>),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
TRes devices(
Iterable<Query$GetApiTokens$api$devices> Function(
Iterable<
CopyWith$Query$GetApiTokens$api$devices<
Query$GetApiTokens$api$devices>>)
_fn) =>
call(
devices: _fn(_instance.devices.map(
(e) => CopyWith$Query$GetApiTokens$api$devices(e, (i) => i)))
.toList());
}
class _CopyWithStubImpl$Query$GetApiTokens$api<TRes>
implements CopyWith$Query$GetApiTokens$api<TRes> {
_CopyWithStubImpl$Query$GetApiTokens$api(this._res);
TRes _res;
call({List<Query$GetApiTokens$api$devices>? devices, String? $__typename}) =>
_res;
devices(_fn) => _res;
}
@JsonSerializable(explicitToJson: true)
class Query$GetApiTokens$api$devices {
Query$GetApiTokens$api$devices(
{required this.creationDate,
required this.isCaller,
required this.name,
required this.$__typename});
@override
factory Query$GetApiTokens$api$devices.fromJson(Map<String, dynamic> json) =>
_$Query$GetApiTokens$api$devicesFromJson(json);
@JsonKey(fromJson: dateTimeFromJson, toJson: dateTimeToJson)
final DateTime creationDate;
final bool isCaller;
final String name;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$GetApiTokens$api$devicesToJson(this);
int get hashCode {
final l$creationDate = creationDate;
final l$isCaller = isCaller;
final l$name = name;
final l$$__typename = $__typename;
return Object.hashAll([l$creationDate, l$isCaller, l$name, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$GetApiTokens$api$devices) ||
runtimeType != other.runtimeType) return false;
final l$creationDate = creationDate;
final lOther$creationDate = other.creationDate;
if (l$creationDate != lOther$creationDate) return false;
final l$isCaller = isCaller;
final lOther$isCaller = other.isCaller;
if (l$isCaller != lOther$isCaller) return false;
final l$name = name;
final lOther$name = other.name;
if (l$name != lOther$name) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$GetApiTokens$api$devices
on Query$GetApiTokens$api$devices {
CopyWith$Query$GetApiTokens$api$devices<Query$GetApiTokens$api$devices>
get copyWith => CopyWith$Query$GetApiTokens$api$devices(this, (i) => i);
}
abstract class CopyWith$Query$GetApiTokens$api$devices<TRes> {
factory CopyWith$Query$GetApiTokens$api$devices(
Query$GetApiTokens$api$devices instance,
TRes Function(Query$GetApiTokens$api$devices) then) =
_CopyWithImpl$Query$GetApiTokens$api$devices;
factory CopyWith$Query$GetApiTokens$api$devices.stub(TRes res) =
_CopyWithStubImpl$Query$GetApiTokens$api$devices;
TRes call(
{DateTime? creationDate,
bool? isCaller,
String? name,
String? $__typename});
}
class _CopyWithImpl$Query$GetApiTokens$api$devices<TRes>
implements CopyWith$Query$GetApiTokens$api$devices<TRes> {
_CopyWithImpl$Query$GetApiTokens$api$devices(this._instance, this._then);
final Query$GetApiTokens$api$devices _instance;
final TRes Function(Query$GetApiTokens$api$devices) _then;
static const _undefined = {};
TRes call(
{Object? creationDate = _undefined,
Object? isCaller = _undefined,
Object? name = _undefined,
Object? $__typename = _undefined}) =>
_then(Query$GetApiTokens$api$devices(
creationDate: creationDate == _undefined || creationDate == null
? _instance.creationDate
: (creationDate as DateTime),
isCaller: isCaller == _undefined || isCaller == null
? _instance.isCaller
: (isCaller as bool),
name: name == _undefined || name == null
? _instance.name
: (name as String),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Query$GetApiTokens$api$devices<TRes>
implements CopyWith$Query$GetApiTokens$api$devices<TRes> {
_CopyWithStubImpl$Query$GetApiTokens$api$devices(this._res);
TRes _res;
call(
{DateTime? creationDate,
bool? isCaller,
String? name,
String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Query$RecoveryKey {
Query$RecoveryKey({required this.api, required this.$__typename});
@override
factory Query$RecoveryKey.fromJson(Map<String, dynamic> json) =>
_$Query$RecoveryKeyFromJson(json);
final Query$RecoveryKey$api api;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$RecoveryKeyToJson(this);
int get hashCode {
final l$api = api;
final l$$__typename = $__typename;
return Object.hashAll([l$api, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$RecoveryKey) || runtimeType != other.runtimeType)
return false;
final l$api = api;
final lOther$api = other.api;
if (l$api != lOther$api) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$RecoveryKey on Query$RecoveryKey {
CopyWith$Query$RecoveryKey<Query$RecoveryKey> get copyWith =>
CopyWith$Query$RecoveryKey(this, (i) => i);
}
abstract class CopyWith$Query$RecoveryKey<TRes> {
factory CopyWith$Query$RecoveryKey(
Query$RecoveryKey instance, TRes Function(Query$RecoveryKey) then) =
_CopyWithImpl$Query$RecoveryKey;
factory CopyWith$Query$RecoveryKey.stub(TRes res) =
_CopyWithStubImpl$Query$RecoveryKey;
TRes call({Query$RecoveryKey$api? api, String? $__typename});
CopyWith$Query$RecoveryKey$api<TRes> get api;
}
class _CopyWithImpl$Query$RecoveryKey<TRes>
implements CopyWith$Query$RecoveryKey<TRes> {
_CopyWithImpl$Query$RecoveryKey(this._instance, this._then);
final Query$RecoveryKey _instance;
final TRes Function(Query$RecoveryKey) _then;
static const _undefined = {};
TRes call({Object? api = _undefined, Object? $__typename = _undefined}) =>
_then(Query$RecoveryKey(
api: api == _undefined || api == null
? _instance.api
: (api as Query$RecoveryKey$api),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Query$RecoveryKey$api<TRes> get api {
final local$api = _instance.api;
return CopyWith$Query$RecoveryKey$api(local$api, (e) => call(api: e));
}
}
class _CopyWithStubImpl$Query$RecoveryKey<TRes>
implements CopyWith$Query$RecoveryKey<TRes> {
_CopyWithStubImpl$Query$RecoveryKey(this._res);
TRes _res;
call({Query$RecoveryKey$api? api, String? $__typename}) => _res;
CopyWith$Query$RecoveryKey$api<TRes> get api =>
CopyWith$Query$RecoveryKey$api.stub(_res);
}
const documentNodeQueryRecoveryKey = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: NameNode(value: 'RecoveryKey'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'api'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'recoveryKey'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'creationDate'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'exists'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'expirationDate'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'usesLeft'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'valid'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
]);
Query$RecoveryKey _parserFn$Query$RecoveryKey(Map<String, dynamic> data) =>
Query$RecoveryKey.fromJson(data);
class Options$Query$RecoveryKey
extends graphql.QueryOptions<Query$RecoveryKey> {
Options$Query$RecoveryKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
Duration? pollInterval,
graphql.Context? context})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
pollInterval: pollInterval,
context: context,
document: documentNodeQueryRecoveryKey,
parserFn: _parserFn$Query$RecoveryKey);
}
class WatchOptions$Query$RecoveryKey
extends graphql.WatchQueryOptions<Query$RecoveryKey> {
WatchOptions$Query$RecoveryKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeQueryRecoveryKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Query$RecoveryKey);
}
class FetchMoreOptions$Query$RecoveryKey extends graphql.FetchMoreOptions {
FetchMoreOptions$Query$RecoveryKey({required graphql.UpdateQuery updateQuery})
: super(updateQuery: updateQuery, document: documentNodeQueryRecoveryKey);
}
extension ClientExtension$Query$RecoveryKey on graphql.GraphQLClient {
Future<graphql.QueryResult<Query$RecoveryKey>> query$RecoveryKey(
[Options$Query$RecoveryKey? options]) async =>
await this.query(options ?? Options$Query$RecoveryKey());
graphql.ObservableQuery<Query$RecoveryKey> watchQuery$RecoveryKey(
[WatchOptions$Query$RecoveryKey? options]) =>
this.watchQuery(options ?? WatchOptions$Query$RecoveryKey());
void writeQuery$RecoveryKey(
{required Query$RecoveryKey data, bool broadcast = true}) =>
this.writeQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryRecoveryKey)),
data: data.toJson(),
broadcast: broadcast);
Query$RecoveryKey? readQuery$RecoveryKey({bool optimistic = true}) {
final result = this.readQuery(
graphql.Request(
operation:
graphql.Operation(document: documentNodeQueryRecoveryKey)),
optimistic: optimistic);
return result == null ? null : Query$RecoveryKey.fromJson(result);
}
}
@JsonSerializable(explicitToJson: true)
class Query$RecoveryKey$api {
Query$RecoveryKey$api({required this.recoveryKey, required this.$__typename});
@override
factory Query$RecoveryKey$api.fromJson(Map<String, dynamic> json) =>
_$Query$RecoveryKey$apiFromJson(json);
final Query$RecoveryKey$api$recoveryKey recoveryKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Query$RecoveryKey$apiToJson(this);
int get hashCode {
final l$recoveryKey = recoveryKey;
final l$$__typename = $__typename;
return Object.hashAll([l$recoveryKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$RecoveryKey$api) || runtimeType != other.runtimeType)
return false;
final l$recoveryKey = recoveryKey;
final lOther$recoveryKey = other.recoveryKey;
if (l$recoveryKey != lOther$recoveryKey) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$RecoveryKey$api on Query$RecoveryKey$api {
CopyWith$Query$RecoveryKey$api<Query$RecoveryKey$api> get copyWith =>
CopyWith$Query$RecoveryKey$api(this, (i) => i);
}
abstract class CopyWith$Query$RecoveryKey$api<TRes> {
factory CopyWith$Query$RecoveryKey$api(Query$RecoveryKey$api instance,
TRes Function(Query$RecoveryKey$api) then) =
_CopyWithImpl$Query$RecoveryKey$api;
factory CopyWith$Query$RecoveryKey$api.stub(TRes res) =
_CopyWithStubImpl$Query$RecoveryKey$api;
TRes call(
{Query$RecoveryKey$api$recoveryKey? recoveryKey, String? $__typename});
CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> get recoveryKey;
}
class _CopyWithImpl$Query$RecoveryKey$api<TRes>
implements CopyWith$Query$RecoveryKey$api<TRes> {
_CopyWithImpl$Query$RecoveryKey$api(this._instance, this._then);
final Query$RecoveryKey$api _instance;
final TRes Function(Query$RecoveryKey$api) _then;
static const _undefined = {};
TRes call(
{Object? recoveryKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Query$RecoveryKey$api(
recoveryKey: recoveryKey == _undefined || recoveryKey == null
? _instance.recoveryKey
: (recoveryKey as Query$RecoveryKey$api$recoveryKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> get recoveryKey {
final local$recoveryKey = _instance.recoveryKey;
return CopyWith$Query$RecoveryKey$api$recoveryKey(
local$recoveryKey, (e) => call(recoveryKey: e));
}
}
class _CopyWithStubImpl$Query$RecoveryKey$api<TRes>
implements CopyWith$Query$RecoveryKey$api<TRes> {
_CopyWithStubImpl$Query$RecoveryKey$api(this._res);
TRes _res;
call({Query$RecoveryKey$api$recoveryKey? recoveryKey, String? $__typename}) =>
_res;
CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> get recoveryKey =>
CopyWith$Query$RecoveryKey$api$recoveryKey.stub(_res);
}
@JsonSerializable(explicitToJson: true)
class Query$RecoveryKey$api$recoveryKey {
Query$RecoveryKey$api$recoveryKey(
{this.creationDate,
required this.exists,
this.expirationDate,
this.usesLeft,
required this.valid,
required this.$__typename});
@override
factory Query$RecoveryKey$api$recoveryKey.fromJson(
Map<String, dynamic> json) =>
_$Query$RecoveryKey$api$recoveryKeyFromJson(json);
@JsonKey(
fromJson: _nullable$dateTimeFromJson, toJson: _nullable$dateTimeToJson)
final DateTime? creationDate;
final bool exists;
@JsonKey(
fromJson: _nullable$dateTimeFromJson, toJson: _nullable$dateTimeToJson)
final DateTime? expirationDate;
final int? usesLeft;
final bool valid;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Query$RecoveryKey$api$recoveryKeyToJson(this);
int get hashCode {
final l$creationDate = creationDate;
final l$exists = exists;
final l$expirationDate = expirationDate;
final l$usesLeft = usesLeft;
final l$valid = valid;
final l$$__typename = $__typename;
return Object.hashAll([
l$creationDate,
l$exists,
l$expirationDate,
l$usesLeft,
l$valid,
l$$__typename
]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Query$RecoveryKey$api$recoveryKey) ||
runtimeType != other.runtimeType) return false;
final l$creationDate = creationDate;
final lOther$creationDate = other.creationDate;
if (l$creationDate != lOther$creationDate) return false;
final l$exists = exists;
final lOther$exists = other.exists;
if (l$exists != lOther$exists) return false;
final l$expirationDate = expirationDate;
final lOther$expirationDate = other.expirationDate;
if (l$expirationDate != lOther$expirationDate) return false;
final l$usesLeft = usesLeft;
final lOther$usesLeft = other.usesLeft;
if (l$usesLeft != lOther$usesLeft) return false;
final l$valid = valid;
final lOther$valid = other.valid;
if (l$valid != lOther$valid) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Query$RecoveryKey$api$recoveryKey
on Query$RecoveryKey$api$recoveryKey {
CopyWith$Query$RecoveryKey$api$recoveryKey<Query$RecoveryKey$api$recoveryKey>
get copyWith =>
CopyWith$Query$RecoveryKey$api$recoveryKey(this, (i) => i);
}
abstract class CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> {
factory CopyWith$Query$RecoveryKey$api$recoveryKey(
Query$RecoveryKey$api$recoveryKey instance,
TRes Function(Query$RecoveryKey$api$recoveryKey) then) =
_CopyWithImpl$Query$RecoveryKey$api$recoveryKey;
factory CopyWith$Query$RecoveryKey$api$recoveryKey.stub(TRes res) =
_CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey;
TRes call(
{DateTime? creationDate,
bool? exists,
DateTime? expirationDate,
int? usesLeft,
bool? valid,
String? $__typename});
}
class _CopyWithImpl$Query$RecoveryKey$api$recoveryKey<TRes>
implements CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> {
_CopyWithImpl$Query$RecoveryKey$api$recoveryKey(this._instance, this._then);
final Query$RecoveryKey$api$recoveryKey _instance;
final TRes Function(Query$RecoveryKey$api$recoveryKey) _then;
static const _undefined = {};
TRes call(
{Object? creationDate = _undefined,
Object? exists = _undefined,
Object? expirationDate = _undefined,
Object? usesLeft = _undefined,
Object? valid = _undefined,
Object? $__typename = _undefined}) =>
_then(Query$RecoveryKey$api$recoveryKey(
creationDate: creationDate == _undefined
? _instance.creationDate
: (creationDate as DateTime?),
exists: exists == _undefined || exists == null
? _instance.exists
: (exists as bool),
expirationDate: expirationDate == _undefined
? _instance.expirationDate
: (expirationDate as DateTime?),
usesLeft:
usesLeft == _undefined ? _instance.usesLeft : (usesLeft as int?),
valid: valid == _undefined || valid == null
? _instance.valid
: (valid as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey<TRes>
implements CopyWith$Query$RecoveryKey$api$recoveryKey<TRes> {
_CopyWithStubImpl$Query$RecoveryKey$api$recoveryKey(this._res);
TRes _res;
call(
{DateTime? creationDate,
bool? exists,
DateTime? expirationDate,
int? usesLeft,
bool? valid,
String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Variables$Mutation$GetNewRecoveryApiKey {
Variables$Mutation$GetNewRecoveryApiKey({this.limits});
@override
factory Variables$Mutation$GetNewRecoveryApiKey.fromJson(
Map<String, dynamic> json) =>
_$Variables$Mutation$GetNewRecoveryApiKeyFromJson(json);
final Input$RecoveryKeyLimitsInput? limits;
Map<String, dynamic> toJson() =>
_$Variables$Mutation$GetNewRecoveryApiKeyToJson(this);
int get hashCode {
final l$limits = limits;
return Object.hashAll([l$limits]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Variables$Mutation$GetNewRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$limits = limits;
final lOther$limits = other.limits;
if (l$limits != lOther$limits) return false;
return true;
}
CopyWith$Variables$Mutation$GetNewRecoveryApiKey<
Variables$Mutation$GetNewRecoveryApiKey>
get copyWith =>
CopyWith$Variables$Mutation$GetNewRecoveryApiKey(this, (i) => i);
}
abstract class CopyWith$Variables$Mutation$GetNewRecoveryApiKey<TRes> {
factory CopyWith$Variables$Mutation$GetNewRecoveryApiKey(
Variables$Mutation$GetNewRecoveryApiKey instance,
TRes Function(Variables$Mutation$GetNewRecoveryApiKey) then) =
_CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey;
factory CopyWith$Variables$Mutation$GetNewRecoveryApiKey.stub(TRes res) =
_CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey;
TRes call({Input$RecoveryKeyLimitsInput? limits});
}
class _CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey<TRes>
implements CopyWith$Variables$Mutation$GetNewRecoveryApiKey<TRes> {
_CopyWithImpl$Variables$Mutation$GetNewRecoveryApiKey(
this._instance, this._then);
final Variables$Mutation$GetNewRecoveryApiKey _instance;
final TRes Function(Variables$Mutation$GetNewRecoveryApiKey) _then;
static const _undefined = {};
TRes call({Object? limits = _undefined}) =>
_then(Variables$Mutation$GetNewRecoveryApiKey(
limits: limits == _undefined
? _instance.limits
: (limits as Input$RecoveryKeyLimitsInput?)));
}
class _CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey<TRes>
implements CopyWith$Variables$Mutation$GetNewRecoveryApiKey<TRes> {
_CopyWithStubImpl$Variables$Mutation$GetNewRecoveryApiKey(this._res);
TRes _res;
call({Input$RecoveryKeyLimitsInput? limits}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$GetNewRecoveryApiKey {
Mutation$GetNewRecoveryApiKey(
{required this.getNewRecoveryApiKey, required this.$__typename});
@override
factory Mutation$GetNewRecoveryApiKey.fromJson(Map<String, dynamic> json) =>
_$Mutation$GetNewRecoveryApiKeyFromJson(json);
final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey getNewRecoveryApiKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$GetNewRecoveryApiKeyToJson(this);
int get hashCode {
final l$getNewRecoveryApiKey = getNewRecoveryApiKey;
final l$$__typename = $__typename;
return Object.hashAll([l$getNewRecoveryApiKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$GetNewRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$getNewRecoveryApiKey = getNewRecoveryApiKey;
final lOther$getNewRecoveryApiKey = other.getNewRecoveryApiKey;
if (l$getNewRecoveryApiKey != lOther$getNewRecoveryApiKey) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$GetNewRecoveryApiKey
on Mutation$GetNewRecoveryApiKey {
CopyWith$Mutation$GetNewRecoveryApiKey<Mutation$GetNewRecoveryApiKey>
get copyWith => CopyWith$Mutation$GetNewRecoveryApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$GetNewRecoveryApiKey<TRes> {
factory CopyWith$Mutation$GetNewRecoveryApiKey(
Mutation$GetNewRecoveryApiKey instance,
TRes Function(Mutation$GetNewRecoveryApiKey) then) =
_CopyWithImpl$Mutation$GetNewRecoveryApiKey;
factory CopyWith$Mutation$GetNewRecoveryApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$GetNewRecoveryApiKey;
TRes call(
{Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey? getNewRecoveryApiKey,
String? $__typename});
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes>
get getNewRecoveryApiKey;
}
class _CopyWithImpl$Mutation$GetNewRecoveryApiKey<TRes>
implements CopyWith$Mutation$GetNewRecoveryApiKey<TRes> {
_CopyWithImpl$Mutation$GetNewRecoveryApiKey(this._instance, this._then);
final Mutation$GetNewRecoveryApiKey _instance;
final TRes Function(Mutation$GetNewRecoveryApiKey) _then;
static const _undefined = {};
TRes call(
{Object? getNewRecoveryApiKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$GetNewRecoveryApiKey(
getNewRecoveryApiKey:
getNewRecoveryApiKey == _undefined || getNewRecoveryApiKey == null
? _instance.getNewRecoveryApiKey
: (getNewRecoveryApiKey
as Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes>
get getNewRecoveryApiKey {
final local$getNewRecoveryApiKey = _instance.getNewRecoveryApiKey;
return CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
local$getNewRecoveryApiKey, (e) => call(getNewRecoveryApiKey: e));
}
}
class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey<TRes>
implements CopyWith$Mutation$GetNewRecoveryApiKey<TRes> {
_CopyWithStubImpl$Mutation$GetNewRecoveryApiKey(this._res);
TRes _res;
call(
{Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey?
getNewRecoveryApiKey,
String? $__typename}) =>
_res;
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes>
get getNewRecoveryApiKey =>
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub(
_res);
}
const documentNodeMutationGetNewRecoveryApiKey = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'GetNewRecoveryApiKey'),
variableDefinitions: [
VariableDefinitionNode(
variable: VariableNode(name: NameNode(value: 'limits')),
type: NamedTypeNode(
name: NameNode(value: 'RecoveryKeyLimitsInput'),
isNonNull: false),
defaultValue: DefaultValueNode(value: null),
directives: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'getNewRecoveryApiKey'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'limits'),
value: VariableNode(name: NameNode(value: 'limits')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: 'key'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$GetNewRecoveryApiKey _parserFn$Mutation$GetNewRecoveryApiKey(
Map<String, dynamic> data) =>
Mutation$GetNewRecoveryApiKey.fromJson(data);
typedef OnMutationCompleted$Mutation$GetNewRecoveryApiKey = FutureOr<void>
Function(dynamic, Mutation$GetNewRecoveryApiKey?);
class Options$Mutation$GetNewRecoveryApiKey
extends graphql.MutationOptions<Mutation$GetNewRecoveryApiKey> {
Options$Mutation$GetNewRecoveryApiKey(
{String? operationName,
Variables$Mutation$GetNewRecoveryApiKey? variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$GetNewRecoveryApiKey? onCompleted,
graphql.OnMutationUpdate<Mutation$GetNewRecoveryApiKey>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
variables: variables?.toJson() ?? {},
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$GetNewRecoveryApiKey(data)),
update: update,
onError: onError,
document: documentNodeMutationGetNewRecoveryApiKey,
parserFn: _parserFn$Mutation$GetNewRecoveryApiKey);
final OnMutationCompleted$Mutation$GetNewRecoveryApiKey?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$GetNewRecoveryApiKey
extends graphql.WatchQueryOptions<Mutation$GetNewRecoveryApiKey> {
WatchOptions$Mutation$GetNewRecoveryApiKey(
{String? operationName,
Variables$Mutation$GetNewRecoveryApiKey? variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
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,
context: context,
document: documentNodeMutationGetNewRecoveryApiKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$GetNewRecoveryApiKey);
}
extension ClientExtension$Mutation$GetNewRecoveryApiKey
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$GetNewRecoveryApiKey>>
mutate$GetNewRecoveryApiKey(
[Options$Mutation$GetNewRecoveryApiKey? options]) async =>
await this.mutate(options ?? Options$Mutation$GetNewRecoveryApiKey());
graphql.ObservableQuery<Mutation$GetNewRecoveryApiKey>
watchMutation$GetNewRecoveryApiKey(
[WatchOptions$Mutation$GetNewRecoveryApiKey? options]) =>
this.watchMutation(
options ?? WatchOptions$Mutation$GetNewRecoveryApiKey());
}
@JsonSerializable(explicitToJson: true)
class Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey
implements Fragment$basicMutationReturnFields {
Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
{required this.code,
required this.message,
required this.success,
required this.$__typename,
this.key});
@override
factory Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKeyFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
final String? key;
Map<String, dynamic> toJson() =>
_$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKeyToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
final l$key = key;
return Object.hashAll([l$code, l$message, l$success, l$$__typename, l$key]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
final l$key = key;
final lOther$key = other.key;
if (l$key != lOther$key) return false;
return true;
}
}
extension UtilityExtension$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey
on Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey {
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<
Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey>
get copyWith =>
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
this, (i) => i);
}
abstract class CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<
TRes> {
factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey instance,
TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey)
then) =
_CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey;
factory CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey.stub(
TRes res) =
_CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey;
TRes call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? key});
}
class _CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes>
implements
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes> {
_CopyWithImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
this._instance, this._then);
final Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey _instance;
final TRes Function(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined,
Object? key = _undefined}) =>
_then(Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String),
key: key == _undefined ? _instance.key : (key as String?)));
}
class _CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes>
implements
CopyWith$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey<TRes> {
_CopyWithStubImpl$Mutation$GetNewRecoveryApiKey$getNewRecoveryApiKey(
this._res);
TRes _res;
call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? key}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Variables$Mutation$UseRecoveryApiKey {
Variables$Mutation$UseRecoveryApiKey({required this.input});
@override
factory Variables$Mutation$UseRecoveryApiKey.fromJson(
Map<String, dynamic> json) =>
_$Variables$Mutation$UseRecoveryApiKeyFromJson(json);
final Input$UseRecoveryKeyInput input;
Map<String, dynamic> toJson() =>
_$Variables$Mutation$UseRecoveryApiKeyToJson(this);
int get hashCode {
final l$input = input;
return Object.hashAll([l$input]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Variables$Mutation$UseRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$input = input;
final lOther$input = other.input;
if (l$input != lOther$input) return false;
return true;
}
CopyWith$Variables$Mutation$UseRecoveryApiKey<
Variables$Mutation$UseRecoveryApiKey>
get copyWith =>
CopyWith$Variables$Mutation$UseRecoveryApiKey(this, (i) => i);
}
abstract class CopyWith$Variables$Mutation$UseRecoveryApiKey<TRes> {
factory CopyWith$Variables$Mutation$UseRecoveryApiKey(
Variables$Mutation$UseRecoveryApiKey instance,
TRes Function(Variables$Mutation$UseRecoveryApiKey) then) =
_CopyWithImpl$Variables$Mutation$UseRecoveryApiKey;
factory CopyWith$Variables$Mutation$UseRecoveryApiKey.stub(TRes res) =
_CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey;
TRes call({Input$UseRecoveryKeyInput? input});
}
class _CopyWithImpl$Variables$Mutation$UseRecoveryApiKey<TRes>
implements CopyWith$Variables$Mutation$UseRecoveryApiKey<TRes> {
_CopyWithImpl$Variables$Mutation$UseRecoveryApiKey(
this._instance, this._then);
final Variables$Mutation$UseRecoveryApiKey _instance;
final TRes Function(Variables$Mutation$UseRecoveryApiKey) _then;
static const _undefined = {};
TRes call({Object? input = _undefined}) =>
_then(Variables$Mutation$UseRecoveryApiKey(
input: input == _undefined || input == null
? _instance.input
: (input as Input$UseRecoveryKeyInput)));
}
class _CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey<TRes>
implements CopyWith$Variables$Mutation$UseRecoveryApiKey<TRes> {
_CopyWithStubImpl$Variables$Mutation$UseRecoveryApiKey(this._res);
TRes _res;
call({Input$UseRecoveryKeyInput? input}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$UseRecoveryApiKey {
Mutation$UseRecoveryApiKey(
{required this.useRecoveryApiKey, required this.$__typename});
@override
factory Mutation$UseRecoveryApiKey.fromJson(Map<String, dynamic> json) =>
_$Mutation$UseRecoveryApiKeyFromJson(json);
final Mutation$UseRecoveryApiKey$useRecoveryApiKey useRecoveryApiKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$UseRecoveryApiKeyToJson(this);
int get hashCode {
final l$useRecoveryApiKey = useRecoveryApiKey;
final l$$__typename = $__typename;
return Object.hashAll([l$useRecoveryApiKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$UseRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$useRecoveryApiKey = useRecoveryApiKey;
final lOther$useRecoveryApiKey = other.useRecoveryApiKey;
if (l$useRecoveryApiKey != lOther$useRecoveryApiKey) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$UseRecoveryApiKey
on Mutation$UseRecoveryApiKey {
CopyWith$Mutation$UseRecoveryApiKey<Mutation$UseRecoveryApiKey>
get copyWith => CopyWith$Mutation$UseRecoveryApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$UseRecoveryApiKey<TRes> {
factory CopyWith$Mutation$UseRecoveryApiKey(
Mutation$UseRecoveryApiKey instance,
TRes Function(Mutation$UseRecoveryApiKey) then) =
_CopyWithImpl$Mutation$UseRecoveryApiKey;
factory CopyWith$Mutation$UseRecoveryApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$UseRecoveryApiKey;
TRes call(
{Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey,
String? $__typename});
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes>
get useRecoveryApiKey;
}
class _CopyWithImpl$Mutation$UseRecoveryApiKey<TRes>
implements CopyWith$Mutation$UseRecoveryApiKey<TRes> {
_CopyWithImpl$Mutation$UseRecoveryApiKey(this._instance, this._then);
final Mutation$UseRecoveryApiKey _instance;
final TRes Function(Mutation$UseRecoveryApiKey) _then;
static const _undefined = {};
TRes call(
{Object? useRecoveryApiKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$UseRecoveryApiKey(
useRecoveryApiKey:
useRecoveryApiKey == _undefined || useRecoveryApiKey == null
? _instance.useRecoveryApiKey
: (useRecoveryApiKey
as Mutation$UseRecoveryApiKey$useRecoveryApiKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes>
get useRecoveryApiKey {
final local$useRecoveryApiKey = _instance.useRecoveryApiKey;
return CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey(
local$useRecoveryApiKey, (e) => call(useRecoveryApiKey: e));
}
}
class _CopyWithStubImpl$Mutation$UseRecoveryApiKey<TRes>
implements CopyWith$Mutation$UseRecoveryApiKey<TRes> {
_CopyWithStubImpl$Mutation$UseRecoveryApiKey(this._res);
TRes _res;
call(
{Mutation$UseRecoveryApiKey$useRecoveryApiKey? useRecoveryApiKey,
String? $__typename}) =>
_res;
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes>
get useRecoveryApiKey =>
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(_res);
}
const documentNodeMutationUseRecoveryApiKey = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'UseRecoveryApiKey'),
variableDefinitions: [
VariableDefinitionNode(
variable: VariableNode(name: NameNode(value: 'input')),
type: NamedTypeNode(
name: NameNode(value: 'UseRecoveryKeyInput'), isNonNull: true),
defaultValue: DefaultValueNode(value: null),
directives: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'useRecoveryApiKey'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'input'),
value: VariableNode(name: NameNode(value: 'input')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: 'token'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$UseRecoveryApiKey _parserFn$Mutation$UseRecoveryApiKey(
Map<String, dynamic> data) =>
Mutation$UseRecoveryApiKey.fromJson(data);
typedef OnMutationCompleted$Mutation$UseRecoveryApiKey = FutureOr<void>
Function(dynamic, Mutation$UseRecoveryApiKey?);
class Options$Mutation$UseRecoveryApiKey
extends graphql.MutationOptions<Mutation$UseRecoveryApiKey> {
Options$Mutation$UseRecoveryApiKey(
{String? operationName,
required Variables$Mutation$UseRecoveryApiKey variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$UseRecoveryApiKey? onCompleted,
graphql.OnMutationUpdate<Mutation$UseRecoveryApiKey>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
variables: variables.toJson(),
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$UseRecoveryApiKey(data)),
update: update,
onError: onError,
document: documentNodeMutationUseRecoveryApiKey,
parserFn: _parserFn$Mutation$UseRecoveryApiKey);
final OnMutationCompleted$Mutation$UseRecoveryApiKey? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$UseRecoveryApiKey
extends graphql.WatchQueryOptions<Mutation$UseRecoveryApiKey> {
WatchOptions$Mutation$UseRecoveryApiKey(
{String? operationName,
required Variables$Mutation$UseRecoveryApiKey variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
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,
context: context,
document: documentNodeMutationUseRecoveryApiKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$UseRecoveryApiKey);
}
extension ClientExtension$Mutation$UseRecoveryApiKey on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$UseRecoveryApiKey>>
mutate$UseRecoveryApiKey(
Options$Mutation$UseRecoveryApiKey options) async =>
await this.mutate(options);
graphql.ObservableQuery<Mutation$UseRecoveryApiKey>
watchMutation$UseRecoveryApiKey(
WatchOptions$Mutation$UseRecoveryApiKey options) =>
this.watchMutation(options);
}
@JsonSerializable(explicitToJson: true)
class Mutation$UseRecoveryApiKey$useRecoveryApiKey
implements Fragment$basicMutationReturnFields {
Mutation$UseRecoveryApiKey$useRecoveryApiKey(
{required this.code,
required this.message,
required this.success,
required this.$__typename,
this.token});
@override
factory Mutation$UseRecoveryApiKey$useRecoveryApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$UseRecoveryApiKey$useRecoveryApiKeyFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
final String? token;
Map<String, dynamic> toJson() =>
_$Mutation$UseRecoveryApiKey$useRecoveryApiKeyToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
final l$token = token;
return Object.hashAll(
[l$code, l$message, l$success, l$$__typename, l$token]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$UseRecoveryApiKey$useRecoveryApiKey) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
final l$token = token;
final lOther$token = other.token;
if (l$token != lOther$token) return false;
return true;
}
}
extension UtilityExtension$Mutation$UseRecoveryApiKey$useRecoveryApiKey
on Mutation$UseRecoveryApiKey$useRecoveryApiKey {
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<
Mutation$UseRecoveryApiKey$useRecoveryApiKey>
get copyWith =>
CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes> {
factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey(
Mutation$UseRecoveryApiKey$useRecoveryApiKey instance,
TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) then) =
_CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey;
factory CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey;
TRes call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token});
}
class _CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes>
implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes> {
_CopyWithImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey(
this._instance, this._then);
final Mutation$UseRecoveryApiKey$useRecoveryApiKey _instance;
final TRes Function(Mutation$UseRecoveryApiKey$useRecoveryApiKey) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined,
Object? token = _undefined}) =>
_then(Mutation$UseRecoveryApiKey$useRecoveryApiKey(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String),
token: token == _undefined ? _instance.token : (token as String?)));
}
class _CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes>
implements CopyWith$Mutation$UseRecoveryApiKey$useRecoveryApiKey<TRes> {
_CopyWithStubImpl$Mutation$UseRecoveryApiKey$useRecoveryApiKey(this._res);
TRes _res;
call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$RefreshDeviceApiToken {
Mutation$RefreshDeviceApiToken(
{required this.refreshDeviceApiToken, required this.$__typename});
@override
factory Mutation$RefreshDeviceApiToken.fromJson(Map<String, dynamic> json) =>
_$Mutation$RefreshDeviceApiTokenFromJson(json);
final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken
refreshDeviceApiToken;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$RefreshDeviceApiTokenToJson(this);
int get hashCode {
final l$refreshDeviceApiToken = refreshDeviceApiToken;
final l$$__typename = $__typename;
return Object.hashAll([l$refreshDeviceApiToken, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RefreshDeviceApiToken) ||
runtimeType != other.runtimeType) return false;
final l$refreshDeviceApiToken = refreshDeviceApiToken;
final lOther$refreshDeviceApiToken = other.refreshDeviceApiToken;
if (l$refreshDeviceApiToken != lOther$refreshDeviceApiToken) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$RefreshDeviceApiToken
on Mutation$RefreshDeviceApiToken {
CopyWith$Mutation$RefreshDeviceApiToken<Mutation$RefreshDeviceApiToken>
get copyWith => CopyWith$Mutation$RefreshDeviceApiToken(this, (i) => i);
}
abstract class CopyWith$Mutation$RefreshDeviceApiToken<TRes> {
factory CopyWith$Mutation$RefreshDeviceApiToken(
Mutation$RefreshDeviceApiToken instance,
TRes Function(Mutation$RefreshDeviceApiToken) then) =
_CopyWithImpl$Mutation$RefreshDeviceApiToken;
factory CopyWith$Mutation$RefreshDeviceApiToken.stub(TRes res) =
_CopyWithStubImpl$Mutation$RefreshDeviceApiToken;
TRes call(
{Mutation$RefreshDeviceApiToken$refreshDeviceApiToken?
refreshDeviceApiToken,
String? $__typename});
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes>
get refreshDeviceApiToken;
}
class _CopyWithImpl$Mutation$RefreshDeviceApiToken<TRes>
implements CopyWith$Mutation$RefreshDeviceApiToken<TRes> {
_CopyWithImpl$Mutation$RefreshDeviceApiToken(this._instance, this._then);
final Mutation$RefreshDeviceApiToken _instance;
final TRes Function(Mutation$RefreshDeviceApiToken) _then;
static const _undefined = {};
TRes call(
{Object? refreshDeviceApiToken = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$RefreshDeviceApiToken(
refreshDeviceApiToken: refreshDeviceApiToken == _undefined ||
refreshDeviceApiToken == null
? _instance.refreshDeviceApiToken
: (refreshDeviceApiToken
as Mutation$RefreshDeviceApiToken$refreshDeviceApiToken),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes>
get refreshDeviceApiToken {
final local$refreshDeviceApiToken = _instance.refreshDeviceApiToken;
return CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
local$refreshDeviceApiToken, (e) => call(refreshDeviceApiToken: e));
}
}
class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken<TRes>
implements CopyWith$Mutation$RefreshDeviceApiToken<TRes> {
_CopyWithStubImpl$Mutation$RefreshDeviceApiToken(this._res);
TRes _res;
call(
{Mutation$RefreshDeviceApiToken$refreshDeviceApiToken?
refreshDeviceApiToken,
String? $__typename}) =>
_res;
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes>
get refreshDeviceApiToken =>
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub(
_res);
}
const documentNodeMutationRefreshDeviceApiToken = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'RefreshDeviceApiToken'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'refreshDeviceApiToken'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: 'token'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$RefreshDeviceApiToken _parserFn$Mutation$RefreshDeviceApiToken(
Map<String, dynamic> data) =>
Mutation$RefreshDeviceApiToken.fromJson(data);
typedef OnMutationCompleted$Mutation$RefreshDeviceApiToken = FutureOr<void>
Function(dynamic, Mutation$RefreshDeviceApiToken?);
class Options$Mutation$RefreshDeviceApiToken
extends graphql.MutationOptions<Mutation$RefreshDeviceApiToken> {
Options$Mutation$RefreshDeviceApiToken(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$RefreshDeviceApiToken? onCompleted,
graphql.OnMutationUpdate<Mutation$RefreshDeviceApiToken>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$RefreshDeviceApiToken(data)),
update: update,
onError: onError,
document: documentNodeMutationRefreshDeviceApiToken,
parserFn: _parserFn$Mutation$RefreshDeviceApiToken);
final OnMutationCompleted$Mutation$RefreshDeviceApiToken?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$RefreshDeviceApiToken
extends graphql.WatchQueryOptions<Mutation$RefreshDeviceApiToken> {
WatchOptions$Mutation$RefreshDeviceApiToken(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationRefreshDeviceApiToken,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$RefreshDeviceApiToken);
}
extension ClientExtension$Mutation$RefreshDeviceApiToken
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$RefreshDeviceApiToken>>
mutate$RefreshDeviceApiToken(
[Options$Mutation$RefreshDeviceApiToken? options]) async =>
await this
.mutate(options ?? Options$Mutation$RefreshDeviceApiToken());
graphql.ObservableQuery<Mutation$RefreshDeviceApiToken>
watchMutation$RefreshDeviceApiToken(
[WatchOptions$Mutation$RefreshDeviceApiToken? options]) =>
this.watchMutation(
options ?? WatchOptions$Mutation$RefreshDeviceApiToken());
}
@JsonSerializable(explicitToJson: true)
class Mutation$RefreshDeviceApiToken$refreshDeviceApiToken
implements Fragment$basicMutationReturnFields {
Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
{required this.code,
required this.message,
required this.success,
required this.$__typename,
this.token});
@override
factory Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.fromJson(
Map<String, dynamic> json) =>
_$Mutation$RefreshDeviceApiToken$refreshDeviceApiTokenFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
final String? token;
Map<String, dynamic> toJson() =>
_$Mutation$RefreshDeviceApiToken$refreshDeviceApiTokenToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
final l$token = token;
return Object.hashAll(
[l$code, l$message, l$success, l$$__typename, l$token]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$RefreshDeviceApiToken$refreshDeviceApiToken) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
final l$token = token;
final lOther$token = other.token;
if (l$token != lOther$token) return false;
return true;
}
}
extension UtilityExtension$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken
on Mutation$RefreshDeviceApiToken$refreshDeviceApiToken {
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<
Mutation$RefreshDeviceApiToken$refreshDeviceApiToken>
get copyWith =>
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
this, (i) => i);
}
abstract class CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<
TRes> {
factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
Mutation$RefreshDeviceApiToken$refreshDeviceApiToken instance,
TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken)
then) =
_CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken;
factory CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken.stub(
TRes res) =
_CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken;
TRes call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token});
}
class _CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes>
implements
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes> {
_CopyWithImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
this._instance, this._then);
final Mutation$RefreshDeviceApiToken$refreshDeviceApiToken _instance;
final TRes Function(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken)
_then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined,
Object? token = _undefined}) =>
_then(Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String),
token: token == _undefined ? _instance.token : (token as String?)));
}
class _CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<
TRes>
implements
CopyWith$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken<TRes> {
_CopyWithStubImpl$Mutation$RefreshDeviceApiToken$refreshDeviceApiToken(
this._res);
TRes _res;
call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Variables$Mutation$DeleteDeviceApiToken {
Variables$Mutation$DeleteDeviceApiToken({required this.device});
@override
factory Variables$Mutation$DeleteDeviceApiToken.fromJson(
Map<String, dynamic> json) =>
_$Variables$Mutation$DeleteDeviceApiTokenFromJson(json);
final String device;
Map<String, dynamic> toJson() =>
_$Variables$Mutation$DeleteDeviceApiTokenToJson(this);
int get hashCode {
final l$device = device;
return Object.hashAll([l$device]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Variables$Mutation$DeleteDeviceApiToken) ||
runtimeType != other.runtimeType) return false;
final l$device = device;
final lOther$device = other.device;
if (l$device != lOther$device) return false;
return true;
}
CopyWith$Variables$Mutation$DeleteDeviceApiToken<
Variables$Mutation$DeleteDeviceApiToken>
get copyWith =>
CopyWith$Variables$Mutation$DeleteDeviceApiToken(this, (i) => i);
}
abstract class CopyWith$Variables$Mutation$DeleteDeviceApiToken<TRes> {
factory CopyWith$Variables$Mutation$DeleteDeviceApiToken(
Variables$Mutation$DeleteDeviceApiToken instance,
TRes Function(Variables$Mutation$DeleteDeviceApiToken) then) =
_CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken;
factory CopyWith$Variables$Mutation$DeleteDeviceApiToken.stub(TRes res) =
_CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken;
TRes call({String? device});
}
class _CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken<TRes>
implements CopyWith$Variables$Mutation$DeleteDeviceApiToken<TRes> {
_CopyWithImpl$Variables$Mutation$DeleteDeviceApiToken(
this._instance, this._then);
final Variables$Mutation$DeleteDeviceApiToken _instance;
final TRes Function(Variables$Mutation$DeleteDeviceApiToken) _then;
static const _undefined = {};
TRes call({Object? device = _undefined}) =>
_then(Variables$Mutation$DeleteDeviceApiToken(
device: device == _undefined || device == null
? _instance.device
: (device as String)));
}
class _CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken<TRes>
implements CopyWith$Variables$Mutation$DeleteDeviceApiToken<TRes> {
_CopyWithStubImpl$Variables$Mutation$DeleteDeviceApiToken(this._res);
TRes _res;
call({String? device}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$DeleteDeviceApiToken {
Mutation$DeleteDeviceApiToken(
{required this.deleteDeviceApiToken, required this.$__typename});
@override
factory Mutation$DeleteDeviceApiToken.fromJson(Map<String, dynamic> json) =>
_$Mutation$DeleteDeviceApiTokenFromJson(json);
final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken deleteDeviceApiToken;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$DeleteDeviceApiTokenToJson(this);
int get hashCode {
final l$deleteDeviceApiToken = deleteDeviceApiToken;
final l$$__typename = $__typename;
return Object.hashAll([l$deleteDeviceApiToken, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$DeleteDeviceApiToken) ||
runtimeType != other.runtimeType) return false;
final l$deleteDeviceApiToken = deleteDeviceApiToken;
final lOther$deleteDeviceApiToken = other.deleteDeviceApiToken;
if (l$deleteDeviceApiToken != lOther$deleteDeviceApiToken) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$DeleteDeviceApiToken
on Mutation$DeleteDeviceApiToken {
CopyWith$Mutation$DeleteDeviceApiToken<Mutation$DeleteDeviceApiToken>
get copyWith => CopyWith$Mutation$DeleteDeviceApiToken(this, (i) => i);
}
abstract class CopyWith$Mutation$DeleteDeviceApiToken<TRes> {
factory CopyWith$Mutation$DeleteDeviceApiToken(
Mutation$DeleteDeviceApiToken instance,
TRes Function(Mutation$DeleteDeviceApiToken) then) =
_CopyWithImpl$Mutation$DeleteDeviceApiToken;
factory CopyWith$Mutation$DeleteDeviceApiToken.stub(TRes res) =
_CopyWithStubImpl$Mutation$DeleteDeviceApiToken;
TRes call(
{Mutation$DeleteDeviceApiToken$deleteDeviceApiToken? deleteDeviceApiToken,
String? $__typename});
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes>
get deleteDeviceApiToken;
}
class _CopyWithImpl$Mutation$DeleteDeviceApiToken<TRes>
implements CopyWith$Mutation$DeleteDeviceApiToken<TRes> {
_CopyWithImpl$Mutation$DeleteDeviceApiToken(this._instance, this._then);
final Mutation$DeleteDeviceApiToken _instance;
final TRes Function(Mutation$DeleteDeviceApiToken) _then;
static const _undefined = {};
TRes call(
{Object? deleteDeviceApiToken = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$DeleteDeviceApiToken(
deleteDeviceApiToken:
deleteDeviceApiToken == _undefined || deleteDeviceApiToken == null
? _instance.deleteDeviceApiToken
: (deleteDeviceApiToken
as Mutation$DeleteDeviceApiToken$deleteDeviceApiToken),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes>
get deleteDeviceApiToken {
final local$deleteDeviceApiToken = _instance.deleteDeviceApiToken;
return CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
local$deleteDeviceApiToken, (e) => call(deleteDeviceApiToken: e));
}
}
class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken<TRes>
implements CopyWith$Mutation$DeleteDeviceApiToken<TRes> {
_CopyWithStubImpl$Mutation$DeleteDeviceApiToken(this._res);
TRes _res;
call(
{Mutation$DeleteDeviceApiToken$deleteDeviceApiToken?
deleteDeviceApiToken,
String? $__typename}) =>
_res;
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes>
get deleteDeviceApiToken =>
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub(
_res);
}
const documentNodeMutationDeleteDeviceApiToken = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'DeleteDeviceApiToken'),
variableDefinitions: [
VariableDefinitionNode(
variable: VariableNode(name: NameNode(value: 'device')),
type:
NamedTypeNode(name: NameNode(value: 'String'), isNonNull: true),
defaultValue: DefaultValueNode(value: null),
directives: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'deleteDeviceApiToken'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'device'),
value: VariableNode(name: NameNode(value: 'device')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$DeleteDeviceApiToken _parserFn$Mutation$DeleteDeviceApiToken(
Map<String, dynamic> data) =>
Mutation$DeleteDeviceApiToken.fromJson(data);
typedef OnMutationCompleted$Mutation$DeleteDeviceApiToken = FutureOr<void>
Function(dynamic, Mutation$DeleteDeviceApiToken?);
class Options$Mutation$DeleteDeviceApiToken
extends graphql.MutationOptions<Mutation$DeleteDeviceApiToken> {
Options$Mutation$DeleteDeviceApiToken(
{String? operationName,
required Variables$Mutation$DeleteDeviceApiToken variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$DeleteDeviceApiToken? onCompleted,
graphql.OnMutationUpdate<Mutation$DeleteDeviceApiToken>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
variables: variables.toJson(),
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$DeleteDeviceApiToken(data)),
update: update,
onError: onError,
document: documentNodeMutationDeleteDeviceApiToken,
parserFn: _parserFn$Mutation$DeleteDeviceApiToken);
final OnMutationCompleted$Mutation$DeleteDeviceApiToken?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$DeleteDeviceApiToken
extends graphql.WatchQueryOptions<Mutation$DeleteDeviceApiToken> {
WatchOptions$Mutation$DeleteDeviceApiToken(
{String? operationName,
required Variables$Mutation$DeleteDeviceApiToken variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
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,
context: context,
document: documentNodeMutationDeleteDeviceApiToken,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$DeleteDeviceApiToken);
}
extension ClientExtension$Mutation$DeleteDeviceApiToken
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$DeleteDeviceApiToken>>
mutate$DeleteDeviceApiToken(
Options$Mutation$DeleteDeviceApiToken options) async =>
await this.mutate(options);
graphql.ObservableQuery<Mutation$DeleteDeviceApiToken>
watchMutation$DeleteDeviceApiToken(
WatchOptions$Mutation$DeleteDeviceApiToken options) =>
this.watchMutation(options);
}
@JsonSerializable(explicitToJson: true)
class Mutation$DeleteDeviceApiToken$deleteDeviceApiToken
implements Fragment$basicMutationReturnFields {
Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.fromJson(
Map<String, dynamic> json) =>
_$Mutation$DeleteDeviceApiToken$deleteDeviceApiTokenFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$DeleteDeviceApiToken$deleteDeviceApiTokenToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken
on Mutation$DeleteDeviceApiToken$deleteDeviceApiToken {
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<
Mutation$DeleteDeviceApiToken$deleteDeviceApiToken>
get copyWith =>
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
this, (i) => i);
}
abstract class CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<
TRes> {
factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
Mutation$DeleteDeviceApiToken$deleteDeviceApiToken instance,
TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken)
then) =
_CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken;
factory CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken.stub(
TRes res) =
_CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes>
implements
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes> {
_CopyWithImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
this._instance, this._then);
final Mutation$DeleteDeviceApiToken$deleteDeviceApiToken _instance;
final TRes Function(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes>
implements
CopyWith$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken<TRes> {
_CopyWithStubImpl$Mutation$DeleteDeviceApiToken$deleteDeviceApiToken(
this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$GetNewDeviceApiKey {
Mutation$GetNewDeviceApiKey(
{required this.getNewDeviceApiKey, required this.$__typename});
@override
factory Mutation$GetNewDeviceApiKey.fromJson(Map<String, dynamic> json) =>
_$Mutation$GetNewDeviceApiKeyFromJson(json);
final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey getNewDeviceApiKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() => _$Mutation$GetNewDeviceApiKeyToJson(this);
int get hashCode {
final l$getNewDeviceApiKey = getNewDeviceApiKey;
final l$$__typename = $__typename;
return Object.hashAll([l$getNewDeviceApiKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$GetNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$getNewDeviceApiKey = getNewDeviceApiKey;
final lOther$getNewDeviceApiKey = other.getNewDeviceApiKey;
if (l$getNewDeviceApiKey != lOther$getNewDeviceApiKey) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$GetNewDeviceApiKey
on Mutation$GetNewDeviceApiKey {
CopyWith$Mutation$GetNewDeviceApiKey<Mutation$GetNewDeviceApiKey>
get copyWith => CopyWith$Mutation$GetNewDeviceApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$GetNewDeviceApiKey<TRes> {
factory CopyWith$Mutation$GetNewDeviceApiKey(
Mutation$GetNewDeviceApiKey instance,
TRes Function(Mutation$GetNewDeviceApiKey) then) =
_CopyWithImpl$Mutation$GetNewDeviceApiKey;
factory CopyWith$Mutation$GetNewDeviceApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$GetNewDeviceApiKey;
TRes call(
{Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey,
String? $__typename});
CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes>
get getNewDeviceApiKey;
}
class _CopyWithImpl$Mutation$GetNewDeviceApiKey<TRes>
implements CopyWith$Mutation$GetNewDeviceApiKey<TRes> {
_CopyWithImpl$Mutation$GetNewDeviceApiKey(this._instance, this._then);
final Mutation$GetNewDeviceApiKey _instance;
final TRes Function(Mutation$GetNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? getNewDeviceApiKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$GetNewDeviceApiKey(
getNewDeviceApiKey:
getNewDeviceApiKey == _undefined || getNewDeviceApiKey == null
? _instance.getNewDeviceApiKey
: (getNewDeviceApiKey
as Mutation$GetNewDeviceApiKey$getNewDeviceApiKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes>
get getNewDeviceApiKey {
final local$getNewDeviceApiKey = _instance.getNewDeviceApiKey;
return CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
local$getNewDeviceApiKey, (e) => call(getNewDeviceApiKey: e));
}
}
class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey<TRes>
implements CopyWith$Mutation$GetNewDeviceApiKey<TRes> {
_CopyWithStubImpl$Mutation$GetNewDeviceApiKey(this._res);
TRes _res;
call(
{Mutation$GetNewDeviceApiKey$getNewDeviceApiKey? getNewDeviceApiKey,
String? $__typename}) =>
_res;
CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes>
get getNewDeviceApiKey =>
CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub(_res);
}
const documentNodeMutationGetNewDeviceApiKey = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'GetNewDeviceApiKey'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'getNewDeviceApiKey'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: 'key'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$GetNewDeviceApiKey _parserFn$Mutation$GetNewDeviceApiKey(
Map<String, dynamic> data) =>
Mutation$GetNewDeviceApiKey.fromJson(data);
typedef OnMutationCompleted$Mutation$GetNewDeviceApiKey = FutureOr<void>
Function(dynamic, Mutation$GetNewDeviceApiKey?);
class Options$Mutation$GetNewDeviceApiKey
extends graphql.MutationOptions<Mutation$GetNewDeviceApiKey> {
Options$Mutation$GetNewDeviceApiKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$GetNewDeviceApiKey? onCompleted,
graphql.OnMutationUpdate<Mutation$GetNewDeviceApiKey>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$GetNewDeviceApiKey(data)),
update: update,
onError: onError,
document: documentNodeMutationGetNewDeviceApiKey,
parserFn: _parserFn$Mutation$GetNewDeviceApiKey);
final OnMutationCompleted$Mutation$GetNewDeviceApiKey? onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$GetNewDeviceApiKey
extends graphql.WatchQueryOptions<Mutation$GetNewDeviceApiKey> {
WatchOptions$Mutation$GetNewDeviceApiKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationGetNewDeviceApiKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$GetNewDeviceApiKey);
}
extension ClientExtension$Mutation$GetNewDeviceApiKey on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$GetNewDeviceApiKey>>
mutate$GetNewDeviceApiKey(
[Options$Mutation$GetNewDeviceApiKey? options]) async =>
await this.mutate(options ?? Options$Mutation$GetNewDeviceApiKey());
graphql.ObservableQuery<
Mutation$GetNewDeviceApiKey> watchMutation$GetNewDeviceApiKey(
[WatchOptions$Mutation$GetNewDeviceApiKey? options]) =>
this.watchMutation(options ?? WatchOptions$Mutation$GetNewDeviceApiKey());
}
@JsonSerializable(explicitToJson: true)
class Mutation$GetNewDeviceApiKey$getNewDeviceApiKey
implements Fragment$basicMutationReturnFields {
Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
{required this.code,
required this.message,
required this.success,
required this.$__typename,
this.key});
@override
factory Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$GetNewDeviceApiKey$getNewDeviceApiKeyFromJson(json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
final String? key;
Map<String, dynamic> toJson() =>
_$Mutation$GetNewDeviceApiKey$getNewDeviceApiKeyToJson(this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
final l$key = key;
return Object.hashAll([l$code, l$message, l$success, l$$__typename, l$key]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
final l$key = key;
final lOther$key = other.key;
if (l$key != lOther$key) return false;
return true;
}
}
extension UtilityExtension$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey
on Mutation$GetNewDeviceApiKey$getNewDeviceApiKey {
CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<
Mutation$GetNewDeviceApiKey$getNewDeviceApiKey>
get copyWith => CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
this, (i) => i);
}
abstract class CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes> {
factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
Mutation$GetNewDeviceApiKey$getNewDeviceApiKey instance,
TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) then) =
_CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey;
factory CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey.stub(
TRes res) =
_CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey;
TRes call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? key});
}
class _CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes>
implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes> {
_CopyWithImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
this._instance, this._then);
final Mutation$GetNewDeviceApiKey$getNewDeviceApiKey _instance;
final TRes Function(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined,
Object? key = _undefined}) =>
_then(Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String),
key: key == _undefined ? _instance.key : (key as String?)));
}
class _CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes>
implements CopyWith$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey<TRes> {
_CopyWithStubImpl$Mutation$GetNewDeviceApiKey$getNewDeviceApiKey(this._res);
TRes _res;
call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? key}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$InvalidateNewDeviceApiKey {
Mutation$InvalidateNewDeviceApiKey(
{required this.invalidateNewDeviceApiKey, required this.$__typename});
@override
factory Mutation$InvalidateNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$InvalidateNewDeviceApiKeyFromJson(json);
final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey
invalidateNewDeviceApiKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$InvalidateNewDeviceApiKeyToJson(this);
int get hashCode {
final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey;
final l$$__typename = $__typename;
return Object.hashAll([l$invalidateNewDeviceApiKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$InvalidateNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$invalidateNewDeviceApiKey = invalidateNewDeviceApiKey;
final lOther$invalidateNewDeviceApiKey = other.invalidateNewDeviceApiKey;
if (l$invalidateNewDeviceApiKey != lOther$invalidateNewDeviceApiKey)
return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey
on Mutation$InvalidateNewDeviceApiKey {
CopyWith$Mutation$InvalidateNewDeviceApiKey<
Mutation$InvalidateNewDeviceApiKey>
get copyWith =>
CopyWith$Mutation$InvalidateNewDeviceApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey<TRes> {
factory CopyWith$Mutation$InvalidateNewDeviceApiKey(
Mutation$InvalidateNewDeviceApiKey instance,
TRes Function(Mutation$InvalidateNewDeviceApiKey) then) =
_CopyWithImpl$Mutation$InvalidateNewDeviceApiKey;
factory CopyWith$Mutation$InvalidateNewDeviceApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey;
TRes call(
{Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey?
invalidateNewDeviceApiKey,
String? $__typename});
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<TRes>
get invalidateNewDeviceApiKey;
}
class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey<TRes>
implements CopyWith$Mutation$InvalidateNewDeviceApiKey<TRes> {
_CopyWithImpl$Mutation$InvalidateNewDeviceApiKey(this._instance, this._then);
final Mutation$InvalidateNewDeviceApiKey _instance;
final TRes Function(Mutation$InvalidateNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? invalidateNewDeviceApiKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$InvalidateNewDeviceApiKey(
invalidateNewDeviceApiKey: invalidateNewDeviceApiKey == _undefined ||
invalidateNewDeviceApiKey == null
? _instance.invalidateNewDeviceApiKey
: (invalidateNewDeviceApiKey
as Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<TRes>
get invalidateNewDeviceApiKey {
final local$invalidateNewDeviceApiKey = _instance.invalidateNewDeviceApiKey;
return CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
local$invalidateNewDeviceApiKey,
(e) => call(invalidateNewDeviceApiKey: e));
}
}
class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey<TRes>
implements CopyWith$Mutation$InvalidateNewDeviceApiKey<TRes> {
_CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey(this._res);
TRes _res;
call(
{Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey?
invalidateNewDeviceApiKey,
String? $__typename}) =>
_res;
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<TRes>
get invalidateNewDeviceApiKey =>
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey
.stub(_res);
}
const documentNodeMutationInvalidateNewDeviceApiKey =
DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'InvalidateNewDeviceApiKey'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'invalidateNewDeviceApiKey'),
alias: null,
arguments: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$InvalidateNewDeviceApiKey _parserFn$Mutation$InvalidateNewDeviceApiKey(
Map<String, dynamic> data) =>
Mutation$InvalidateNewDeviceApiKey.fromJson(data);
typedef OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey = FutureOr<void>
Function(dynamic, Mutation$InvalidateNewDeviceApiKey?);
class Options$Mutation$InvalidateNewDeviceApiKey
extends graphql.MutationOptions<Mutation$InvalidateNewDeviceApiKey> {
Options$Mutation$InvalidateNewDeviceApiKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey? onCompleted,
graphql.OnMutationUpdate<Mutation$InvalidateNewDeviceApiKey>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$InvalidateNewDeviceApiKey(data)),
update: update,
onError: onError,
document: documentNodeMutationInvalidateNewDeviceApiKey,
parserFn: _parserFn$Mutation$InvalidateNewDeviceApiKey);
final OnMutationCompleted$Mutation$InvalidateNewDeviceApiKey?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$InvalidateNewDeviceApiKey
extends graphql.WatchQueryOptions<Mutation$InvalidateNewDeviceApiKey> {
WatchOptions$Mutation$InvalidateNewDeviceApiKey(
{String? operationName,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
Duration? pollInterval,
bool? eagerlyFetchResults,
bool carryForwardDataOnException = true,
bool fetchResults = false})
: super(
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
document: documentNodeMutationInvalidateNewDeviceApiKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$InvalidateNewDeviceApiKey);
}
extension ClientExtension$Mutation$InvalidateNewDeviceApiKey
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$InvalidateNewDeviceApiKey>>
mutate$InvalidateNewDeviceApiKey(
[Options$Mutation$InvalidateNewDeviceApiKey? options]) async =>
await this
.mutate(options ?? Options$Mutation$InvalidateNewDeviceApiKey());
graphql.ObservableQuery<Mutation$InvalidateNewDeviceApiKey>
watchMutation$InvalidateNewDeviceApiKey(
[WatchOptions$Mutation$InvalidateNewDeviceApiKey? options]) =>
this.watchMutation(
options ?? WatchOptions$Mutation$InvalidateNewDeviceApiKey());
}
@JsonSerializable(explicitToJson: true)
class Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey
implements Fragment$basicMutationReturnFields {
Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
{required this.code,
required this.message,
required this.success,
required this.$__typename});
@override
factory Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKeyFromJson(
json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKeyToJson(
this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
return Object.hashAll([l$code, l$message, l$success, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other
is Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey
on Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey {
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey>
get copyWith =>
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
this, (i) => i);
}
abstract class CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
TRes> {
factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey instance,
TRes Function(
Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey)
then) =
_CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey;
factory CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey.stub(
TRes res) =
_CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey;
TRes call({int? code, String? message, bool? success, String? $__typename});
}
class _CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
TRes>
implements
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
TRes> {
_CopyWithImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
this._instance, this._then);
final Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey _instance;
final TRes Function(
Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
}
class _CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
TRes>
implements
CopyWith$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey<
TRes> {
_CopyWithStubImpl$Mutation$InvalidateNewDeviceApiKey$invalidateNewDeviceApiKey(
this._res);
TRes _res;
call({int? code, String? message, bool? success, String? $__typename}) =>
_res;
}
@JsonSerializable(explicitToJson: true)
class Variables$Mutation$AuthorizeWithNewDeviceApiKey {
Variables$Mutation$AuthorizeWithNewDeviceApiKey({required this.input});
@override
factory Variables$Mutation$AuthorizeWithNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Variables$Mutation$AuthorizeWithNewDeviceApiKeyFromJson(json);
final Input$UseNewDeviceKeyInput input;
Map<String, dynamic> toJson() =>
_$Variables$Mutation$AuthorizeWithNewDeviceApiKeyToJson(this);
int get hashCode {
final l$input = input;
return Object.hashAll([l$input]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Variables$Mutation$AuthorizeWithNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$input = input;
final lOther$input = other.input;
if (l$input != lOther$input) return false;
return true;
}
CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey<
Variables$Mutation$AuthorizeWithNewDeviceApiKey>
get copyWith => CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey(
this, (i) => i);
}
abstract class CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
factory CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey(
Variables$Mutation$AuthorizeWithNewDeviceApiKey instance,
TRes Function(Variables$Mutation$AuthorizeWithNewDeviceApiKey) then) =
_CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey;
factory CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey.stub(
TRes res) =
_CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey;
TRes call({Input$UseNewDeviceKeyInput? input});
}
class _CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey<TRes>
implements CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
_CopyWithImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey(
this._instance, this._then);
final Variables$Mutation$AuthorizeWithNewDeviceApiKey _instance;
final TRes Function(Variables$Mutation$AuthorizeWithNewDeviceApiKey) _then;
static const _undefined = {};
TRes call({Object? input = _undefined}) =>
_then(Variables$Mutation$AuthorizeWithNewDeviceApiKey(
input: input == _undefined || input == null
? _instance.input
: (input as Input$UseNewDeviceKeyInput)));
}
class _CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey<TRes>
implements CopyWith$Variables$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
_CopyWithStubImpl$Variables$Mutation$AuthorizeWithNewDeviceApiKey(this._res);
TRes _res;
call({Input$UseNewDeviceKeyInput? input}) => _res;
}
@JsonSerializable(explicitToJson: true)
class Mutation$AuthorizeWithNewDeviceApiKey {
Mutation$AuthorizeWithNewDeviceApiKey(
{required this.authorizeWithNewDeviceApiKey, required this.$__typename});
@override
factory Mutation$AuthorizeWithNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$AuthorizeWithNewDeviceApiKeyFromJson(json);
final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
authorizeWithNewDeviceApiKey;
@JsonKey(name: '__typename')
final String $__typename;
Map<String, dynamic> toJson() =>
_$Mutation$AuthorizeWithNewDeviceApiKeyToJson(this);
int get hashCode {
final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey;
final l$$__typename = $__typename;
return Object.hashAll([l$authorizeWithNewDeviceApiKey, l$$__typename]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other is Mutation$AuthorizeWithNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$authorizeWithNewDeviceApiKey = authorizeWithNewDeviceApiKey;
final lOther$authorizeWithNewDeviceApiKey =
other.authorizeWithNewDeviceApiKey;
if (l$authorizeWithNewDeviceApiKey != lOther$authorizeWithNewDeviceApiKey)
return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
return true;
}
}
extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey
on Mutation$AuthorizeWithNewDeviceApiKey {
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey<
Mutation$AuthorizeWithNewDeviceApiKey>
get copyWith =>
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey(this, (i) => i);
}
abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey(
Mutation$AuthorizeWithNewDeviceApiKey instance,
TRes Function(Mutation$AuthorizeWithNewDeviceApiKey) then) =
_CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey;
factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey.stub(TRes res) =
_CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey;
TRes call(
{Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey?
authorizeWithNewDeviceApiKey,
String? $__typename});
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes> get authorizeWithNewDeviceApiKey;
}
class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey<TRes>
implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
_CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey(
this._instance, this._then);
final Mutation$AuthorizeWithNewDeviceApiKey _instance;
final TRes Function(Mutation$AuthorizeWithNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? authorizeWithNewDeviceApiKey = _undefined,
Object? $__typename = _undefined}) =>
_then(Mutation$AuthorizeWithNewDeviceApiKey(
authorizeWithNewDeviceApiKey: authorizeWithNewDeviceApiKey ==
_undefined ||
authorizeWithNewDeviceApiKey == null
? _instance.authorizeWithNewDeviceApiKey
: (authorizeWithNewDeviceApiKey
as Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String)));
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes> get authorizeWithNewDeviceApiKey {
final local$authorizeWithNewDeviceApiKey =
_instance.authorizeWithNewDeviceApiKey;
return CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
local$authorizeWithNewDeviceApiKey,
(e) => call(authorizeWithNewDeviceApiKey: e));
}
}
class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey<TRes>
implements CopyWith$Mutation$AuthorizeWithNewDeviceApiKey<TRes> {
_CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey(this._res);
TRes _res;
call(
{Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey?
authorizeWithNewDeviceApiKey,
String? $__typename}) =>
_res;
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes>
get authorizeWithNewDeviceApiKey =>
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
.stub(_res);
}
const documentNodeMutationAuthorizeWithNewDeviceApiKey =
DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.mutation,
name: NameNode(value: 'AuthorizeWithNewDeviceApiKey'),
variableDefinitions: [
VariableDefinitionNode(
variable: VariableNode(name: NameNode(value: 'input')),
type: NamedTypeNode(
name: NameNode(value: 'UseNewDeviceKeyInput'), isNonNull: true),
defaultValue: DefaultValueNode(value: null),
directives: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'authorizeWithNewDeviceApiKey'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'input'),
value: VariableNode(name: NameNode(value: 'input')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FragmentSpreadNode(
name: NameNode(value: 'basicMutationReturnFields'),
directives: []),
FieldNode(
name: NameNode(value: 'token'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
])),
fragmentDefinitionbasicMutationReturnFields,
]);
Mutation$AuthorizeWithNewDeviceApiKey
_parserFn$Mutation$AuthorizeWithNewDeviceApiKey(
Map<String, dynamic> data) =>
Mutation$AuthorizeWithNewDeviceApiKey.fromJson(data);
typedef OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey
= FutureOr<void> Function(dynamic, Mutation$AuthorizeWithNewDeviceApiKey?);
class Options$Mutation$AuthorizeWithNewDeviceApiKey
extends graphql.MutationOptions<Mutation$AuthorizeWithNewDeviceApiKey> {
Options$Mutation$AuthorizeWithNewDeviceApiKey(
{String? operationName,
required Variables$Mutation$AuthorizeWithNewDeviceApiKey variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
graphql.Context? context,
OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey? onCompleted,
graphql.OnMutationUpdate<Mutation$AuthorizeWithNewDeviceApiKey>? update,
graphql.OnError? onError})
: onCompletedWithParsed = onCompleted,
super(
variables: variables.toJson(),
operationName: operationName,
fetchPolicy: fetchPolicy,
errorPolicy: errorPolicy,
cacheRereadPolicy: cacheRereadPolicy,
optimisticResult: optimisticResult,
context: context,
onCompleted: onCompleted == null
? null
: (data) => onCompleted(
data,
data == null
? null
: _parserFn$Mutation$AuthorizeWithNewDeviceApiKey(
data)),
update: update,
onError: onError,
document: documentNodeMutationAuthorizeWithNewDeviceApiKey,
parserFn: _parserFn$Mutation$AuthorizeWithNewDeviceApiKey);
final OnMutationCompleted$Mutation$AuthorizeWithNewDeviceApiKey?
onCompletedWithParsed;
@override
List<Object?> get properties => [
...super.onCompleted == null
? super.properties
: super.properties.where((property) => property != onCompleted),
onCompletedWithParsed
];
}
class WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey
extends graphql.WatchQueryOptions<Mutation$AuthorizeWithNewDeviceApiKey> {
WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey(
{String? operationName,
required Variables$Mutation$AuthorizeWithNewDeviceApiKey variables,
graphql.FetchPolicy? fetchPolicy,
graphql.ErrorPolicy? errorPolicy,
graphql.CacheRereadPolicy? cacheRereadPolicy,
Object? optimisticResult,
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,
context: context,
document: documentNodeMutationAuthorizeWithNewDeviceApiKey,
pollInterval: pollInterval,
eagerlyFetchResults: eagerlyFetchResults,
carryForwardDataOnException: carryForwardDataOnException,
fetchResults: fetchResults,
parserFn: _parserFn$Mutation$AuthorizeWithNewDeviceApiKey);
}
extension ClientExtension$Mutation$AuthorizeWithNewDeviceApiKey
on graphql.GraphQLClient {
Future<graphql.QueryResult<Mutation$AuthorizeWithNewDeviceApiKey>>
mutate$AuthorizeWithNewDeviceApiKey(
Options$Mutation$AuthorizeWithNewDeviceApiKey options) async =>
await this.mutate(options);
graphql.ObservableQuery<Mutation$AuthorizeWithNewDeviceApiKey>
watchMutation$AuthorizeWithNewDeviceApiKey(
WatchOptions$Mutation$AuthorizeWithNewDeviceApiKey options) =>
this.watchMutation(options);
}
@JsonSerializable(explicitToJson: true)
class Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
implements Fragment$basicMutationReturnFields {
Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
{required this.code,
required this.message,
required this.success,
required this.$__typename,
this.token});
@override
factory Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.fromJson(
Map<String, dynamic> json) =>
_$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKeyFromJson(
json);
final int code;
final String message;
final bool success;
@JsonKey(name: '__typename')
final String $__typename;
final String? token;
Map<String, dynamic> toJson() =>
_$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKeyToJson(
this);
int get hashCode {
final l$code = code;
final l$message = message;
final l$success = success;
final l$$__typename = $__typename;
final l$token = token;
return Object.hashAll(
[l$code, l$message, l$success, l$$__typename, l$token]);
}
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (!(other
is Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) ||
runtimeType != other.runtimeType) return false;
final l$code = code;
final lOther$code = other.code;
if (l$code != lOther$code) return false;
final l$message = message;
final lOther$message = other.message;
if (l$message != lOther$message) return false;
final l$success = success;
final lOther$success = other.success;
if (l$success != lOther$success) return false;
final l$$__typename = $__typename;
final lOther$$__typename = other.$__typename;
if (l$$__typename != lOther$$__typename) return false;
final l$token = token;
final lOther$token = other.token;
if (l$token != lOther$token) return false;
return true;
}
}
extension UtilityExtension$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
on Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey {
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey>
get copyWith =>
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
this, (i) => i);
}
abstract class CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes> {
factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
instance,
TRes Function(
Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey)
then) =
_CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey;
factory CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey.stub(
TRes res) =
_CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey;
TRes call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token});
}
class _CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes>
implements
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes> {
_CopyWithImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
this._instance, this._then);
final Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey
_instance;
final TRes Function(
Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey) _then;
static const _undefined = {};
TRes call(
{Object? code = _undefined,
Object? message = _undefined,
Object? success = _undefined,
Object? $__typename = _undefined,
Object? token = _undefined}) =>
_then(Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
code: code == _undefined || code == null
? _instance.code
: (code as int),
message: message == _undefined || message == null
? _instance.message
: (message as String),
success: success == _undefined || success == null
? _instance.success
: (success as bool),
$__typename: $__typename == _undefined || $__typename == null
? _instance.$__typename
: ($__typename as String),
token: token == _undefined ? _instance.token : (token as String?)));
}
class _CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes>
implements
CopyWith$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey<
TRes> {
_CopyWithStubImpl$Mutation$AuthorizeWithNewDeviceApiKey$authorizeWithNewDeviceApiKey(
this._res);
TRes _res;
call(
{int? code,
String? message,
bool? success,
String? $__typename,
String? token}) =>
_res;
}
DateTime? _nullable$dateTimeFromJson(dynamic data) =>
data == null ? null : dateTimeFromJson(data);
dynamic _nullable$dateTimeToJson(DateTime? data) =>
data == null ? null : dateTimeToJson(data);