@staticmethod
def get_workspace_by_name_from_user_info(user_info, workspace_name):
    """Resolve a workspace name by searching the Toggl.com user information for a workspace with that name.

        Details:
          - List of returned workspace properties:
            https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#workspaces

        :param user_info: User information as returned by :meth:`get_user_info`.
        :type user_info: dict
        :param workspace_name: Workspace name to resolve.
        :type workspace_name: str
        :return: ``dict`` describing the resolved workspace or ``None`` if no workspace with the given name
            can be found.
        :rtype: dict | None
        """
    for workspace in user_info['data']['workspaces']:
        if workspace['name'] == workspace_name:
            return workspace
    return None
