Serializes this instance into CBOR, returning the resulting bytes.
List<int> serialize() { final CborValue value = toCborValue(); return cborEncode(value); }