toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return CborListValue.definite([
body.toCbor(),
witnessSet.toCbor(),
CborBoleanValue(isValid),
data?.toCbor() ?? const CborNullValue(),
]);
}