We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310ab72 commit 260e1a6Copy full SHA for 260e1a6
templates/kotlin/src/main/kotlin/io/appwrite/models/Model.kt.twig
@@ -6,6 +6,9 @@ import com.google.gson.annotations.SerializedName
6
/**
7
* {{ definition.description }}
8
*/
9
+{% if definition.properties | length == 0 %}
10
+class {{ definition.name | caseUcfirst }} {}
11
+{% else %}
12
data class {{ definition.name | caseUcfirst }}(
13
{% for property in definition.properties %}
14
@@ -59,4 +62,5 @@ data class {{ definition.name | caseUcfirst }}(
59
62
{% endfor %}
60
63
{% endif %}
61
64
-}
65
+}
66
+{% endif %}
0 commit comments