dart2-v3template.list-copy-with.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.
{{^isModel}}
[]..addAll((v ?? []))
{{/isModel}}
{{#isModel}}
{{#enumName}}
[]..addAll((v ?? []))
{{/enumName}}
{{^enumName}}
{{#isDateTime}}
[]..addAll((v ?? []))
{{/isDateTime}}
{{^isDateTime}}
{{#isDate}}
[]..addAll((v ?? []))
{{/isDate}}
{{^isDate}}
[]..addAll((v ?? []).map((y) => y.copyWith()).toList())
{{/isDate}}
{{/isDateTime}}
{{/enumName}}
{{/isModel}}