Generates utilities to aid in serializing to/from JSON.
BSD 3-Clause "New" or "Revised" License
1.55k
stars
393
forks
source link
Can't create constructor with required nullable property and ignored in to/from json #1304
Open
MiniSuperDev opened 1 year ago
I want to serialized this class, and I want that the property be required to have static analysis when I used so I don't forget to assign it.
The default value when de/serialize should be null
This work if is not required, but I need to be required because in code I ever want to assign it, the only case when not is in serialization.