def _convert_dct_with_filter(v10_dct_with_opt_filter):
    """Upgrage the filter object from v10 to v11.

    v10 filters from a serialized manifest looked like:
    {..., 'filter': {'where_sql_template': '<filter_value>'}}
    whereas v11 filters look like:
    {..., 'filter': {'where_filters': [{'where_sql_template': '<filter_value>'}, ...]}}
    """
    if v10_dct_with_opt_filter is not None and v10_dct_with_opt_filter.get("filter") is not None:
        v10_dct_with_opt_filter["filter"] = {"where_filters": [v10_dct_with_opt_filter["filter"]]}
Upgrage the filter object from v10 to v11.

    v10 filters from a serialized manifest looked like:
    {..., 'filter': {'where_sql_template': '<filter_value>'}}
    whereas v11 filters look like:
    {..., 'filter': {'where_filters': [{'where_sql_template': '<filter_value>'}, ...]}}
    
core/dbt/artifacts/schemas/upgrades/upgrade_manifest.py