def get_parameter_defaults(self, include_flags=True):
        """
        Get a dict mapping parameter names to their defaults (if set).
        :rtype: dict[str, object]
        """
        return {
            name: parameter.default
            for (name, parameter)
            in self.parameters.items()
            if parameter.default is not None and (include_flags or parameter.type != 'flag')
        }
Get a dict mapping parameter names to their defaults (if set).
        :rtype: dict[str, object]