FeedViewPref constructor
- @JsonSerializable(includeIfNull: false)
const
FeedViewPref(
{ - @Default(appBskyActorDefsFeedViewPref) @JsonKey(name: r'$type') String $type,
- required String feed,
- @Default(false) bool hideReplies,
- @Default(true) bool hideRepliesByUnfollowed,
- @Default(0) int hideRepliesByLikeCount,
- @Default(false) bool hideReposts,
- @Default(false) bool hideQuotePosts,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory FeedViewPref({
/// The unique namespace for this lex object.
///
/// `app.bsky.actor.defs#feedViewPref`
@Default(appBskyActorDefsFeedViewPref)
@JsonKey(name: r'$type')
String $type,
/// The URI of the feed, or an identifier which describes the feed.
required String feed,
/// Hide replies in the feed.
@Default(false) bool hideReplies,
/// Hide replies in the feed if they are not by followed users.
@Default(true) bool hideRepliesByUnfollowed,
/// Hide replies in the feed if they do not have this number of
/// likes.
@Default(0) int hideRepliesByLikeCount,
/// Hide reposts in the feed.
@Default(false) bool hideReposts,
/// Hide quote posts in the feed.
@Default(false) bool hideQuotePosts,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _FeedViewPref;