appBskyDraftGetDrafts function

Future<XRPCResponse<DraftGetDraftsOutput>> appBskyDraftGetDrafts({
  1. int? limit,
  2. String? cursor,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Gets views of user drafts. Requires authentication.

Implementation

Future<XRPCResponse<DraftGetDraftsOutput>> appBskyDraftGetDrafts({
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyDraftGetDrafts,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const DraftGetDraftsOutputConverter().fromJson,
);