mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-05 19:29:37 -05:00
chore: add generated dart files
This commit is contained in:
898
packages/gql_github/lib/repos.req.gql.g.dart
Normal file
898
packages/gql_github/lib/repos.req.gql.g.dart
Normal file
@@ -0,0 +1,898 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'repos.req.gql.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// BuiltValueGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Serializer<GReposReq> _$gReposReqSerializer = new _$GReposReqSerializer();
|
||||
Serializer<GStarsReq> _$gStarsReqSerializer = new _$GStarsReqSerializer();
|
||||
Serializer<GRepoPartsReq> _$gRepoPartsReqSerializer =
|
||||
new _$GRepoPartsReqSerializer();
|
||||
|
||||
class _$GReposReqSerializer implements StructuredSerializer<GReposReq> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GReposReq, _$GReposReq];
|
||||
@override
|
||||
final String wireName = 'GReposReq';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(Serializers serializers, GReposReq object,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = <Object?>[
|
||||
'vars',
|
||||
serializers.serialize(object.vars,
|
||||
specifiedType: const FullType(_i3.GReposVars)),
|
||||
'operation',
|
||||
serializers.serialize(object.operation,
|
||||
specifiedType: const FullType(_i4.Operation)),
|
||||
'executeOnListen',
|
||||
serializers.serialize(object.executeOnListen,
|
||||
specifiedType: const FullType(bool)),
|
||||
];
|
||||
Object? value;
|
||||
value = object.requestId;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('requestId')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.optimisticResponse;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('optimisticResponse')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(_i2.GReposData)));
|
||||
}
|
||||
value = object.updateCacheHandlerKey;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('updateCacheHandlerKey')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.updateCacheHandlerContext;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('updateCacheHandlerContext')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(
|
||||
Map, const [const FullType(String), const FullType(dynamic)])));
|
||||
}
|
||||
value = object.fetchPolicy;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('fetchPolicy')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(_i1.FetchPolicy)));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@override
|
||||
GReposReq deserialize(Serializers serializers, Iterable<Object?> serialized,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = new GReposReqBuilder();
|
||||
|
||||
final iterator = serialized.iterator;
|
||||
while (iterator.moveNext()) {
|
||||
final key = iterator.current! as String;
|
||||
iterator.moveNext();
|
||||
final Object? value = iterator.current;
|
||||
switch (key) {
|
||||
case 'vars':
|
||||
result.vars.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i3.GReposVars))!
|
||||
as _i3.GReposVars);
|
||||
break;
|
||||
case 'operation':
|
||||
result.operation = serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i4.Operation))! as _i4.Operation;
|
||||
break;
|
||||
case 'requestId':
|
||||
result.requestId = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String?;
|
||||
break;
|
||||
case 'optimisticResponse':
|
||||
result.optimisticResponse.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i2.GReposData))!
|
||||
as _i2.GReposData);
|
||||
break;
|
||||
case 'updateCacheHandlerKey':
|
||||
result.updateCacheHandlerKey = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String?;
|
||||
break;
|
||||
case 'updateCacheHandlerContext':
|
||||
result.updateCacheHandlerContext = serializers.deserialize(value,
|
||||
specifiedType: const FullType(Map, const [
|
||||
const FullType(String),
|
||||
const FullType(dynamic)
|
||||
])) as Map<String, dynamic>?;
|
||||
break;
|
||||
case 'fetchPolicy':
|
||||
result.fetchPolicy = serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i1.FetchPolicy))
|
||||
as _i1.FetchPolicy?;
|
||||
break;
|
||||
case 'executeOnListen':
|
||||
result.executeOnListen = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool))! as bool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result.build();
|
||||
}
|
||||
}
|
||||
|
||||
class _$GStarsReqSerializer implements StructuredSerializer<GStarsReq> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GStarsReq, _$GStarsReq];
|
||||
@override
|
||||
final String wireName = 'GStarsReq';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(Serializers serializers, GStarsReq object,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = <Object?>[
|
||||
'vars',
|
||||
serializers.serialize(object.vars,
|
||||
specifiedType: const FullType(_i3.GStarsVars)),
|
||||
'operation',
|
||||
serializers.serialize(object.operation,
|
||||
specifiedType: const FullType(_i4.Operation)),
|
||||
'executeOnListen',
|
||||
serializers.serialize(object.executeOnListen,
|
||||
specifiedType: const FullType(bool)),
|
||||
];
|
||||
Object? value;
|
||||
value = object.requestId;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('requestId')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.optimisticResponse;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('optimisticResponse')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(_i2.GStarsData)));
|
||||
}
|
||||
value = object.updateCacheHandlerKey;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('updateCacheHandlerKey')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
value = object.updateCacheHandlerContext;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('updateCacheHandlerContext')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(
|
||||
Map, const [const FullType(String), const FullType(dynamic)])));
|
||||
}
|
||||
value = object.fetchPolicy;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('fetchPolicy')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(_i1.FetchPolicy)));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@override
|
||||
GStarsReq deserialize(Serializers serializers, Iterable<Object?> serialized,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = new GStarsReqBuilder();
|
||||
|
||||
final iterator = serialized.iterator;
|
||||
while (iterator.moveNext()) {
|
||||
final key = iterator.current! as String;
|
||||
iterator.moveNext();
|
||||
final Object? value = iterator.current;
|
||||
switch (key) {
|
||||
case 'vars':
|
||||
result.vars.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i3.GStarsVars))!
|
||||
as _i3.GStarsVars);
|
||||
break;
|
||||
case 'operation':
|
||||
result.operation = serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i4.Operation))! as _i4.Operation;
|
||||
break;
|
||||
case 'requestId':
|
||||
result.requestId = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String?;
|
||||
break;
|
||||
case 'optimisticResponse':
|
||||
result.optimisticResponse.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i2.GStarsData))!
|
||||
as _i2.GStarsData);
|
||||
break;
|
||||
case 'updateCacheHandlerKey':
|
||||
result.updateCacheHandlerKey = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String?;
|
||||
break;
|
||||
case 'updateCacheHandlerContext':
|
||||
result.updateCacheHandlerContext = serializers.deserialize(value,
|
||||
specifiedType: const FullType(Map, const [
|
||||
const FullType(String),
|
||||
const FullType(dynamic)
|
||||
])) as Map<String, dynamic>?;
|
||||
break;
|
||||
case 'fetchPolicy':
|
||||
result.fetchPolicy = serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i1.FetchPolicy))
|
||||
as _i1.FetchPolicy?;
|
||||
break;
|
||||
case 'executeOnListen':
|
||||
result.executeOnListen = serializers.deserialize(value,
|
||||
specifiedType: const FullType(bool))! as bool;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result.build();
|
||||
}
|
||||
}
|
||||
|
||||
class _$GRepoPartsReqSerializer implements StructuredSerializer<GRepoPartsReq> {
|
||||
@override
|
||||
final Iterable<Type> types = const [GRepoPartsReq, _$GRepoPartsReq];
|
||||
@override
|
||||
final String wireName = 'GRepoPartsReq';
|
||||
|
||||
@override
|
||||
Iterable<Object?> serialize(Serializers serializers, GRepoPartsReq object,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = <Object?>[
|
||||
'vars',
|
||||
serializers.serialize(object.vars,
|
||||
specifiedType: const FullType(_i3.GRepoPartsVars)),
|
||||
'document',
|
||||
serializers.serialize(object.document,
|
||||
specifiedType: const FullType(_i7.DocumentNode)),
|
||||
'idFields',
|
||||
serializers.serialize(object.idFields,
|
||||
specifiedType: const FullType(
|
||||
Map, const [const FullType(String), const FullType(dynamic)])),
|
||||
];
|
||||
Object? value;
|
||||
value = object.fragmentName;
|
||||
if (value != null) {
|
||||
result
|
||||
..add('fragmentName')
|
||||
..add(serializers.serialize(value,
|
||||
specifiedType: const FullType(String)));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@override
|
||||
GRepoPartsReq deserialize(
|
||||
Serializers serializers, Iterable<Object?> serialized,
|
||||
{FullType specifiedType = FullType.unspecified}) {
|
||||
final result = new GRepoPartsReqBuilder();
|
||||
|
||||
final iterator = serialized.iterator;
|
||||
while (iterator.moveNext()) {
|
||||
final key = iterator.current! as String;
|
||||
iterator.moveNext();
|
||||
final Object? value = iterator.current;
|
||||
switch (key) {
|
||||
case 'vars':
|
||||
result.vars.replace(serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i3.GRepoPartsVars))!
|
||||
as _i3.GRepoPartsVars);
|
||||
break;
|
||||
case 'document':
|
||||
result.document = serializers.deserialize(value,
|
||||
specifiedType: const FullType(_i7.DocumentNode))!
|
||||
as _i7.DocumentNode;
|
||||
break;
|
||||
case 'fragmentName':
|
||||
result.fragmentName = serializers.deserialize(value,
|
||||
specifiedType: const FullType(String)) as String?;
|
||||
break;
|
||||
case 'idFields':
|
||||
result.idFields = serializers.deserialize(value,
|
||||
specifiedType: const FullType(Map, const [
|
||||
const FullType(String),
|
||||
const FullType(dynamic)
|
||||
]))! as Map<String, dynamic>;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result.build();
|
||||
}
|
||||
}
|
||||
|
||||
class _$GReposReq extends GReposReq {
|
||||
@override
|
||||
final _i3.GReposVars vars;
|
||||
@override
|
||||
final _i4.Operation operation;
|
||||
@override
|
||||
final String? requestId;
|
||||
@override
|
||||
final _i2.GReposData? Function(_i2.GReposData?, _i2.GReposData?)?
|
||||
updateResult;
|
||||
@override
|
||||
final _i2.GReposData? optimisticResponse;
|
||||
@override
|
||||
final String? updateCacheHandlerKey;
|
||||
@override
|
||||
final Map<String, dynamic>? updateCacheHandlerContext;
|
||||
@override
|
||||
final _i1.FetchPolicy? fetchPolicy;
|
||||
@override
|
||||
final bool executeOnListen;
|
||||
|
||||
factory _$GReposReq([void Function(GReposReqBuilder)? updates]) =>
|
||||
(new GReposReqBuilder()..update(updates))._build();
|
||||
|
||||
_$GReposReq._(
|
||||
{required this.vars,
|
||||
required this.operation,
|
||||
this.requestId,
|
||||
this.updateResult,
|
||||
this.optimisticResponse,
|
||||
this.updateCacheHandlerKey,
|
||||
this.updateCacheHandlerContext,
|
||||
this.fetchPolicy,
|
||||
required this.executeOnListen})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(vars, r'GReposReq', 'vars');
|
||||
BuiltValueNullFieldError.checkNotNull(operation, r'GReposReq', 'operation');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
executeOnListen, r'GReposReq', 'executeOnListen');
|
||||
}
|
||||
|
||||
@override
|
||||
GReposReq rebuild(void Function(GReposReqBuilder) updates) =>
|
||||
(toBuilder()..update(updates)).build();
|
||||
|
||||
@override
|
||||
GReposReqBuilder toBuilder() => new GReposReqBuilder()..replace(this);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(other, this)) return true;
|
||||
final dynamic _$dynamicOther = other;
|
||||
return other is GReposReq &&
|
||||
vars == other.vars &&
|
||||
operation == other.operation &&
|
||||
requestId == other.requestId &&
|
||||
updateResult == _$dynamicOther.updateResult &&
|
||||
optimisticResponse == other.optimisticResponse &&
|
||||
updateCacheHandlerKey == other.updateCacheHandlerKey &&
|
||||
updateCacheHandlerContext == other.updateCacheHandlerContext &&
|
||||
fetchPolicy == other.fetchPolicy &&
|
||||
executeOnListen == other.executeOnListen;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return $jf($jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc($jc($jc(0, vars.hashCode), operation.hashCode),
|
||||
requestId.hashCode),
|
||||
updateResult.hashCode),
|
||||
optimisticResponse.hashCode),
|
||||
updateCacheHandlerKey.hashCode),
|
||||
updateCacheHandlerContext.hashCode),
|
||||
fetchPolicy.hashCode),
|
||||
executeOnListen.hashCode));
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return (newBuiltValueToStringHelper(r'GReposReq')
|
||||
..add('vars', vars)
|
||||
..add('operation', operation)
|
||||
..add('requestId', requestId)
|
||||
..add('updateResult', updateResult)
|
||||
..add('optimisticResponse', optimisticResponse)
|
||||
..add('updateCacheHandlerKey', updateCacheHandlerKey)
|
||||
..add('updateCacheHandlerContext', updateCacheHandlerContext)
|
||||
..add('fetchPolicy', fetchPolicy)
|
||||
..add('executeOnListen', executeOnListen))
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
class GReposReqBuilder implements Builder<GReposReq, GReposReqBuilder> {
|
||||
_$GReposReq? _$v;
|
||||
|
||||
_i3.GReposVarsBuilder? _vars;
|
||||
_i3.GReposVarsBuilder get vars =>
|
||||
_$this._vars ??= new _i3.GReposVarsBuilder();
|
||||
set vars(_i3.GReposVarsBuilder? vars) => _$this._vars = vars;
|
||||
|
||||
_i4.Operation? _operation;
|
||||
_i4.Operation? get operation => _$this._operation;
|
||||
set operation(_i4.Operation? operation) => _$this._operation = operation;
|
||||
|
||||
String? _requestId;
|
||||
String? get requestId => _$this._requestId;
|
||||
set requestId(String? requestId) => _$this._requestId = requestId;
|
||||
|
||||
_i2.GReposData? Function(_i2.GReposData?, _i2.GReposData?)? _updateResult;
|
||||
_i2.GReposData? Function(_i2.GReposData?, _i2.GReposData?)?
|
||||
get updateResult => _$this._updateResult;
|
||||
set updateResult(
|
||||
_i2.GReposData? Function(_i2.GReposData?, _i2.GReposData?)?
|
||||
updateResult) =>
|
||||
_$this._updateResult = updateResult;
|
||||
|
||||
_i2.GReposDataBuilder? _optimisticResponse;
|
||||
_i2.GReposDataBuilder get optimisticResponse =>
|
||||
_$this._optimisticResponse ??= new _i2.GReposDataBuilder();
|
||||
set optimisticResponse(_i2.GReposDataBuilder? optimisticResponse) =>
|
||||
_$this._optimisticResponse = optimisticResponse;
|
||||
|
||||
String? _updateCacheHandlerKey;
|
||||
String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey;
|
||||
set updateCacheHandlerKey(String? updateCacheHandlerKey) =>
|
||||
_$this._updateCacheHandlerKey = updateCacheHandlerKey;
|
||||
|
||||
Map<String, dynamic>? _updateCacheHandlerContext;
|
||||
Map<String, dynamic>? get updateCacheHandlerContext =>
|
||||
_$this._updateCacheHandlerContext;
|
||||
set updateCacheHandlerContext(
|
||||
Map<String, dynamic>? updateCacheHandlerContext) =>
|
||||
_$this._updateCacheHandlerContext = updateCacheHandlerContext;
|
||||
|
||||
_i1.FetchPolicy? _fetchPolicy;
|
||||
_i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy;
|
||||
set fetchPolicy(_i1.FetchPolicy? fetchPolicy) =>
|
||||
_$this._fetchPolicy = fetchPolicy;
|
||||
|
||||
bool? _executeOnListen;
|
||||
bool? get executeOnListen => _$this._executeOnListen;
|
||||
set executeOnListen(bool? executeOnListen) =>
|
||||
_$this._executeOnListen = executeOnListen;
|
||||
|
||||
GReposReqBuilder() {
|
||||
GReposReq._initializeBuilder(this);
|
||||
}
|
||||
|
||||
GReposReqBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_vars = $v.vars.toBuilder();
|
||||
_operation = $v.operation;
|
||||
_requestId = $v.requestId;
|
||||
_updateResult = $v.updateResult;
|
||||
_optimisticResponse = $v.optimisticResponse?.toBuilder();
|
||||
_updateCacheHandlerKey = $v.updateCacheHandlerKey;
|
||||
_updateCacheHandlerContext = $v.updateCacheHandlerContext;
|
||||
_fetchPolicy = $v.fetchPolicy;
|
||||
_executeOnListen = $v.executeOnListen;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@override
|
||||
void replace(GReposReq other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
_$v = other as _$GReposReq;
|
||||
}
|
||||
|
||||
@override
|
||||
void update(void Function(GReposReqBuilder)? updates) {
|
||||
if (updates != null) updates(this);
|
||||
}
|
||||
|
||||
@override
|
||||
GReposReq build() => _build();
|
||||
|
||||
_$GReposReq _build() {
|
||||
_$GReposReq _$result;
|
||||
try {
|
||||
_$result = _$v ??
|
||||
new _$GReposReq._(
|
||||
vars: vars.build(),
|
||||
operation: BuiltValueNullFieldError.checkNotNull(
|
||||
operation, r'GReposReq', 'operation'),
|
||||
requestId: requestId,
|
||||
updateResult: updateResult,
|
||||
optimisticResponse: _optimisticResponse?.build(),
|
||||
updateCacheHandlerKey: updateCacheHandlerKey,
|
||||
updateCacheHandlerContext: updateCacheHandlerContext,
|
||||
fetchPolicy: fetchPolicy,
|
||||
executeOnListen: BuiltValueNullFieldError.checkNotNull(
|
||||
executeOnListen, r'GReposReq', 'executeOnListen'));
|
||||
} catch (_) {
|
||||
late String _$failedField;
|
||||
try {
|
||||
_$failedField = 'vars';
|
||||
vars.build();
|
||||
|
||||
_$failedField = 'optimisticResponse';
|
||||
_optimisticResponse?.build();
|
||||
} catch (e) {
|
||||
throw new BuiltValueNestedFieldError(
|
||||
r'GReposReq', _$failedField, e.toString());
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
replace(_$result);
|
||||
return _$result;
|
||||
}
|
||||
}
|
||||
|
||||
class _$GStarsReq extends GStarsReq {
|
||||
@override
|
||||
final _i3.GStarsVars vars;
|
||||
@override
|
||||
final _i4.Operation operation;
|
||||
@override
|
||||
final String? requestId;
|
||||
@override
|
||||
final _i2.GStarsData? Function(_i2.GStarsData?, _i2.GStarsData?)?
|
||||
updateResult;
|
||||
@override
|
||||
final _i2.GStarsData? optimisticResponse;
|
||||
@override
|
||||
final String? updateCacheHandlerKey;
|
||||
@override
|
||||
final Map<String, dynamic>? updateCacheHandlerContext;
|
||||
@override
|
||||
final _i1.FetchPolicy? fetchPolicy;
|
||||
@override
|
||||
final bool executeOnListen;
|
||||
|
||||
factory _$GStarsReq([void Function(GStarsReqBuilder)? updates]) =>
|
||||
(new GStarsReqBuilder()..update(updates))._build();
|
||||
|
||||
_$GStarsReq._(
|
||||
{required this.vars,
|
||||
required this.operation,
|
||||
this.requestId,
|
||||
this.updateResult,
|
||||
this.optimisticResponse,
|
||||
this.updateCacheHandlerKey,
|
||||
this.updateCacheHandlerContext,
|
||||
this.fetchPolicy,
|
||||
required this.executeOnListen})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(vars, r'GStarsReq', 'vars');
|
||||
BuiltValueNullFieldError.checkNotNull(operation, r'GStarsReq', 'operation');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
executeOnListen, r'GStarsReq', 'executeOnListen');
|
||||
}
|
||||
|
||||
@override
|
||||
GStarsReq rebuild(void Function(GStarsReqBuilder) updates) =>
|
||||
(toBuilder()..update(updates)).build();
|
||||
|
||||
@override
|
||||
GStarsReqBuilder toBuilder() => new GStarsReqBuilder()..replace(this);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(other, this)) return true;
|
||||
final dynamic _$dynamicOther = other;
|
||||
return other is GStarsReq &&
|
||||
vars == other.vars &&
|
||||
operation == other.operation &&
|
||||
requestId == other.requestId &&
|
||||
updateResult == _$dynamicOther.updateResult &&
|
||||
optimisticResponse == other.optimisticResponse &&
|
||||
updateCacheHandlerKey == other.updateCacheHandlerKey &&
|
||||
updateCacheHandlerContext == other.updateCacheHandlerContext &&
|
||||
fetchPolicy == other.fetchPolicy &&
|
||||
executeOnListen == other.executeOnListen;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return $jf($jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc(
|
||||
$jc($jc($jc(0, vars.hashCode), operation.hashCode),
|
||||
requestId.hashCode),
|
||||
updateResult.hashCode),
|
||||
optimisticResponse.hashCode),
|
||||
updateCacheHandlerKey.hashCode),
|
||||
updateCacheHandlerContext.hashCode),
|
||||
fetchPolicy.hashCode),
|
||||
executeOnListen.hashCode));
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return (newBuiltValueToStringHelper(r'GStarsReq')
|
||||
..add('vars', vars)
|
||||
..add('operation', operation)
|
||||
..add('requestId', requestId)
|
||||
..add('updateResult', updateResult)
|
||||
..add('optimisticResponse', optimisticResponse)
|
||||
..add('updateCacheHandlerKey', updateCacheHandlerKey)
|
||||
..add('updateCacheHandlerContext', updateCacheHandlerContext)
|
||||
..add('fetchPolicy', fetchPolicy)
|
||||
..add('executeOnListen', executeOnListen))
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
class GStarsReqBuilder implements Builder<GStarsReq, GStarsReqBuilder> {
|
||||
_$GStarsReq? _$v;
|
||||
|
||||
_i3.GStarsVarsBuilder? _vars;
|
||||
_i3.GStarsVarsBuilder get vars =>
|
||||
_$this._vars ??= new _i3.GStarsVarsBuilder();
|
||||
set vars(_i3.GStarsVarsBuilder? vars) => _$this._vars = vars;
|
||||
|
||||
_i4.Operation? _operation;
|
||||
_i4.Operation? get operation => _$this._operation;
|
||||
set operation(_i4.Operation? operation) => _$this._operation = operation;
|
||||
|
||||
String? _requestId;
|
||||
String? get requestId => _$this._requestId;
|
||||
set requestId(String? requestId) => _$this._requestId = requestId;
|
||||
|
||||
_i2.GStarsData? Function(_i2.GStarsData?, _i2.GStarsData?)? _updateResult;
|
||||
_i2.GStarsData? Function(_i2.GStarsData?, _i2.GStarsData?)?
|
||||
get updateResult => _$this._updateResult;
|
||||
set updateResult(
|
||||
_i2.GStarsData? Function(_i2.GStarsData?, _i2.GStarsData?)?
|
||||
updateResult) =>
|
||||
_$this._updateResult = updateResult;
|
||||
|
||||
_i2.GStarsDataBuilder? _optimisticResponse;
|
||||
_i2.GStarsDataBuilder get optimisticResponse =>
|
||||
_$this._optimisticResponse ??= new _i2.GStarsDataBuilder();
|
||||
set optimisticResponse(_i2.GStarsDataBuilder? optimisticResponse) =>
|
||||
_$this._optimisticResponse = optimisticResponse;
|
||||
|
||||
String? _updateCacheHandlerKey;
|
||||
String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey;
|
||||
set updateCacheHandlerKey(String? updateCacheHandlerKey) =>
|
||||
_$this._updateCacheHandlerKey = updateCacheHandlerKey;
|
||||
|
||||
Map<String, dynamic>? _updateCacheHandlerContext;
|
||||
Map<String, dynamic>? get updateCacheHandlerContext =>
|
||||
_$this._updateCacheHandlerContext;
|
||||
set updateCacheHandlerContext(
|
||||
Map<String, dynamic>? updateCacheHandlerContext) =>
|
||||
_$this._updateCacheHandlerContext = updateCacheHandlerContext;
|
||||
|
||||
_i1.FetchPolicy? _fetchPolicy;
|
||||
_i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy;
|
||||
set fetchPolicy(_i1.FetchPolicy? fetchPolicy) =>
|
||||
_$this._fetchPolicy = fetchPolicy;
|
||||
|
||||
bool? _executeOnListen;
|
||||
bool? get executeOnListen => _$this._executeOnListen;
|
||||
set executeOnListen(bool? executeOnListen) =>
|
||||
_$this._executeOnListen = executeOnListen;
|
||||
|
||||
GStarsReqBuilder() {
|
||||
GStarsReq._initializeBuilder(this);
|
||||
}
|
||||
|
||||
GStarsReqBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_vars = $v.vars.toBuilder();
|
||||
_operation = $v.operation;
|
||||
_requestId = $v.requestId;
|
||||
_updateResult = $v.updateResult;
|
||||
_optimisticResponse = $v.optimisticResponse?.toBuilder();
|
||||
_updateCacheHandlerKey = $v.updateCacheHandlerKey;
|
||||
_updateCacheHandlerContext = $v.updateCacheHandlerContext;
|
||||
_fetchPolicy = $v.fetchPolicy;
|
||||
_executeOnListen = $v.executeOnListen;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@override
|
||||
void replace(GStarsReq other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
_$v = other as _$GStarsReq;
|
||||
}
|
||||
|
||||
@override
|
||||
void update(void Function(GStarsReqBuilder)? updates) {
|
||||
if (updates != null) updates(this);
|
||||
}
|
||||
|
||||
@override
|
||||
GStarsReq build() => _build();
|
||||
|
||||
_$GStarsReq _build() {
|
||||
_$GStarsReq _$result;
|
||||
try {
|
||||
_$result = _$v ??
|
||||
new _$GStarsReq._(
|
||||
vars: vars.build(),
|
||||
operation: BuiltValueNullFieldError.checkNotNull(
|
||||
operation, r'GStarsReq', 'operation'),
|
||||
requestId: requestId,
|
||||
updateResult: updateResult,
|
||||
optimisticResponse: _optimisticResponse?.build(),
|
||||
updateCacheHandlerKey: updateCacheHandlerKey,
|
||||
updateCacheHandlerContext: updateCacheHandlerContext,
|
||||
fetchPolicy: fetchPolicy,
|
||||
executeOnListen: BuiltValueNullFieldError.checkNotNull(
|
||||
executeOnListen, r'GStarsReq', 'executeOnListen'));
|
||||
} catch (_) {
|
||||
late String _$failedField;
|
||||
try {
|
||||
_$failedField = 'vars';
|
||||
vars.build();
|
||||
|
||||
_$failedField = 'optimisticResponse';
|
||||
_optimisticResponse?.build();
|
||||
} catch (e) {
|
||||
throw new BuiltValueNestedFieldError(
|
||||
r'GStarsReq', _$failedField, e.toString());
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
replace(_$result);
|
||||
return _$result;
|
||||
}
|
||||
}
|
||||
|
||||
class _$GRepoPartsReq extends GRepoPartsReq {
|
||||
@override
|
||||
final _i3.GRepoPartsVars vars;
|
||||
@override
|
||||
final _i7.DocumentNode document;
|
||||
@override
|
||||
final String? fragmentName;
|
||||
@override
|
||||
final Map<String, dynamic> idFields;
|
||||
|
||||
factory _$GRepoPartsReq([void Function(GRepoPartsReqBuilder)? updates]) =>
|
||||
(new GRepoPartsReqBuilder()..update(updates))._build();
|
||||
|
||||
_$GRepoPartsReq._(
|
||||
{required this.vars,
|
||||
required this.document,
|
||||
this.fragmentName,
|
||||
required this.idFields})
|
||||
: super._() {
|
||||
BuiltValueNullFieldError.checkNotNull(vars, r'GRepoPartsReq', 'vars');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
document, r'GRepoPartsReq', 'document');
|
||||
BuiltValueNullFieldError.checkNotNull(
|
||||
idFields, r'GRepoPartsReq', 'idFields');
|
||||
}
|
||||
|
||||
@override
|
||||
GRepoPartsReq rebuild(void Function(GRepoPartsReqBuilder) updates) =>
|
||||
(toBuilder()..update(updates)).build();
|
||||
|
||||
@override
|
||||
GRepoPartsReqBuilder toBuilder() => new GRepoPartsReqBuilder()..replace(this);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(other, this)) return true;
|
||||
return other is GRepoPartsReq &&
|
||||
vars == other.vars &&
|
||||
document == other.document &&
|
||||
fragmentName == other.fragmentName &&
|
||||
idFields == other.idFields;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return $jf($jc(
|
||||
$jc($jc($jc(0, vars.hashCode), document.hashCode),
|
||||
fragmentName.hashCode),
|
||||
idFields.hashCode));
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return (newBuiltValueToStringHelper(r'GRepoPartsReq')
|
||||
..add('vars', vars)
|
||||
..add('document', document)
|
||||
..add('fragmentName', fragmentName)
|
||||
..add('idFields', idFields))
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
class GRepoPartsReqBuilder
|
||||
implements Builder<GRepoPartsReq, GRepoPartsReqBuilder> {
|
||||
_$GRepoPartsReq? _$v;
|
||||
|
||||
_i3.GRepoPartsVarsBuilder? _vars;
|
||||
_i3.GRepoPartsVarsBuilder get vars =>
|
||||
_$this._vars ??= new _i3.GRepoPartsVarsBuilder();
|
||||
set vars(_i3.GRepoPartsVarsBuilder? vars) => _$this._vars = vars;
|
||||
|
||||
_i7.DocumentNode? _document;
|
||||
_i7.DocumentNode? get document => _$this._document;
|
||||
set document(_i7.DocumentNode? document) => _$this._document = document;
|
||||
|
||||
String? _fragmentName;
|
||||
String? get fragmentName => _$this._fragmentName;
|
||||
set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName;
|
||||
|
||||
Map<String, dynamic>? _idFields;
|
||||
Map<String, dynamic>? get idFields => _$this._idFields;
|
||||
set idFields(Map<String, dynamic>? idFields) => _$this._idFields = idFields;
|
||||
|
||||
GRepoPartsReqBuilder() {
|
||||
GRepoPartsReq._initializeBuilder(this);
|
||||
}
|
||||
|
||||
GRepoPartsReqBuilder get _$this {
|
||||
final $v = _$v;
|
||||
if ($v != null) {
|
||||
_vars = $v.vars.toBuilder();
|
||||
_document = $v.document;
|
||||
_fragmentName = $v.fragmentName;
|
||||
_idFields = $v.idFields;
|
||||
_$v = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@override
|
||||
void replace(GRepoPartsReq other) {
|
||||
ArgumentError.checkNotNull(other, 'other');
|
||||
_$v = other as _$GRepoPartsReq;
|
||||
}
|
||||
|
||||
@override
|
||||
void update(void Function(GRepoPartsReqBuilder)? updates) {
|
||||
if (updates != null) updates(this);
|
||||
}
|
||||
|
||||
@override
|
||||
GRepoPartsReq build() => _build();
|
||||
|
||||
_$GRepoPartsReq _build() {
|
||||
_$GRepoPartsReq _$result;
|
||||
try {
|
||||
_$result = _$v ??
|
||||
new _$GRepoPartsReq._(
|
||||
vars: vars.build(),
|
||||
document: BuiltValueNullFieldError.checkNotNull(
|
||||
document, r'GRepoPartsReq', 'document'),
|
||||
fragmentName: fragmentName,
|
||||
idFields: BuiltValueNullFieldError.checkNotNull(
|
||||
idFields, r'GRepoPartsReq', 'idFields'));
|
||||
} catch (_) {
|
||||
late String _$failedField;
|
||||
try {
|
||||
_$failedField = 'vars';
|
||||
vars.build();
|
||||
} catch (e) {
|
||||
throw new BuiltValueNestedFieldError(
|
||||
r'GRepoPartsReq', _$failedField, e.toString());
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
replace(_$result);
|
||||
return _$result;
|
||||
}
|
||||
}
|
||||
|
||||
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,no_leading_underscores_for_local_identifiers,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new,unnecessary_lambdas
|
||||
Reference in New Issue
Block a user