build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Club build() {
_$Club _$result;
try {
_$result = _$v ??
new _$Club._(
malId:
BuiltValueNullFieldError.checkNotNull(malId, 'Club', 'malId'),
url: BuiltValueNullFieldError.checkNotNull(url, 'Club', 'url'),
imageUrl: BuiltValueNullFieldError.checkNotNull(
imageUrl, 'Club', 'imageUrl'),
title:
BuiltValueNullFieldError.checkNotNull(title, 'Club', 'title'),
membersCount: BuiltValueNullFieldError.checkNotNull(
membersCount, 'Club', 'membersCount'),
picturesCount: BuiltValueNullFieldError.checkNotNull(
picturesCount, 'Club', 'picturesCount'),
category: BuiltValueNullFieldError.checkNotNull(
category, 'Club', 'category'),
created: BuiltValueNullFieldError.checkNotNull(
created, 'Club', 'created'),
type: BuiltValueNullFieldError.checkNotNull(type, 'Club', 'type'),
staff: staff.build(),
animeRelations: animeRelations.build(),
mangaRelations: mangaRelations.build(),
characterRelations: characterRelations.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'staff';
staff.build();
_$failedField = 'animeRelations';
animeRelations.build();
_$failedField = 'mangaRelations';
mangaRelations.build();
_$failedField = 'characterRelations';
characterRelations.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Club', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}