5#include <Quotient/converters.h>
24struct 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);
Used by clients to submit authentication information to the interactive-authentication API.
QString session
The value of the session key given by the homeserver.
QVariantHash authInfo
Keys dependent on the login type.