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 5e55879 + 40d9b2d commit 310ab72Copy full SHA for 310ab72
templates/dart/lib/src/models/model.dart.twig
@@ -12,8 +12,9 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
12
{% endif %}
13
14
{{ 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 }},
+
+{% for property in definition.properties %}
17
+ {% if property.required %}required {% endif %}this.{{ property.name | escapeKeyword }},
18
{% endfor %}
19
{% if definition.additionalProperties %}
20
required this.data,
0 commit comments