public JsonElement serialize(CustomCommand customCommand,
A custom serializer for Custom Command. The custom commands are received in
HashMap and then each key value is mapped as separate properties rather than a single
JsonArray. This allows us to add any number of custom commands and then send it in openxc
standard message format.