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