[PHP]Convert JSON to class instance

https://johannespichler.com/from-json-to-model-instances-in-php/