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 4077396 commit 64caf1dCopy full SHA for 64caf1d
templates/dart/lib/src/models/model.dart.twig
@@ -11,7 +11,7 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
11
final Map<String, dynamic> data;
12
{% endif %}
13
14
- {{ definition.name | caseUcfirst | overrideIdentifier}}({% if definition.properties | length %}{{ '{' }}{% endif %}
+ {{ definition.name | caseUcfirst | overrideIdentifier}}({% if definition.properties | length or definition.additionalProperties %}{{ '{' }}{% endif %}
15
{% for property in definition.properties %}{% if property.required %}
16
required {% endif %}this.{{ property.name | escapeKeyword }},
17
{% endfor %}
0 commit comments