build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$GAliasedHeroData build() {
_$GAliasedHeroData _$result;
try {
_$result = _$v ??
new _$GAliasedHeroData._(
G__typename: BuiltValueNullFieldError.checkNotNull(
G__typename, 'GAliasedHeroData', 'G__typename'),
empireHero: _empireHero?.build(),
jediHero: _jediHero?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'empireHero';
_empireHero?.build();
_$failedField = 'jediHero';
_jediHero?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'GAliasedHeroData', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}