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

namespace nymea::api {

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

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

} // namespace nymea::api
