aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/sid.cpp
blob: 443dbedf4cdd048fa6d4e6d3c7e73ea6982758ea (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 "sid.h"

using namespace QMatrixClient;

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

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

    return result;
}