def METHOD_NAME(pipeline_response):
    deserialized = self._deserialize('AnalyzeTextJobState', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized