Search constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const Search({
  1. required String q,
  2. @JsonKey(name: 'type_') SearchType? type,
  3. PostListingType? listingType,
  4. int? communityId,
  5. String? communityName,
  6. SortType? sort,
  7. int? page,
  8. int? limit,
  9. int? creatorId,
  10. String? auth,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory Search({
  required String q,
  @JsonKey(name: 'type_') SearchType? type,
  PostListingType? listingType,
  int? communityId,
  String? communityName,
  SortType? sort,
  int? page,
  int? limit,
  int? creatorId,
  String? auth,
}) = _Search;