diff options
Diffstat (limited to 'lib/jobs/{{base}}.h.mustache')
-rw-r--r-- | lib/jobs/{{base}}.h.mustache | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/{{base}}.h.mustache b/lib/jobs/{{base}}.h.mustache index 12633604..8606e251 100644 --- a/lib/jobs/{{base}}.h.mustache +++ b/lib/jobs/{{base}}.h.mustache @@ -17,9 +17,10 @@ namespace QMatrixClient { {{#vars}}{{dataType.name}} {{nameCamelCase}}; {{/vars}} - operator QJsonObject() const; }; + QJsonObject toJson(const {{name}}& pod); + template <> struct FromJson<{{name}}> { {{name}} operator()(QJsonValue jv); @@ -38,7 +39,6 @@ namespace QMatrixClient { {{#vars}}{{dataType.name}} {{nameCamelCase}}; {{/vars}} - operator QJsonObject() const; }; {{/ trivial?}}{{/model}} // End of inner data structures |