686 lines
23 KiB
Dart
686 lines
23 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'issues.req.gql.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// BuiltValueGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
Serializer<GIssuesReq> _$gIssuesReqSerializer = new _$GIssuesReqSerializer();
|
||
|
Serializer<GPullsReq> _$gPullsReqSerializer = new _$GPullsReqSerializer();
|
||
|
|
||
|
class _$GIssuesReqSerializer implements StructuredSerializer<GIssuesReq> {
|
||
|
@override
|
||
|
final Iterable<Type> types = const [GIssuesReq, _$GIssuesReq];
|
||
|
@override
|
||
|
final String wireName = 'GIssuesReq';
|
||
|
|
||
|
@override
|
||
|
Iterable<Object?> serialize(Serializers serializers, GIssuesReq object,
|
||
|
{FullType specifiedType = FullType.unspecified}) {
|
||
|
final result = <Object?>[
|
||
|
'vars',
|
||
|
serializers.serialize(object.vars,
|
||
|
specifiedType: const FullType(_i3.GIssuesVars)),
|
||
|
'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.GIssuesData)));
|
||
|
}
|
||
|
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
|
||
|
GIssuesReq deserialize(Serializers serializers, Iterable<Object?> serialized,
|
||
|
{FullType specifiedType = FullType.unspecified}) {
|
||
|
final result = new GIssuesReqBuilder();
|
||
|
|
||
|
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.GIssuesVars))!
|
||
|
as _i3.GIssuesVars);
|
||
|
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.GIssuesData))!
|
||
|
as _i2.GIssuesData);
|
||
|
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 _$GPullsReqSerializer implements StructuredSerializer<GPullsReq> {
|
||
|
@override
|
||
|
final Iterable<Type> types = const [GPullsReq, _$GPullsReq];
|
||
|
@override
|
||
|
final String wireName = 'GPullsReq';
|
||
|
|
||
|
@override
|
||
|
Iterable<Object?> serialize(Serializers serializers, GPullsReq object,
|
||
|
{FullType specifiedType = FullType.unspecified}) {
|
||
|
final result = <Object?>[
|
||
|
'vars',
|
||
|
serializers.serialize(object.vars,
|
||
|
specifiedType: const FullType(_i3.GPullsVars)),
|
||
|
'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.GPullsData)));
|
||
|
}
|
||
|
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
|
||
|
GPullsReq deserialize(Serializers serializers, Iterable<Object?> serialized,
|
||
|
{FullType specifiedType = FullType.unspecified}) {
|
||
|
final result = new GPullsReqBuilder();
|
||
|
|
||
|
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.GPullsVars))!
|
||
|
as _i3.GPullsVars);
|
||
|
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.GPullsData))!
|
||
|
as _i2.GPullsData);
|
||
|
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 _$GIssuesReq extends GIssuesReq {
|
||
|
@override
|
||
|
final _i3.GIssuesVars vars;
|
||
|
@override
|
||
|
final _i4.Operation operation;
|
||
|
@override
|
||
|
final String? requestId;
|
||
|
@override
|
||
|
final _i2.GIssuesData? Function(_i2.GIssuesData?, _i2.GIssuesData?)?
|
||
|
updateResult;
|
||
|
@override
|
||
|
final _i2.GIssuesData? optimisticResponse;
|
||
|
@override
|
||
|
final String? updateCacheHandlerKey;
|
||
|
@override
|
||
|
final Map<String, dynamic>? updateCacheHandlerContext;
|
||
|
@override
|
||
|
final _i1.FetchPolicy? fetchPolicy;
|
||
|
@override
|
||
|
final bool executeOnListen;
|
||
|
|
||
|
factory _$GIssuesReq([void Function(GIssuesReqBuilder)? updates]) =>
|
||
|
(new GIssuesReqBuilder()..update(updates))._build();
|
||
|
|
||
|
_$GIssuesReq._(
|
||
|
{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'GIssuesReq', 'vars');
|
||
|
BuiltValueNullFieldError.checkNotNull(
|
||
|
operation, r'GIssuesReq', 'operation');
|
||
|
BuiltValueNullFieldError.checkNotNull(
|
||
|
executeOnListen, r'GIssuesReq', 'executeOnListen');
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
GIssuesReq rebuild(void Function(GIssuesReqBuilder) updates) =>
|
||
|
(toBuilder()..update(updates)).build();
|
||
|
|
||
|
@override
|
||
|
GIssuesReqBuilder toBuilder() => new GIssuesReqBuilder()..replace(this);
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) {
|
||
|
if (identical(other, this)) return true;
|
||
|
final dynamic _$dynamicOther = other;
|
||
|
return other is GIssuesReq &&
|
||
|
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'GIssuesReq')
|
||
|
..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 GIssuesReqBuilder implements Builder<GIssuesReq, GIssuesReqBuilder> {
|
||
|
_$GIssuesReq? _$v;
|
||
|
|
||
|
_i3.GIssuesVarsBuilder? _vars;
|
||
|
_i3.GIssuesVarsBuilder get vars =>
|
||
|
_$this._vars ??= new _i3.GIssuesVarsBuilder();
|
||
|
set vars(_i3.GIssuesVarsBuilder? 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.GIssuesData? Function(_i2.GIssuesData?, _i2.GIssuesData?)? _updateResult;
|
||
|
_i2.GIssuesData? Function(_i2.GIssuesData?, _i2.GIssuesData?)?
|
||
|
get updateResult => _$this._updateResult;
|
||
|
set updateResult(
|
||
|
_i2.GIssuesData? Function(_i2.GIssuesData?, _i2.GIssuesData?)?
|
||
|
updateResult) =>
|
||
|
_$this._updateResult = updateResult;
|
||
|
|
||
|
_i2.GIssuesDataBuilder? _optimisticResponse;
|
||
|
_i2.GIssuesDataBuilder get optimisticResponse =>
|
||
|
_$this._optimisticResponse ??= new _i2.GIssuesDataBuilder();
|
||
|
set optimisticResponse(_i2.GIssuesDataBuilder? 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;
|
||
|
|
||
|
GIssuesReqBuilder() {
|
||
|
GIssuesReq._initializeBuilder(this);
|
||
|
}
|
||
|
|
||
|
GIssuesReqBuilder 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(GIssuesReq other) {
|
||
|
ArgumentError.checkNotNull(other, 'other');
|
||
|
_$v = other as _$GIssuesReq;
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void update(void Function(GIssuesReqBuilder)? updates) {
|
||
|
if (updates != null) updates(this);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
GIssuesReq build() => _build();
|
||
|
|
||
|
_$GIssuesReq _build() {
|
||
|
_$GIssuesReq _$result;
|
||
|
try {
|
||
|
_$result = _$v ??
|
||
|
new _$GIssuesReq._(
|
||
|
vars: vars.build(),
|
||
|
operation: BuiltValueNullFieldError.checkNotNull(
|
||
|
operation, r'GIssuesReq', 'operation'),
|
||
|
requestId: requestId,
|
||
|
updateResult: updateResult,
|
||
|
optimisticResponse: _optimisticResponse?.build(),
|
||
|
updateCacheHandlerKey: updateCacheHandlerKey,
|
||
|
updateCacheHandlerContext: updateCacheHandlerContext,
|
||
|
fetchPolicy: fetchPolicy,
|
||
|
executeOnListen: BuiltValueNullFieldError.checkNotNull(
|
||
|
executeOnListen, r'GIssuesReq', 'executeOnListen'));
|
||
|
} catch (_) {
|
||
|
late String _$failedField;
|
||
|
try {
|
||
|
_$failedField = 'vars';
|
||
|
vars.build();
|
||
|
|
||
|
_$failedField = 'optimisticResponse';
|
||
|
_optimisticResponse?.build();
|
||
|
} catch (e) {
|
||
|
throw new BuiltValueNestedFieldError(
|
||
|
r'GIssuesReq', _$failedField, e.toString());
|
||
|
}
|
||
|
rethrow;
|
||
|
}
|
||
|
replace(_$result);
|
||
|
return _$result;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class _$GPullsReq extends GPullsReq {
|
||
|
@override
|
||
|
final _i3.GPullsVars vars;
|
||
|
@override
|
||
|
final _i4.Operation operation;
|
||
|
@override
|
||
|
final String? requestId;
|
||
|
@override
|
||
|
final _i2.GPullsData? Function(_i2.GPullsData?, _i2.GPullsData?)?
|
||
|
updateResult;
|
||
|
@override
|
||
|
final _i2.GPullsData? optimisticResponse;
|
||
|
@override
|
||
|
final String? updateCacheHandlerKey;
|
||
|
@override
|
||
|
final Map<String, dynamic>? updateCacheHandlerContext;
|
||
|
@override
|
||
|
final _i1.FetchPolicy? fetchPolicy;
|
||
|
@override
|
||
|
final bool executeOnListen;
|
||
|
|
||
|
factory _$GPullsReq([void Function(GPullsReqBuilder)? updates]) =>
|
||
|
(new GPullsReqBuilder()..update(updates))._build();
|
||
|
|
||
|
_$GPullsReq._(
|
||
|
{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'GPullsReq', 'vars');
|
||
|
BuiltValueNullFieldError.checkNotNull(operation, r'GPullsReq', 'operation');
|
||
|
BuiltValueNullFieldError.checkNotNull(
|
||
|
executeOnListen, r'GPullsReq', 'executeOnListen');
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
GPullsReq rebuild(void Function(GPullsReqBuilder) updates) =>
|
||
|
(toBuilder()..update(updates)).build();
|
||
|
|
||
|
@override
|
||
|
GPullsReqBuilder toBuilder() => new GPullsReqBuilder()..replace(this);
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) {
|
||
|
if (identical(other, this)) return true;
|
||
|
final dynamic _$dynamicOther = other;
|
||
|
return other is GPullsReq &&
|
||
|
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'GPullsReq')
|
||
|
..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 GPullsReqBuilder implements Builder<GPullsReq, GPullsReqBuilder> {
|
||
|
_$GPullsReq? _$v;
|
||
|
|
||
|
_i3.GPullsVarsBuilder? _vars;
|
||
|
_i3.GPullsVarsBuilder get vars =>
|
||
|
_$this._vars ??= new _i3.GPullsVarsBuilder();
|
||
|
set vars(_i3.GPullsVarsBuilder? 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.GPullsData? Function(_i2.GPullsData?, _i2.GPullsData?)? _updateResult;
|
||
|
_i2.GPullsData? Function(_i2.GPullsData?, _i2.GPullsData?)?
|
||
|
get updateResult => _$this._updateResult;
|
||
|
set updateResult(
|
||
|
_i2.GPullsData? Function(_i2.GPullsData?, _i2.GPullsData?)?
|
||
|
updateResult) =>
|
||
|
_$this._updateResult = updateResult;
|
||
|
|
||
|
_i2.GPullsDataBuilder? _optimisticResponse;
|
||
|
_i2.GPullsDataBuilder get optimisticResponse =>
|
||
|
_$this._optimisticResponse ??= new _i2.GPullsDataBuilder();
|
||
|
set optimisticResponse(_i2.GPullsDataBuilder? 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;
|
||
|
|
||
|
GPullsReqBuilder() {
|
||
|
GPullsReq._initializeBuilder(this);
|
||
|
}
|
||
|
|
||
|
GPullsReqBuilder 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(GPullsReq other) {
|
||
|
ArgumentError.checkNotNull(other, 'other');
|
||
|
_$v = other as _$GPullsReq;
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void update(void Function(GPullsReqBuilder)? updates) {
|
||
|
if (updates != null) updates(this);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
GPullsReq build() => _build();
|
||
|
|
||
|
_$GPullsReq _build() {
|
||
|
_$GPullsReq _$result;
|
||
|
try {
|
||
|
_$result = _$v ??
|
||
|
new _$GPullsReq._(
|
||
|
vars: vars.build(),
|
||
|
operation: BuiltValueNullFieldError.checkNotNull(
|
||
|
operation, r'GPullsReq', 'operation'),
|
||
|
requestId: requestId,
|
||
|
updateResult: updateResult,
|
||
|
optimisticResponse: _optimisticResponse?.build(),
|
||
|
updateCacheHandlerKey: updateCacheHandlerKey,
|
||
|
updateCacheHandlerContext: updateCacheHandlerContext,
|
||
|
fetchPolicy: fetchPolicy,
|
||
|
executeOnListen: BuiltValueNullFieldError.checkNotNull(
|
||
|
executeOnListen, r'GPullsReq', 'executeOnListen'));
|
||
|
} catch (_) {
|
||
|
late String _$failedField;
|
||
|
try {
|
||
|
_$failedField = 'vars';
|
||
|
vars.build();
|
||
|
|
||
|
_$failedField = 'optimisticResponse';
|
||
|
_optimisticResponse?.build();
|
||
|
} catch (e) {
|
||
|
throw new BuiltValueNestedFieldError(
|
||
|
r'GPullsReq', _$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
|