ViewerState constructor

  1. @JsonSerializable(includeIfNull: false)
const ViewerState({
  1. @Default(appBskyFeedDefsViewerState) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() AtUri? repost,
  3. @AtUriConverter() AtUri? like,
  4. @Default(false) bool threadMuted,
  5. @Default(false) bool replyDisabled,
  6. @Default(false) bool embeddingDisabled,
  7. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ViewerState({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#viewerState`
  @Default(appBskyFeedDefsViewerState) @JsonKey(name: r'$type') String $type,
  @AtUriConverter() AtUri? repost,
  @AtUriConverter() AtUri? like,
  @Default(false) bool threadMuted,
  @Default(false) bool replyDisabled,
  @Default(false) bool embeddingDisabled,

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