build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Country build() {
_$Country _$result;
try {
_$result = _$v ??
new _$Country._(
name: name,
topLevelDomain: _topLevelDomain?.build(),
alpha2Code: alpha2Code,
alpha3Code: alpha3Code,
callingCodes: _callingCodes?.build(),
capital: capital,
altSpellings: _altSpellings?.build(),
region: region,
subregion: subregion,
population: population,
latlng: _latlng?.build(),
demonym: demonym,
area: area,
gini: gini,
timezones: _timezones?.build(),
borders: _borders?.build(),
nativeName: nativeName,
numericCode: numericCode,
currencies: _currencies?.build(),
languages: _languages?.build(),
translations: _translations?.build(),
flag: flag,
regionalBlocs: _regionalBlocs?.build(),
cioc: cioc);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'topLevelDomain';
_topLevelDomain?.build();
_$failedField = 'callingCodes';
_callingCodes?.build();
_$failedField = 'altSpellings';
_altSpellings?.build();
_$failedField = 'latlng';
_latlng?.build();
_$failedField = 'timezones';
_timezones?.build();
_$failedField = 'borders';
_borders?.build();
_$failedField = 'currencies';
_currencies?.build();
_$failedField = 'languages';
_languages?.build();
_$failedField = 'translations';
_translations?.build();
_$failedField = 'regionalBlocs';
_regionalBlocs?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Country', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}