Skip to content

Commit 64caf1d

Browse files
committed
fix additional property models
1 parent 4077396 commit 64caf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/dart/lib/src/models/model.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
1111
final Map<String, dynamic> data;
1212
{% endif %}
1313

14-
{{ definition.name | caseUcfirst | overrideIdentifier}}({% if definition.properties | length %}{{ '{' }}{% endif %}
14+
{{ definition.name | caseUcfirst | overrideIdentifier}}({% if definition.properties | length or definition.additionalProperties %}{{ '{' }}{% endif %}
1515
{% for property in definition.properties %}{% if property.required %}
1616
required {% endif %}this.{{ property.name | escapeKeyword }},
1717
{% endfor %}

0 commit comments

Comments
 (0)