EmbedExternalViewExternalSource constructor

  1. @JsonSerializable.new(includeIfNull: false)
const EmbedExternalViewExternalSource({
  1. @Default.new('app.bsky.embed.external#viewExternalSource') String $type,
  2. required String uri,
  3. String? icon,
  4. required String title,
  5. String? description,
  6. @EmbedExternalViewExternalSourceThemeConverter() EmbedExternalViewExternalSourceTheme? theme,
  7. Map<String, dynamic>? $unknown,
})

Implementation

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

  /// URI of the source, if available. Example: the https:// URL of a site.standard.publication record.
  required String uri,

  /// Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View.
  String? icon,
  required String title,
  String? description,
  @EmbedExternalViewExternalSourceThemeConverter()
  EmbedExternalViewExternalSourceTheme? theme,

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