EmbedExternalViewExternal constructor

  1. @JsonSerializable.new(includeIfNull: false)
const EmbedExternalViewExternal({
  1. @Default.new('app.bsky.embed.external#viewExternal') String $type,
  2. required String uri,
  3. required String title,
  4. required String description,
  5. String? thumb,
  6. DateTime? createdAt,
  7. DateTime? updatedAt,
  8. int? readingTime,
  9. @LabelConverter() List<Label>? labels,
  10. @EmbedExternalViewExternalSourceConverter() EmbedExternalViewExternalSource? source,
  11. @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,
  12. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedExternalViewExternal({
  @Default('app.bsky.embed.external#viewExternal') String $type,
  required String uri,
  required String title,
  required String description,
  String? thumb,

  /// When the external content was created, if available. Example: a publication date, for an article.
  DateTime? createdAt,

  /// When the external content was updated, if available.
  DateTime? updatedAt,

  /// Estimated reading time in minutes, if applicable and available.
  int? readingTime,
  @LabelConverter() List<Label>? labels,
  @EmbedExternalViewExternalSourceConverter()
  EmbedExternalViewExternalSource? source,
  @RepoStrongRefConverter() List<RepoStrongRef>? associatedRefs,

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