embedVideoDescriptor top-level property

XRPCObjectDescriptor<EmbedVideo> embedVideoDescriptor
final

Implementation

final embedVideoDescriptor = XRPCObjectDescriptor<EmbedVideo>(
  nsid: 'app.bsky.embed.video',
  defName: 'main',
  fromJson: (json) =>
      const EmbedVideoConverter().fromJson(json.cast<String, dynamic>()),
  toJson: const EmbedVideoConverter().toJson,
  matches: EmbedVideo.validate,
);