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

namespace nymea::api {

ConfigurationTunnelProxyServerConfigurationChangedNotificationParams ConfigurationTunnelProxyServerConfigurationChangedNotificationParams::fromJson(const QJsonObject &object) {
    ConfigurationTunnelProxyServerConfigurationChangedNotificationParams value;
    if (object.contains(QStringLiteral("tunnelProxyServerConfiguration"))) {
        value.tunnelProxyServerConfiguration = TunnelProxyServerConfiguration::fromJson((object.value(QStringLiteral("tunnelProxyServerConfiguration"))).toObject());
    }
    return value;
}

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

} // namespace nymea::api
