Search constructor
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
- required String q,
- @JsonKey(name: 'type_') SearchType? type,
- PostListingType? listingType,
- int? communityId,
- String? communityName,
- SortType? sort,
- int? page,
- int? limit,
- int? creatorId,
- 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;