EmbedExternalViewArticle constructor
const
EmbedExternalViewArticle({
- @Default.new('app.bsky.embed.external#viewArticle') String $type,
- required String uri,
- required String title,
- required String description,
- @JsonKey.new(toJson: iso8601) DateTime? createdAt,
- @JsonKey.new(toJson: iso8601) DateTime? updatedAt,
- @LabelConverter() List<
Label> ? labels, - @RepoStrongRefConverter() List<
RepoStrongRef> ? associatedRefs, - @ProfileViewBasicConverter() List<
ProfileViewBasic> ? associatedProfiles, - String? image,
- @EmbedExternalViewArticlePublicationConverter() EmbedExternalViewArticlePublication? publisher,
- int? readingTime,
- int? likeCount,
- @ProfileViewBasicConverter() List<
ProfileViewBasic> ? likers, - Map<
String, dynamic> ? $unknown,
Implementation
@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewArticle({
@Default('app.bsky.embed.external#viewArticle') String $type,
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,
int? likeCount,
@ProfileViewBasicConverter() List<ProfileViewBasic>? likers,
Map<String, dynamic>? $unknown,
}) = _EmbedExternalViewArticle;