aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/wellknown/identity_server.cpp
blob: f9d7bc37555736bc927c1727411c288ab99678e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "identity_server.h"

using namespace QMatrixClient;

QJsonObject QMatrixClient::toJson(const IdentityServerInformation& pod)
{
    QJsonObject jo;
    addParam<>(jo, QStringLiteral("base_url"), pod.baseUrl);
    return jo;
}

IdentityServerInformation FromJsonObject<IdentityServerInformation>::operator()(const QJsonObject& jo) const
{
    IdentityServerInformation result;
    result.baseUrl =
        fromJson<QString>(jo.value("base_url"_ls));

    return result;
}