aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/wellknown/homeserver.cpp
blob: f1482ee46ab32daa783431939cef34e4318f47b6 (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 "homeserver.h"

using namespace QMatrixClient;

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

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

    return result;
}