updateEmail method

Future<XRPCResponse<EmptyData>> updateEmail({
  1. required String email,
  2. bool? emailAuthFactor,
  3. String? token,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. PostClient? $client,
})

Implementation

Future<XRPCResponse<EmptyData>> updateEmail({
  required String email,
  bool? emailAuthFactor,
  String? token,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoServerUpdateEmail,
      headers: $headers,
      body: {
        'email': email,
        if (emailAuthFactor != null) 'emailAuthFactor': emailAuthFactor,
        if (token != null) 'token': token,
        ...?$unknown,
      },
      client: $client,
    );