EmbedGetEmbedExternalViewInput constructor

const EmbedGetEmbedExternalViewInput({
  1. required String url,
  2. @AtUriConverter.new() AtUri? canonicalUri,
  3. @AtUriConverter.new() List<AtUri>? uris,
  4. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory EmbedGetEmbedExternalViewInput({
  /// The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`, and validated against the resolved records.
  required String url,

  /// The canonical AT URI of the atproto record found on the webpage. When provided, takes precedence over `uris`, which is then ignored.
  @AtUriConverter() AtUri? canonicalUri,
  @AtUriConverter() List<AtUri>? uris,

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