def METHOD_NAME(self, envelope):
    """
    :param envelope: an already serialized json response
    :return:
    """
    if envelope is None:
        return None
    timetoken = int(envelope[2])
    res = PNPublishResult(envelope, timetoken)
    return res