For now, there is no way to do it: https://github.com/spryngpayments/php/issues/3
Partially, it can be solved by using get_object_vars():
get_object_vars()