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

namespace nymea::api {

ConfigurationDeleteMqttPolicyParams ConfigurationDeleteMqttPolicyParams::fromJson(const QJsonObject &object) {
    ConfigurationDeleteMqttPolicyParams value;
    if (object.contains(QStringLiteral("clientId"))) {
        value.clientId = (object.value(QStringLiteral("clientId"))).toString();
    }
    return value;
}

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

} // namespace nymea::api
