Converts the object to a CBOR object.
@override CborObject toCbor([bool serialize = false]) { if (serialize) return CborBytesValue(CborIntValue(value).encode()); return CborIntValue(value); }