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