question: How can I convert some optional parameters defined in the model without excluding the attributes not defined in the model? #1445
Labels
type: question
Questions about the usage of the library.
I was trying to...
I hope that when some parameters of the Model are optional, I can automatically remove some parameters that are not passed in, instead of changing its value to
undefined
.As the example in the document:
The problem:
In the case of no
id
transfer, it is converted toundefined
by default, which I don't want to do. The effect I want is that if I don't transfer theid
field, the converted object will not have theid
field.I know that fields with
undefined
can be removed by some other methods.for example:
I want to ask whether this tool provides such functions or options to call to achieve this effect. I can't find it in the document.
The text was updated successfully, but these errors were encountered: