signPlcOperation method
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,
);