FeedPostRecord constructor
- @JsonSerializable(includeIfNull: false)
const
FeedPostRecord(
{ - @Default('app.bsky.feed.post') String $type,
- required String text,
- @RichtextFacetConverter() List<RichtextFacet>? facets,
- @ReplyRefConverter() ReplyRef? reply,
- @UFeedPostEmbedConverter() UFeedPostEmbed? embed,
- List<String>? langs,
- @UFeedPostLabelsConverter() UFeedPostLabels? labels,
- List<String>? tags,
- required DateTime createdAt,
- 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;