appBskyGraphGetLists function

Future<XRPCResponse<GraphGetListsOutput>> appBskyGraphGetLists({
  1. required String actor,
  2. int? limit,
  3. String? cursor,
  4. List<GraphGetListsPurposes>? purposes,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Enumerates the lists created by a specified account (actor).

Implementation

Future<XRPCResponse<GraphGetListsOutput>> appBskyGraphGetLists({
  required String actor,
  int? limit,
  String? cursor,
  List<GraphGetListsPurposes>? purposes,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyGraphGetLists,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'actor': actor,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
    if (purposes != null) 'purposes': purposes.map((e) => e.toJson()).toList(),
  },
  to: const GraphGetListsOutputConverter().fromJson,
);