VideoCaption constructor

  1. @JsonSerializable(includeIfNull: false)
const VideoCaption({
  1. @Default(appBskyEmbedVideoCaption) @JsonKey(name: r'$type') String $type,
  2. required String lang,
  3. @BlobConverter() required Blob file,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory VideoCaption({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.video#caption`
  @Default(appBskyEmbedVideoCaption) @JsonKey(name: r'$type') String $type,
  required String lang,
  @BlobConverter() required Blob file,

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