{#
    This is a custom template derived from:
    https://github.com/openapi-generators/openapi-python-client/blob/v0.22.0/openapi_python_client/templates/property_templates/property_macros.py.jinja
#}
{% macro construct_template(construct_function, property, source) %}
{# CHANGE START (1) - make all the fields treated as non-required #}
{# {% if property.required %}
{{ property.python_name }} = {{ construct_function(property, source) }}
{% else %}{# Must be non-required #}
_{{ property.python_name }} = {{ source }}
{{ property.python_name }}: {{ property.get_type_string() }}
    {# {% if not property.required %} #}
if isinstance(_{{ property.python_name }},  Unset):
    {{ property.python_name }} = UNSET
    {# {% endif %} #}
else:
    {{ property.python_name }} = {{ construct_function(property, "_" + property.python_name) }}
{# {% endif %} #}
{# CHANGE END (1) #}
{% endmacro %}
