# frozen_string_literal: true require "json" module DjiMqttConnect module Thing::Product class ServicesMarshal < MessageMarshal include Utils::MessageDumping # Converts a message for transmission via MQTT def dump(message) # Fix up the hash representation transformed_message = convert_message_to_hash(message) # Convert the transformed message into JSON JSON.generate(transformed_message) end end end end