VideoView constructor

  1. @JsonSerializable(includeIfNull: false)
const VideoView({
  1. @Default(appBskyEmbedVideoView) @JsonKey(name: r'$type') String $type,
  2. required String cid,
  3. required String playlist,
  4. String? thumbnail,
  5. String? alt,
  6. @AspectRatioConverter() AspectRatio? aspectRatio,
  7. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory VideoView({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.video#view`
  @Default(appBskyEmbedVideoView) @JsonKey(name: r'$type') String $type,
  required String cid,
  required String playlist,
  String? thumbnail,
  String? alt,
  @AspectRatioConverter() AspectRatio? aspectRatio,

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