def to_serializable(cls, value: Any) -> Any:
        """
        Convert the provided value to a JSON-serializable form.
        If the value is already serializable, return it directly.
        Otherwise, try to use its __dict__ or fall back to its string representation.
        """
        try:
            json.dumps(value)
            return value
        except TypeError:
            if hasattr(value, "__dict__"):
                return value.__dict__
            return str(value)

        Convert the provided value to a JSON-serializable form.
        If the value is already serializable, return it directly.
        Otherwise, try to use its __dict__ or fall back to its string representation.
        
ai/core/src/unitycatalog/ai/core/types.py