Video constructor

  1. @JsonSerializable(includeIfNull: false)
const Video({
  1. @Default(appBskyEmbedVideo) @JsonKey(name: r'$type') String $type,
  2. @BlobConverter() required Blob video,
  3. @VideoCaptionConverter() List<VideoCaption>? captions,
  4. String? alt,
  5. @AspectRatioConverter() AspectRatio? aspectRatio,
  6. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Video({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.video`
  @Default(appBskyEmbedVideo) @JsonKey(name: r'$type') String $type,
  @BlobConverter() required Blob video,
  @VideoCaptionConverter() List<VideoCaption>? captions,

  /// Alt text description of the video, for accessibility.
  String? alt,
  @AspectRatioConverter() AspectRatio? aspectRatio,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _Video;