json-decoder icon indicating copy to clipboard operation
json-decoder copied to clipboard

Add ability to hide unmapped properties

Open darki73 opened this issue 5 years ago • 1 comments

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.

image

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👏

darki73 avatar Nov 23 '20 14:11 darki73

This seems to be the same feature request as #36. I'm also looking forward to seeing this feature added! Thanks

deminy avatar Jan 16 '21 01:01 deminy