Closed
Description
Jsons that contain fields with null value could not be parsed with the generated model due to the fields being assigned the non nullable type Any.
I think Any? is more appropriate.
example:
json:
{
"_id": null,
"name": "test",
"type": "test"
}
is parsed to
data class test(
@JSON(name = "_id") val id: Any, //null
@JSON(name = "name") val name: String, //test
@JSON(name = "type") val type: String //test
)