FeedPostRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const FeedPostRecord({
  1. @Default('app.bsky.feed.post') String $type,
  2. required String text,
  3. @RichtextFacetConverter() List<RichtextFacet>? facets,
  4. @ReplyRefConverter() ReplyRef? reply,
  5. @UFeedPostEmbedConverter() UFeedPostEmbed? embed,
  6. List<String>? langs,
  7. @UFeedPostLabelsConverter() UFeedPostLabels? labels,
  8. List<String>? tags,
  9. required DateTime createdAt,
  10. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FeedPostRecord({
  @Default('app.bsky.feed.post') String $type,

  /// The primary post content. May be an empty string, if there are embeds.
  required String text,
  @RichtextFacetConverter() List<RichtextFacet>? facets,
  @ReplyRefConverter() ReplyRef? reply,
  @UFeedPostEmbedConverter() UFeedPostEmbed? embed,
  List<String>? langs,
  @UFeedPostLabelsConverter() UFeedPostLabels? labels,
  List<String>? tags,

  /// Client-declared timestamp when this post was originally created.
  required DateTime createdAt,

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