signPlcOperation method

Future<XRPCResponse<SignPlcOperationOutput>> signPlcOperation({
  1. String? token,
  2. List<String>? rotationKeys,
  3. List<String>? alsoKnownAs,
  4. Map<String, dynamic>? verificationMethods,
  5. Map<String, dynamic>? services,
  6. Map<String, String>? $unknown,
  7. Map<String, String>? $headers,
  8. PostClient? $client,
})

Signs a PLC operation to update some value(s) in the requesting DID's document.

https://atprotodart.com/docs/lexicons/com/atproto/identity/signPlcOperation

Implementation

Future<XRPCResponse<SignPlcOperationOutput>> signPlcOperation({
  String? token,
  List<String>? rotationKeys,
  List<String>? alsoKnownAs,
  Map<String, dynamic>? verificationMethods,
  Map<String, dynamic>? services,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<SignPlcOperationOutput>(
      ns.comAtprotoIdentitySignPlcOperation,
      headers: $headers,
      body: {
        if (token != null) 'token': token,
        if (rotationKeys != null) 'rotationKeys': rotationKeys,
        if (alsoKnownAs != null) 'alsoKnownAs': alsoKnownAs,
        if (verificationMethods != null)
          'verificationMethods': verificationMethods,
        if (services != null) 'services': services,
        ...?$unknown,
      },
      to: const SignPlcOperationOutputConverter().fromJson,
      client: $client,
    );