comAtprotoServerCreateAccount function
Future<XRPCResponse<ServerCreateAccountOutput> >
comAtprotoServerCreateAccount({
- String? email,
- required String handle,
- String? did,
- String? inviteCode,
- String? verificationCode,
- String? verificationPhone,
- String? password,
- String? recoveryKey,
- Map<
String, dynamic> ? plcOp, - required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Create an account. Implemented by PDS.
Implementation
Future<XRPCResponse<ServerCreateAccountOutput>> comAtprotoServerCreateAccount({
String? email,
required String handle,
String? did,
String? inviteCode,
String? verificationCode,
String? verificationPhone,
String? password,
String? recoveryKey,
Map<String, dynamic>? plcOp,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoServerCreateAccount,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
if (email != null) 'email': email,
'handle': handle,
if (did != null) 'did': did,
if (inviteCode != null) 'inviteCode': inviteCode,
if (verificationCode != null) 'verificationCode': verificationCode,
if (verificationPhone != null) 'verificationPhone': verificationPhone,
if (password != null) 'password': password,
if (recoveryKey != null) 'recoveryKey': recoveryKey,
if (plcOp != null) 'plcOp': plcOp,
},
to: const ServerCreateAccountOutputConverter().fromJson,
);