@classmethod
def fromJSON(cls, data):
    """
        Create a Meme instance from a JSON API response.

        Args:
            data (dict): A JSON object as returned by the get_memes endpoint
        Returns:
            The newly-created Meme object
        Raises:
            RuntimeError: if the JSON object cannot be properly parsed
        """
    try:
        return cls(**data)
    except AttributeError:
        raise RuntimeError(
            'JSON cannot be properly parsed into Meme object: ' + str(data))
