It does seem a bit weird when you phrase it that w...
# squarelibraries
c
It does seem a bit weird when you phrase it that way and I agree that I think moshi does the right thing by default. If the server sends an explicit null, we should honor that. If they don't want to send it then they should omit it. If anything they'll save some bits across the wire... but I'm working with my own local team which has the weirdest setup that is causing values to sometimes come in as null and others times not to. So it's hit and miss, we're the only platform that has these issues, and I don't want to put ? next to every field in every class of 100+ files. I would really appreciate if you were able to experiment with it, but no biggie if you can't. Just wanted to sanity check if my code above was obviously wrong to anyone and if there was any chance moshi would do/provide this since it does seem to be a common use case people are coming across.