build method

  1. @override
_$Staff build()
override

Builds.

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

Implementation

@override
_$Staff build() {
  _$Staff _$result;
  try {
    _$result = _$v ??
        new _$Staff._(
            malId: BuiltValueNullFieldError.checkNotNull(
                malId, 'Staff', 'malId'),
            url: BuiltValueNullFieldError.checkNotNull(url, 'Staff', 'url'),
            name:
                BuiltValueNullFieldError.checkNotNull(name, 'Staff', 'name'),
            imageUrl: BuiltValueNullFieldError.checkNotNull(
                imageUrl, 'Staff', 'imageUrl'),
            positions: positions.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'positions';
      positions.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'Staff', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}