ThreadItemPost constructor

  1. @JsonSerializable(includeIfNull: false)
const ThreadItemPost({
  1. @Default('app.bsky.unspecced.defs#threadItemPost') String $type,
  2. @PostViewConverter() required PostView post,
  3. required bool moreParents,
  4. required int moreReplies,
  5. required bool opThread,
  6. required bool hiddenByThreadgate,
  7. required bool mutedByViewer,
  8. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ThreadItemPost({
  @Default('app.bsky.unspecced.defs#threadItemPost') String $type,
  @PostViewConverter() required PostView post,

  /// This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
  required bool moreParents,

  /// This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.
  required int moreReplies,

  /// This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.
  required bool opThread,

  /// The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
  required bool hiddenByThreadgate,

  /// This is by an account muted by the viewer requesting it.
  required bool mutedByViewer,

  Map<String, dynamic>? $unknown,
}) = _ThreadItemPost;