15 lines
593 B
Twig
15 lines
593 B
Twig
{%- import '../../utils.twig' as utils -%}
|
|
|
|
{%- if fields is not empty -%}
|
|
{% for field in fields %}
|
|
{% if (field.description is not empty) %}
|
|
/**
|
|
* {{ field.description }}
|
|
*/
|
|
{% endif -%}
|
|
@JsonField(name = "{{ field.jsonName }}")
|
|
{{ utils.writeNullCheckAnnotation(field.type.type.baseTypeName, field.nullable, field.optional) }}
|
|
private {{ utils.formatValueType(field.type.type, field.nullable, field.optional) }} {{ field.name }} {%- if field.optional %} = {{ utils.formatOptionalValueType(field.type.type, field.nullable) }}.empty(){% endif %};
|
|
{% endfor -%}
|
|
{% endif %}
|