toCBOR method
Implementation
Uint8List toCBOR(){
if (toCborValue() == null) {
throw "#[ur-registry][RegistryItem][fn.toCBOR]: registry ${getRegistryType()}'s method toCborValue returns undefined";
}
return Uint8List.fromList(cbor.encode(toCborValue()!));
}