// 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 "configurationwebserverconfigurationchangednotificationparams.h"

namespace nymea::api {

ConfigurationWebServerConfigurationChangedNotificationParams ConfigurationWebServerConfigurationChangedNotificationParams::fromJson(const QJsonObject &object) {
    ConfigurationWebServerConfigurationChangedNotificationParams value;
    if (object.contains(QStringLiteral("webServerConfiguration"))) {
        value.webServerConfiguration = WebServerConfiguration::fromJson((object.value(QStringLiteral("webServerConfiguration"))).toObject());
    }
    return value;
}

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

} // namespace nymea::api
