File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
templates/cli/lib/type-generation/languages Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class <%= toPascalCase(collection.name) %> {
78
78
(map['<%= attribute.key %> '] as List<dynamic >?)?.map((e) => <% - toPascalCase(attribute.key) %> .values.firstWhere((element) => element.name == e)).toList()<% if (!attribute.required) { %> ?? []<% } -%>
79
79
<% } else { -%>
80
80
<% if (!attribute.required) { -%>
81
- map['<%= attribute.key %> '] != null ? <% - toPascalCase(attribute.key) %> .values.where((e) => e.name == map['<%= attribute.key %> ']).firstOrNull() : null<% } else { -%>
81
+ map['<%= attribute.key %> '] != null ? <% - toPascalCase(attribute.key) %> .values.where((e) => e.name == map['<%= attribute.key %> ']).firstOrNull : null<% } else { -%>
82
82
<% - toPascalCase(attribute.key) %> .values.firstWhere((e) => e.name == map['<%= attribute.key %> '])<% } -%>
83
83
<% } -%>
84
84
<% } else { -%>
You can’t perform that action at this time.
0 commit comments