toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return serializationConfig.toCbor([
CborStringValue(context.value),
bodyProtected.toCbor(),
if (signProtected != null) signProtected!.toCbor(),
CborBytesValue(externalAAD),
CborBytesValue(payload)
]);
}