build method

  1. @override
_$UserProfile build()
override

Builds.

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

Implementation

@override
_$UserProfile build() {
  _$UserProfile _$result;
  try {
    _$result = _$v ??
        new _$UserProfile._(
            userId: userId,
            username: BuiltValueNullFieldError.checkNotNull(
                username, 'UserProfile', 'username'),
            url: BuiltValueNullFieldError.checkNotNull(
                url, 'UserProfile', 'url'),
            imageUrl: imageUrl,
            lastOnline: lastOnline,
            gender: gender,
            birthday: birthday,
            location: location,
            joined: joined,
            animeStats: animeStats.build(),
            mangaStats: mangaStats.build(),
            favorites: favorites.build(),
            about: about);
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'animeStats';
      animeStats.build();
      _$failedField = 'mangaStats';
      mangaStats.build();
      _$failedField = 'favorites';
      favorites.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'UserProfile', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}