5 #include <Quotient/converters.h>
29 struct JsonObjectConverter<RequestTokenResponse> {
30 static void dumpTo(QJsonObject& jo,
const RequestTokenResponse& pod)
32 addParam<>(jo,
"sid"_L1, pod.sid);
33 addParam<IfNotEmpty>(jo,
"submit_url"_L1, pod.submitUrl);
35 static void fillFrom(
const QJsonObject& jo, RequestTokenResponse& pod)
37 fillFromJson(jo.value(
"sid"_L1), pod.sid);
38 fillFromJson(jo.value(
"submit_url"_L1), pod.submitUrl);