SearchResults constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const SearchResults({
  1. @JsonKey(name: 'type_') required SearchType type,
  2. required List<CommentView> comments,
  3. required List<PostView> posts,
  4. required List<CommunityView> communities,
  5. required List<PersonViewSafe> users,
  6. 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;