createAppPassword method

Future<XRPCResponse<AppPassword>> createAppPassword({
  1. required String name,
  2. bool? privileged,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. PostClient? $client,
})

Implementation

Future<XRPCResponse<AppPassword>> createAppPassword({
  required String name,
  bool? privileged,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<AppPassword>(
      ns.comAtprotoServerCreateAppPassword,
      headers: $headers,
      body: {
        'name': name,
        if (privileged != null) 'privileged': privileged,
        ...?$unknown,
      },
      to: const AppPasswordConverter().fromJson,
      client: $client,
    );