dart2-v3template._map_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}}
{{#isMap}}
(data as Map).cast().map((String key, dynamic data) => MapEntry(key, (dynamic data) { return {{>_copy}}; }(data) ))
{{/isMap}}
{{#isArray}}
(data as Map).cast().map((String key, dynamic data) => MapEntry(key, (dynamic data) { return {{>_copy}}; }(data) ))
{{/isArray}}
{{^items}}
{{#isEnum}}
(data as Map).cast().map((String key, {{{enumName}}} data) => MapEntry(key, {{>_copy}} ))
{{/isEnum}}
{{#isDateTime}}
(data as Map).cast().map((String key, {{{complexType}}} data) => MapEntry(key, {{>_copy}} ))
{{/isDateTime}}
{{#isDate}}
(data as Map).cast().map((String key, {{{complexType}}} data) => MapEntry(key, {{>_copy}} ))
{{/isDate}}
{{#isModel}}
(data as Map).cast().map((String key, {{{complexType}}} data) => MapEntry(key, {{>_copy}} ))
{{/isModel}}
{{#isPrimitiveType}}
(data as Map).cast().map((String key, {{{dataType}}} data) => MapEntry(key, data))
{{/isPrimitiveType}}
{{/items}}
{{/items}}