/** * @return array|\stdClass */ public function getPayload() { if (!$this->appResponse instanceof JsonResponse) { throw new \RuntimeException("Unexpected response"); } return $this->appResponse->getPayload(); }