draftWithIdDescriptor top-level property

XRPCObjectDescriptor<DraftWithId> draftWithIdDescriptor
final

Implementation

final draftWithIdDescriptor = XRPCObjectDescriptor<DraftWithId>(
  nsid: 'app.bsky.draft.defs',
  defName: 'draftWithId',
  fromJson: (json) =>
      const DraftWithIdConverter().fromJson(json.cast<String, dynamic>()),
  toJson: const DraftWithIdConverter().toJson,
  matches: DraftWithId.validate,
);