2023-10-08 06:06:06 +00:00
|
|
|
/**
|
|
|
|
* {{{description}}}
|
|
|
|
{{#vars}}
|
|
|
|
* @param {{name}} {{{description}}}
|
|
|
|
{{/vars}}
|
|
|
|
*/{{#discriminator}}
|
|
|
|
{{>typeInfoAnnotation}}{{/discriminator}}
|
2024-06-07 08:15:47 +00:00
|
|
|
|
|
|
|
{{#discriminator}}interface {{classname}}{{/discriminator}}{{^discriminator}}{{#hasVars}}data {{/hasVars}}class {{classname}} @ConstructorProperties( {{#vars}}"{{baseName}}",{{/vars}} ) constructor(
|
2023-10-08 06:06:06 +00:00
|
|
|
{{#requiredVars}}
|
|
|
|
{{>dataClassReqVar}}{{^-last}},
|
|
|
|
{{/-last}}{{/requiredVars}}{{#hasRequired}}{{#hasOptional}},
|
|
|
|
{{/hasOptional}}{{/hasRequired}}{{#optionalVars}}{{>dataClassOptVar}}{{^-last}},
|
|
|
|
{{/-last}}{{/optionalVars}}
|
|
|
|
) {{/discriminator}}{{#parent}}: {{{.}}}{{/parent}}{
|
|
|
|
{{#discriminator}}
|
|
|
|
{{#requiredVars}}
|
|
|
|
{{>interfaceReqVar}}
|
|
|
|
{{/requiredVars}}
|
|
|
|
{{#optionalVars}}
|
|
|
|
{{>interfaceOptVar}}
|
|
|
|
{{/optionalVars}}
|
|
|
|
{{/discriminator}}
|
|
|
|
{{#hasEnums}}{{#vars}}{{#isEnum}}
|
|
|
|
/**
|
|
|
|
* {{{description}}}
|
|
|
|
* Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}}
|
|
|
|
*/
|
2024-06-07 09:13:24 +00:00
|
|
|
enum class {{{nameInPascalCase}}}(val value: {{#isContainer}}{{#items}}{{{dataType}}}{{/items}}{{/isContainer}}{{^isContainer}}{{{dataType}}}{{/isContainer}}) {
|
|
|
|
{{#allowableValues}}{{#values}}
|
|
|
|
@JsonProperty("{{.}}") `{{.}}`("{{.}}"){{^-last}},{{/-last}}{{/values}}{{/allowableValues}}
|
2023-10-08 06:06:06 +00:00
|
|
|
}
|
|
|
|
{{/isEnum}}{{/vars}}{{/hasEnums}}
|
|
|
|
}
|