build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$GHeroWithFragmentsReq build() {
_$GHeroWithFragmentsReq _$result;
try {
_$result = _$v ??
new _$GHeroWithFragmentsReq._(
vars: vars.build(),
operation: BuiltValueNullFieldError.checkNotNull(
operation, 'GHeroWithFragmentsReq', 'operation'),
requestId: requestId,
updateResult: updateResult,
optimisticResponse: _optimisticResponse?.build(),
updateCacheHandlerKey: updateCacheHandlerKey,
updateCacheHandlerContext: updateCacheHandlerContext,
fetchPolicy: fetchPolicy,
executeOnListen: BuiltValueNullFieldError.checkNotNull(
executeOnListen, 'GHeroWithFragmentsReq', 'executeOnListen'));
} catch (_) {
late String _$failedField;
try {
_$failedField = 'vars';
vars.build();
_$failedField = 'optimisticResponse';
_optimisticResponse?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'GHeroWithFragmentsReq', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}