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 78bf4c3 commit cf787dbCopy full SHA for cf787db
templates/dart/lib/src/models/model.dart.twig
@@ -18,7 +18,7 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
18
{% if definition.additionalProperties %}
19
required this.data,
20
{% endif %}
21
- {% if definition.properties | length %}{{ '}' }}{% endif %});
+ {% if definition.properties | length or definition.additionalProperties %}{{ '}' }}{% endif %});
22
23
factory {{ definition.name | caseUcfirst | overrideIdentifier}}.fromMap(Map<String, dynamic> map) {
24
return {{ definition.name | caseUcfirst | overrideIdentifier }}(
0 commit comments