public function readEvent()
    {
        $rawRequestBody = $this->httpClient->getRawRequest();
        $webhookEvent = !empty($rawRequestBody['webhook_event'])
            ? json_decode($rawRequestBody['webhook_event'], true)
            : false;
        return $webhookEvent ? $this->dataFactory->create($webhookEvent) : false;
    }
public function readEvent()
    {
        $rawRequestBody = $this->httpClient->getRawRequest();
        $webhookEvent = !empty($rawRequestBody['webhook_event'])
            ? json_decode($rawRequestBody['webhook_event'], true)
            : false;
        return $webhookEvent ? $this->dataFactory->create($webhookEvent) : false;
    }
public function readEvent ( ) { $ rawRequestBody = $ this -> httpClient -> getRawRequest ( ) ; $ webhookEvent = ! empty ( $ rawRequestBody [ 'webhook_event' ] ) ? json_decode ( $ rawRequestBody [ 'webhook_event' ] , true ) : false ; return $ webhookEvent ? $ this -> dataFactory -> create ( $ webhookEvent ) : false ; }
Read webhook event from request

@return \SubscribePro\Service\Webhook\EventInterface|bool
Read webhook event from request