5 #include <Quotient/converters.h>
20 QVariantHash authInfo{};
24 struct JsonObjectConverter<AuthenticationData> {
25 static void dumpTo(QJsonObject& jo,
const AuthenticationData& pod)
27 fillJson(jo, pod.authInfo);
28 addParam<IfNotEmpty>(jo,
"type"_L1, pod.type);
29 addParam<IfNotEmpty>(jo,
"session"_L1, pod.session);
31 static void fillFrom(QJsonObject jo, AuthenticationData& pod)
33 fillFromJson(jo.take(
"type"_L1), pod.type);
34 fillFromJson(jo.take(
"session"_L1), pod.session);
35 fromJson(jo, pod.authInfo);