We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c664d1 commit 72681d2Copy full SHA for 72681d2
modules/openapi-generator/src/main/resources/cpp-qt-client/enum.mustache
@@ -5,6 +5,7 @@
5
#include <QJsonValue>
6
#include <QMetaType>
7
#include <QString>
8
+#include <QJsonObject>
9
10
{{#cppNamespaceDeclarations}}
11
namespace {{this}} {
@@ -27,6 +28,12 @@ public:
27
28
virtual QString asJson() const {
29
return jstr;
30
}
31
+
32
+ virtual QJsonObject asJsonObject() const {
33
+ QJsonObject obj;
34
+ obj["value"] = jstr;
35
+ return obj;
36
+ }
37
38
virtual void fromJson(QString jsonString) {
39
jstr = jsonString;
0 commit comments