(val)
return f'"{text}"' if val["is_expr"] else f"'{text}'"
Wraps the value either in double quotes if it's an expression or in single quotes if it's a string/value
    :param val:
    :return:
Wraps the value either in double quotes if it's an expression or in single quotes if it's a string/value
    :param val:
    :return:
Wraps the value either in double quotes if it s an expression or in single quotes if it s a string / value : param val : : return :
def _map_value_to_qgis_expr(val):
    """
    Wraps the value either in double quotes if it's an expression or in single quotes if it's a string/value
    :param val:
    :return:
    """

    text = val["text"]
    if isinstance(text, bytes):
        text = text.decode("utf-8")
    return f'"{text}"' if val["is_expr"] else f"'{text}'"
def _map_value_to_qgis_expr ( val ) : text = val [ "text" ] if isinstance ( text , bytes ) : text = text . decode ( "utf-8" ) return f'"{text}"' if val [ "is_expr" ] else f"'{text}'"