appBskyGraphGetListsWithMembership function
Enumerates the lists created by the session user, and includes membership information about actor
in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.
Implementation
Future<XRPCResponse<GraphGetListsWithMembershipOutput>>
appBskyGraphGetListsWithMembership({
required String actor,
int? limit,
String? cursor,
List<GraphGetListsWithMembershipPurposes>? purposes,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.appBskyGraphGetListsWithMembership,
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 GraphGetListsWithMembershipOutputConverter().fromJson,
);