SearchResults constructor
- @JsonSerializable(fieldRename: FieldRename.snake)
- @JsonKey(name: 'type_') required SearchType type,
- required List<
CommentView> comments, - required List<
PostView> posts, - required List<
CommunityView> communities, - required List<
PersonViewSafe> users, - required String instanceHost,
Implementation
@JsonSerializable(fieldRename: FieldRename.snake)
const factory SearchResults({
@JsonKey(name: 'type_') required SearchType type,
required List<CommentView> comments,
required List<PostView> posts,
required List<CommunityView> communities,
required List<PersonViewSafe> users,
required String instanceHost,
}) = _SearchResults;