def _get_prop(properties: list, key: str):
    """
    Get a property from list of properties.

    :param properties: The list of properties to filter on
    :param key: The property key
    :return:
    """
    result = list(filter(lambda prop: prop["name"] == key, properties))

    if len(result) == 0:
        raise ValueError(f"Failed to find {key} in property set")

    return result[0]["value"]