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

#include "location.h"

using namespace QMatrixClient;

void JsonObjectConverter<ThirdPartyLocation>::dumpTo(
    QJsonObject& jo, const ThirdPartyLocation& pod)
{
    addParam<>(jo, QStringLiteral("alias"), pod.alias);
    addParam<>(jo, QStringLiteral("protocol"), pod.protocol);
    addParam<>(jo, QStringLiteral("fields"), pod.fields);
}

void JsonObjectConverter<ThirdPartyLocation>::fillFrom(const QJsonObject& jo,
                                                       ThirdPartyLocation& result)
{
    fromJson(jo.value("alias"_ls), result.alias);
    fromJson(jo.value("protocol"_ls), result.protocol);
    fromJson(jo.value("fields"_ls), result.fields);
}