/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "request_email_validation.h" using namespace QMatrixClient; QJsonObject QMatrixClient::toJson(const RequestEmailValidation& pod) { QJsonObject jo; addParam<>(jo, QStringLiteral("client_secret"), pod.clientSecret); addParam<>(jo, QStringLiteral("email"), pod.email); addParam<>(jo, QStringLiteral("send_attempt"), pod.sendAttempt); addParam(jo, QStringLiteral("next_link"), pod.nextLink); return jo; } RequestEmailValidation FromJsonObject::operator()(const QJsonObject& jo) const { RequestEmailValidation result; result.clientSecret = fromJson(jo.value("client_secret"_ls)); result.email = fromJson(jo.value("email"_ls)); result.sendAttempt = fromJson(jo.value("send_attempt"_ls)); result.nextLink = fromJson(jo.value("next_link"_ls)); return result; }