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