Skip to content

Commit 3ab9c19

Browse files
committed
chore (breaking): update dart's fromMap constructor to accept use 'data' key for Any models
1 parent a304270 commit 3ab9c19

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,
50+
data: map["data"],
5151
{% endif %}
5252
);
5353
}

0 commit comments

Comments
 (0)