Retrieves an environment variable value as a dictionary.

        Args:
            name (str): The case-insensitive, unprefixed variable name.
            default: If provided, a default value will be returned
                instead of throwing ``EnvironmentError``.

        Returns:
            dict: The environment variable's value as a ``dict``.

        Raises:
            EnvironmentError: If the environment variable does not
                exist, and ``default`` was not provided.

def get_dict(self, name, default=None):
        """Retrieves an environment variable value as a dictionary.

        Args:
            name (str): The case-insensitive, unprefixed variable name.
            default: If provided, a default value will be returned
                instead of throwing ``EnvironmentError``.

        Returns:
            dict: The environment variable's value as a ``dict``.

        Raises:
            EnvironmentError: If the environment variable does not
                exist, and ``default`` was not provided.

        """
        if name not in self:
            if default is not None:
                return default
            raise EnvironmentError.not_found(self._prefix, name)
        return dict(**self.get(name))