Skip to content

Commit d593e78

Browse files
committed
fallback to just map
1 parent 3ab9c19 commit d593e78

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
@@ -47,7 +47,7 @@ class {{ definition.name | caseUcfirst | overrideIdentifier }} implements Model
4747
{%- endif -%},
4848
{% endfor %}
4949
{% if definition.additionalProperties %}
50-
data: map["data"],
50+
data: map["data"] ?? map,
5151
{% endif %}
5252
);
5353
}

0 commit comments

Comments
 (0)