createInviteCode method
Create an invite code.
https://atprotodart.com/docs/lexicons/com/atproto/server/createInviteCode
Implementation
Future<XRPCResponse<CreateInviteCodeOutput>> createInviteCode({
required int useCount,
String? forAccount,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<CreateInviteCodeOutput>(
ns.comAtprotoServerCreateInviteCode,
headers: $headers,
body: {
'useCount': useCount,
if (forAccount != null) 'forAccount': forAccount,
...?$unknown,
},
to: const CreateInviteCodeOutputConverter().fromJson,
client: $client,
);