FeedViewPost constructor

  1. @JsonSerializable.new(includeIfNull: false)
const FeedViewPost({
  1. @Default.new('app.bsky.feed.defs#feedViewPost') String $type,
  2. @PostViewConverter() required PostView post,
  3. @ReplyRefConverter() ReplyRef? reply,
  4. @UFeedViewPostReasonConverter() UFeedViewPostReason? reason,
  5. String? feedContext,
  6. String? reqId,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FeedViewPost({
  @Default('app.bsky.feed.defs#feedViewPost') String $type,
  @PostViewConverter() required PostView post,
  @ReplyRefConverter() ReplyRef? reply,
  @UFeedViewPostReasonConverter() UFeedViewPostReason? reason,

  /// Context provided by feed generator that may be passed back alongside interactions.
  String? feedContext,

  /// Unique identifier per request that may be passed back alongside interactions.
  String? reqId,

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