// SPDX-License-Identifier: GPL-3.0-or-later

// This file is auto-generated by scripts/generate_nymea_api.py
// Any changes made here will be lost when the files are regenerated.
// Do not edit manually.

#include "configurationmqttserverconfigurationchangednotificationparams.h"

namespace nymea::api {

ConfigurationMqttServerConfigurationChangedNotificationParams ConfigurationMqttServerConfigurationChangedNotificationParams::fromJson(const QJsonObject &object) {
    ConfigurationMqttServerConfigurationChangedNotificationParams value;
    if (object.contains(QStringLiteral("mqttServerConfiguration"))) {
        value.mqttServerConfiguration = ServerConfiguration::fromJson((object.value(QStringLiteral("mqttServerConfiguration"))).toObject());
    }
    return value;
}

QJsonObject ConfigurationMqttServerConfigurationChangedNotificationParams::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("mqttServerConfiguration"), QJsonValue((mqttServerConfiguration).toJson()));
    return object;
}

} // namespace nymea::api
