Skip to content

Commit 40d9b2d

Browse files
committed
fix models spacing
1 parent efadccb commit 40d9b2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
1212
{% endif %}
1313

1414
{{ 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 }},
15+
16+
{% for property in definition.properties %}
17+
{% if property.required %}required {% endif %}this.{{ property.name | escapeKeyword }},
1718
{% endfor %}
1819
{% if definition.additionalProperties %}
1920
required this.data,

0 commit comments

Comments
 (0)