Serialize command to CBOR bytes
List<int> toCbor() { final map = toMap(); return cborEncode(CborValues.toCbor(map)); }