// 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.

#pragma once

#include "apiutils.h"

namespace nymea::api {

class UsersCreateUserParams {
public:
    // wire: 'allowedThingIds' (optional)
    std::optional<QList<QUuid>> allowedThingIds;
    // wire: 'displayName' (optional)
    std::optional<QString> displayName;
    // wire: 'email' (optional)
    std::optional<QString> email;
    // wire: 'scopes' (optional)
    std::optional<PermissionScopes> scopes;
    // wire: 'password' (field)
    QString password{};
    // wire: 'username' (field)
    QString username{};

    static UsersCreateUserParams fromJson(const QJsonObject &object);
    QJsonObject toJson() const;
};

} // namespace nymea::api
