flash.modelList.mustache Maven / Gradle / Ivy
The newest version!
package {{package}} {
import io.swagger.common.ListWrapper;
{{#imports}}import {{import}};
{{/imports}}
{{#models}}
{{#model}}
public class {{classname}}List implements ListWrapper {
// This declaration below of _{{name}}_obj_class is to force flash compiler to include this class
private var _{{classVarName}}_obj_class: {{package}}.{{classname}} = null;
[XmlElements(name="{{classVarName}}", type="{{package}}.{{classname}}")]
public var {{classVarName}}: Array = new Array();
public function getList(): Array{
return {{classVarName}};
}
}
{{/model}}
{{/models}}
}