It seems that there is no need to do additional things.
If there is a property in the class that is not in json, then it will be the default value of that data type. If there is a property in json that is not in the class, then this property will be ignored.
Have you encountered any errors? Or am I misunderstanding what you mean?
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.