src/WebhooksService/WebhooksService.php
public static function getWebhooksEvent($payLoad)
    {
        JsonValidator::validate($payLoad);
        $string_arry = json_decode($payLoad, true);
        $obj = ReflectionUtil::constructObjectFromWebhooksArray($string_arry, WebhooksService::WEBHOOKSWRAPPERNAME);
        return $obj;
    }
public static function getWebhooksEvent($payLoad)
    {
        JsonValidator::validate($payLoad);
        $string_arry = json_decode($payLoad, true);
        $obj = ReflectionUtil::constructObjectFromWebhooksArray($string_arry, WebhooksService::WEBHOOKSWRAPPERNAME);
        return $obj;
    }
Convert the payLoad of webhook to object

@param $payLoad
The payload to be converted
@return object
The deserialization format for the payload