build method

  1. @override
_$NetworkState build()
override

Builds.

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

Implementation

@override
_$NetworkState build() {
  _$NetworkState _$result;
  try {
    _$result = _$v ??
        new _$NetworkState._(
            apiEndpoint: BuiltValueNullFieldError.checkNotNull(
                apiEndpoint, 'NetworkState', 'apiEndpoint'),
            https: BuiltValueNullFieldError.checkNotNull(
                https, 'NetworkState', 'https'),
            token: BuiltValueNullFieldError.checkNotNull(
                token, 'NetworkState', 'token'),
            authImpersonateToken: authImpersonateToken,
            isLoading: BuiltValueNullFieldError.checkNotNull(
                isLoading, 'NetworkState', 'isLoading'),
            lastApiError: _lastApiError?.build(),
            networkCompletionStack: networkCompletionStack.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'lastApiError';
      _lastApiError?.build();
      _$failedField = 'networkCompletionStack';
      networkCompletionStack.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'NetworkState', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}