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

namespace nymea::api {

NetworkManagerStartAccessPointResponse NetworkManagerStartAccessPointResponse::fromJson(const QJsonObject &object) {
    NetworkManagerStartAccessPointResponse value;
    if (object.contains(QStringLiteral("networkManagerError"))) {
        value.networkManagerError = parseNetworkManagerError(object.value(QStringLiteral("networkManagerError")));
    }
    return value;
}

QJsonObject NetworkManagerStartAccessPointResponse::toJson() const {
    QJsonObject object;
    object.insert(QStringLiteral("networkManagerError"), QJsonValue(toString(networkManagerError)));
    return object;
}

} // namespace nymea::api
