def serialize_base(value: Base) -> dict:
    """Serialize a Base instance.

    Args:
        value : The Base to serialize.

    Returns:
        The serialized Base.
    """
    from reflex.vars.base import Var

    return {
        k: v for k, v in value.dict().items() if isinstance(v, Var) or not callable(v)
    }
Serialize a Base instance.

    Args:
        value : The Base to serialize.

    Returns:
        The serialized Base.
    
reflex/utils/serializers.py