dart2-v3template._array_copy.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-dart-generator Show documentation
Show all versions of openapi-dart-generator Show documentation
dart2 generator from openapi 3.x spec files.
{{#items}}
{{#isArray}}
(data as List).map((data) { ((data) { return {{>_copy}};})(data); }).toList()
{{/isArray}}
{{#isMap}}
(data as List).map((data) { ((data) { return {{>_copy}};})(data); }).toList()
{{/isMap}}
{{^items}}
{{#isEnum}}
(data as List<{{enumName}}>).toList()
{{/isEnum}}
{{#isDateTime}}
(data as List).toList()
{{/isDateTime}}
{{#isDate}}
(data as List).toList()
{{/isDate}}
{{#isModel}}
(data as List<{{complexType}}>).map((data) => data.copyWith()).toList()
{{/isModel}}
{{#isPrimitiveType}}
(data as List<{{{dataType}}}>).toList()
{{/isPrimitiveType}}
{{/items}}
{{/items}}