def dict(
        self,
        exclude_none: bool = True,
        include: set[str] | None = None,
        exclude: set[str] | None = None,
        **kwargs,
    ):
        """Convert the object to a dictionary.

        Keys will be converted to camelCase.
        By default, None values are excluded (exclude_none=True).

        Args:
            exclude_none: Whether to exclude None values.
            include: Fields to include in the output.
            exclude: Fields to exclude from the output.
            **kwargs: Additional keyword arguments (for compatibility).

        Returns:
            The object as a dictionary.
        """
        result = {}

        for field_name in self.get_fields():
            if hasattr(self, field_name):
                value = getattr(self, field_name)

                # Apply include/exclude filters
                if include is not None and field_name not in include:
                    continue
                if exclude is not None and field_name in exclude:
                    continue

                # Apply exclude_none logic
                if exclude_none and value is None:
                    continue

                # Recursively convert nested structures
                value = self._convert_to_camel_case(
                    value, exclude_none, include, exclude
                )

                # Convert key to camelCase
                camel_key = format.to_camel_case(field_name)
                result[camel_key] = value

        return result
Convert the object to a dictionary.

        Keys will be converted to camelCase.
        By default, None values are excluded (exclude_none=True).

        Args:
            exclude_none: Whether to exclude None values.
            include: Fields to include in the output.
            exclude: Fields to exclude from the output.
            **kwargs: Additional keyword arguments (for compatibility).

        Returns:
            The object as a dictionary.
        
reflex/components/props.py