build method

  1. @override
_$GAliasedHeroData_empireHero build()
override

Builds.

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

Implementation

@override
_$GAliasedHeroData_empireHero build() {
  _$GAliasedHeroData_empireHero _$result;
  try {
    _$result = _$v ??
        new _$GAliasedHeroData_empireHero._(
            G__typename: BuiltValueNullFieldError.checkNotNull(
                G__typename, 'GAliasedHeroData_empireHero', 'G__typename'),
            id: BuiltValueNullFieldError.checkNotNull(
                id, 'GAliasedHeroData_empireHero', 'id'),
            name: BuiltValueNullFieldError.checkNotNull(
                name, 'GAliasedHeroData_empireHero', 'name'),
            from: from.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'from';
      from.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'GAliasedHeroData_empireHero', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}