build method

  1. @override
_$UserThread build()
override

Builds.

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

Implementation

@override
_$UserThread build() {
  _$UserThread _$result;
  try {
    _$result = _$v ??
        new _$UserThread._(
            id: id,
            replyCount: replyCount,
            lastReplyAt: lastReplyAt,
            lastViewedAt: lastViewedAt,
            participants: _participants?.build(),
            post: _post?.build());
  } catch (_) {
    late String _$failedField;
    try {
      _$failedField = 'participants';
      _participants?.build();
      _$failedField = 'post';
      _post?.build();
    } catch (e) {
      throw new BuiltValueNestedFieldError(
          'UserThread', _$failedField, e.toString());
    }
    rethrow;
  }
  replace(_$result);
  return _$result;
}