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.
2 parents 91e2b9b + 270ce74 commit bfe58ebCopy full SHA for bfe58eb
templates/kotlin/src/main/kotlin/io/appwrite/models/Model.kt.twig
@@ -6,7 +6,7 @@ import com.google.gson.annotations.SerializedName
6
/**
7
* {{ definition.description }}
8
*/
9
-{% if definition.properties | length == 0 %}
+{% if definition.properties | length == 0 and not definition.additionalProperties %}
10
class {{ definition.name | caseUcfirst }} {}
11
{% else %}
12
data class {{ definition.name | caseUcfirst }}(
0 commit comments