build method

  1. @override
_$GHeroNoVarsReq build()
override

Builds.

The implementation of this method will be generated for you by the built_value generator.

Implementation

@override
_$GHeroNoVarsReq build() {
  _$GHeroNoVarsReq _$result;
  try {
    _$result = _$v ??
        new _$GHeroNoVarsReq._(
            vars: vars.build(),
            operation: BuiltValueNullFieldError.checkNotNull(
                operation, 'GHeroNoVarsReq', 'operation'),
            requestId: requestId,
            updateResult: updateResult,
            optimisticResponse: _optimisticResponse?.build(),
            updateCacheHandlerKey: updateCacheHandlerKey,
            updateCacheHandlerContext: updateCacheHandlerContext,
            fetchPolicy: fetchPolicy,
            executeOnListen: BuiltValueNullFieldError.checkNotNull(
                executeOnListen, 'GHeroNoVarsReq', 'executeOnListen'));
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'vars';
      vars.build();

      _$failedField = 'optimisticResponse';
      _optimisticResponse?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'GHeroNoVarsReq', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}