Converts the object to a CBOR object.
@override CborObject toCbor([bool legacy = true]) { if (legacy) return dataHash.toCbor(); return CborListValue.fixedLength([type.toCbor(), dataHash.toCbor()]); }