embedVideoCaptionDescriptor top-level property

XRPCObjectDescriptor<EmbedVideoCaption> embedVideoCaptionDescriptor
final

Implementation

final embedVideoCaptionDescriptor = XRPCObjectDescriptor<EmbedVideoCaption>(
  nsid: 'app.bsky.embed.video',
  defName: 'caption',
  fromJson: (json) =>
      const EmbedVideoCaptionConverter().fromJson(json.cast<String, dynamic>()),
  toJson: const EmbedVideoCaptionConverter().toJson,
  matches: EmbedVideoCaption.validate,
);