5 #include <Quotient/converters.h>
20 QString matrixServerName;
28 struct JsonObjectConverter<OpenIdCredentials> {
29 static void dumpTo(QJsonObject& jo,
const OpenIdCredentials& pod)
31 addParam<>(jo,
"access_token"_L1, pod.accessToken);
32 addParam<>(jo,
"token_type"_L1, pod.tokenType);
33 addParam<>(jo,
"matrix_server_name"_L1, pod.matrixServerName);
34 addParam<>(jo,
"expires_in"_L1, pod.expiresIn);
36 static void fillFrom(
const QJsonObject& jo, OpenIdCredentials& pod)
38 fillFromJson(jo.value(
"access_token"_L1), pod.accessToken);
39 fillFromJson(jo.value(
"token_type"_L1), pod.tokenType);
40 fillFromJson(jo.value(
"matrix_server_name"_L1), pod.matrixServerName);
41 fillFromJson(jo.value(
"expires_in"_L1), pod.expiresIn);