def get_vars_dict()

in function_app/src/components/speech.py [0:0]


    def get_vars_dict(self, replace_none_with: Any = "Unknown") -> dict[str, Any]:
        """
        Returns a dictionary of all variables in the object.

        Args:
            replace_none_with: The value to replace None values with.

        Returns:
            A dictionary of all variables and properties in the object.
        """
        vars = dict()
        for key, value in self.dict().items():
            if value is None:
                vars[key] = replace_none_with
            else:
                vars[key] = value
        return vars