aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/request_msisdn_validation.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/identity/definitions/request_msisdn_validation.h')
-rw-r--r--lib/identity/definitions/request_msisdn_validation.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/identity/definitions/request_msisdn_validation.h b/lib/identity/definitions/request_msisdn_validation.h
index 77bea2bc..b48ed6d5 100644
--- a/lib/identity/definitions/request_msisdn_validation.h
+++ b/lib/identity/definitions/request_msisdn_validation.h
@@ -36,12 +36,10 @@ namespace QMatrixClient
/// server will redirect the user to this URL.
QString nextLink;
};
-
- QJsonObject toJson(const RequestMsisdnValidation& pod);
-
- template <> struct FromJsonObject<RequestMsisdnValidation>
+ template <> struct JsonObjectConverter<RequestMsisdnValidation>
{
- RequestMsisdnValidation operator()(const QJsonObject& jo) const;
+ static void dumpTo(QJsonObject& jo, const RequestMsisdnValidation& pod);
+ static void fillFrom(const QJsonObject& jo, RequestMsisdnValidation& pod);
};
} // namespace QMatrixClient