EmbedExternalViewArticle constructor

const EmbedExternalViewArticle({
  1. @Default.new('app.bsky.embed.external#viewArticle') String $type,
  2. String? providerId,
  3. required String uri,
  4. required String title,
  5. required String description,
  6. @JsonKey.new(toJson: iso8601) DateTime? createdAt,
  7. @JsonKey.new(toJson: iso8601) DateTime? updatedAt,
  8. @LabelConverter() List<Label>? labels,
  9. @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,
  10. @ProfileViewBasicConverter() List<ProfileViewBasic>? associatedProfiles,
  11. String? image,
  12. @EmbedExternalViewArticlePublicationConverter() EmbedExternalViewArticlePublication? publisher,
  13. int? readingTime,
  14. @EmbedExternalViewArticleViewerStateConverter() EmbedExternalViewArticleViewerState? viewer,
  15. int? likeCount,
  16. @ProfileViewBasicConverter() List<ProfileViewBasic>? likers,
  17. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewArticle({
  @Default('app.bsky.embed.external#viewArticle') String $type,

  /// Best-effort provider domain for cosmetic attribution, such as pckt.blog. Not verified provenance.
  String? providerId,
  required String uri,
  required String title,
  required String description,
  @JsonKey(toJson: iso8601) DateTime? createdAt,
  @JsonKey(toJson: iso8601) DateTime? updatedAt,
  @LabelConverter() List<Label>? labels,
  @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,
  @ProfileViewBasicConverter() List<ProfileViewBasic>? associatedProfiles,
  String? image,
  @EmbedExternalViewArticlePublicationConverter()
  EmbedExternalViewArticlePublication? publisher,
  int? readingTime,
  @EmbedExternalViewArticleViewerStateConverter()
  EmbedExternalViewArticleViewerState? viewer,
  int? likeCount,
  @ProfileViewBasicConverter() List<ProfileViewBasic>? likers,

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