from enum import Enum
from typing import Dict
from typing import Any


def enum_to_dict_fn(e: Enum) -> Dict[str, Any]:
    """
    Converts an ``Enum`` to a ``dict``.
    """
    return {
        'name': e.name
    }