ThreadViewPref constructor

  1. @JsonSerializable(includeIfNull: false)
const ThreadViewPref({
  1. @Default(appBskyActorDefsThreadViewPref) @JsonKey(name: r'$type') String $type,
  2. @UThreadViewPrefSortConverter() UThreadViewPrefSort? sort,
  3. @Default(false) bool prioritizeFollowedUsers,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ThreadViewPref({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#threadViewPref`
  @Default(appBskyActorDefsThreadViewPref)
  @JsonKey(name: r'$type')
  String $type,

  /// Sorting mode for threads.
  @UThreadViewPrefSortConverter() UThreadViewPrefSort? sort,

  /// Show followed users at the top of all replies.
  @Default(false) bool prioritizeFollowedUsers,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ThreadViewPref;