Add option to skip invalid fields with castObject()
#12156
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
new feature
This change adds new functionality, like a new method or class
Milestone
Prerequisites
馃殌 Feature Proposal
Based on @AbdelrahmanHafez 's comments from #12120 (comment) . It would be nice to have an option that ignores invalid fields with
castObject()
, rather than throwing aCastError
.Motivation
Would be helpful if you want to use
castObject()
and want to take just the valid fields.Example
No response
The text was updated successfully, but these errors were encountered: