I have data class which contains non nullable para...
# android
b
I have data class which contains non nullable parameters like
first_name
,
last_name
etc also using
Gson
for parsing. Suppose server doesn't send any one of the key value. I am expecting app should crash but it is not crashing. When i degug value is
null
.Any one knows what is the reason ?
m
Have you considered using Mosi instead of Gson? https://github.com/square/moshi
b
No it is GSON
a
Yeah we know đŸ˜„
And that’s the problem