def list_to_dict(values: list[dict]) -> dict:
    """Convert a list of dicts each containing the "name" field to
    a mapping of the form name -> value.
    """
    return {v["name"]: v for v in values}