Search constructor
- @JsonSerializable.new(includeIfNull: false)
const
Search(
{ - required String q,
- @JsonKey.new(name: 'type_') String? type,
- @JsonKey.new(name: 'listing_type') String? listingType,
- @JsonKey.new(name: 'creator_id') int? creatorId,
- String? sort,
- int? page,
- int? limit,
- String? auth,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Search({
required String q,
@JsonKey(name: 'type_') String? type, // All, Comments, Posts, Communities, Users, Url
@JsonKey(name: 'listing_type') String? listingType, // All, Local, Subscribed
@JsonKey(name: 'community_id') int? communityId,
@JsonKey(name: 'community_name') String? communityName,
@JsonKey(name: 'creator_id') int? creatorId,
String? sort,
int? page,
int? limit,
String? auth,
}) = _Search;