If fromData
method is static method you should use like this
$secure3Dv2Notification = Secure3Dv2Notification::fromData($_POST);
If fromData
is non-static method you should use
$secure3Dv2Notification = (new Secure3Dv2Notification())->fromData($_POST);