5 #include <Quotient/converters.h>
21 QHash<QString, QHash<QString, QString>> signatures;
25 struct JsonObjectConverter<ThirdPartySigned> {
26 static void dumpTo(QJsonObject& jo,
const ThirdPartySigned& pod)
28 addParam<>(jo,
"sender"_L1, pod.sender);
29 addParam<>(jo,
"mxid"_L1, pod.mxid);
30 addParam<>(jo,
"token"_L1, pod.token);
31 addParam<>(jo,
"signatures"_L1, pod.signatures);
33 static void fillFrom(
const QJsonObject& jo, ThirdPartySigned& pod)
35 fillFromJson(jo.value(
"sender"_L1), pod.sender);
36 fillFromJson(jo.value(
"mxid"_L1), pod.mxid);
37 fillFromJson(jo.value(
"token"_L1), pod.token);
38 fillFromJson(jo.value(
"signatures"_L1), pod.signatures);