aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/sid.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/identity/definitions/sid.h')
-rw-r--r--lib/identity/definitions/sid.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/identity/definitions/sid.h b/lib/identity/definitions/sid.h
index eae60c47..ac8c4130 100644
--- a/lib/identity/definitions/sid.h
+++ b/lib/identity/definitions/sid.h
@@ -19,12 +19,10 @@ namespace QMatrixClient
/// must not be empty.
QString sid;
};
-
- QJsonObject toJson(const Sid& pod);
-
- template <> struct FromJsonObject<Sid>
+ template <> struct JsonObjectConverter<Sid>
{
- Sid operator()(const QJsonObject& jo) const;
+ static void dumpTo(QJsonObject& jo, const Sid& pod);
+ static void fillFrom(const QJsonObject& jo, Sid& pod);
};
} // namespace QMatrixClient