@classmethod
def from_api_response(cls, reddit_session, json_dict):
    """Return an instance of the appropriate class from the json_dict."""
    parts = reddit_session._request_url.split('/', 6)
    subreddit = parts[4]
    page = parts[6].split('.', 1)[0]
    return cls(reddit_session, subreddit, page, json_dict=json_dict)
