json-decoder
json-decoder copied to clipboard
Add ability to hide unmapped properties
Question speaks for itself, it would be nice to have an ability to hide properties which do not exist on the class, so we have cleaner and "smaller" classes.

So in this example, i would like to completely remove _links from the class, as i have my own setters and getters and don't want user to be able to access other data via magic methods or by using the $class->property.
Something like property_exists, or any other way.
P.S. So far, i have a way better experience working with this package that when i used the https://github.com/spatie/data-transfer-object, code is waaaaaaay cleaner and it is so much nicer to actually have correct types and references without the need to specify the full namespace.
Amazing work👏
This seems to be the same feature request as #36. I'm also looking forward to seeing this feature added! Thanks