def dump(self, destination, with_defaults=False):
        """
        Write configuration values to the specified destination.

        Args:
            destination:
            with_defaults (bool): if ``True``, values of items with no custom values will be included in the output
                if they have a default value set.
        """
        if isinstance(destination, six.string_types):
            with open(destination, 'w', encoding='utf-8') as f:
                self._rw.dump_config_to_file(self._config, f, with_defaults=with_defaults)
        else:
            self._rw.dump_config_to_file(self._config, destination, with_defaults=with_defaults)
Write configuration values to the specified destination.

        Args:
            destination:
            with_defaults (bool): if ``True``, values of items with no custom values will be included in the output
                if they have a default value set.