def map_enum_to_dict(enum_list):
    """__map_enum_to_dict
        Maps enum types to dict of {"name": enum} pairs, for use in frontend programming/TaskTypeRestriction generation.
    Parameters
    ----------
    enum_list: list of enum
        list of enum to generate dict from.
    Returns
    -------
    enum_dict: dict
        Dict containing {enum.name: enum} pairs.
    """
    enum_dict = {}
    for item in enum_list:
        enum_dict[item.name] = item
    return enum_dict
