FeedViewPost constructor

  1. @JsonSerializable(includeIfNull: false)
const FeedViewPost({
  1. @Default(appBskyFeedDefsFeedViewPost) @JsonKey(name: r'$type') String $type,
  2. @PostViewConverter() required PostView post,
  3. @ReplyRefConverter() ReplyRef? reply,
  4. @UFeedViewPostReasonConverter() UFeedViewPostReason? reason,
  5. String? feedContext,
  6. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FeedViewPost({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#feedViewPost`
  @Default(appBskyFeedDefsFeedViewPost) @JsonKey(name: r'$type') 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,

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