Sourabh Rawat
10/02/2020, 2:25 AM{
"id": 123
}
how can I configure serialization to automatically populate nullable values and lists in class
data class Foo(val id: Int, val bar: String?, val foobar: List<String>)
I want json to be converted to
Foo(id = 123, bar = null, foobar = emptyList())
andylamax
10/02/2020, 3:22 AMdata class Foo(val id: Int, val bar: String?=null, val foobar: List<String> = emptyList())
Sourabh Rawat
10/02/2020, 7:31 AMVampire
10/02/2020, 7:55 AMVampire
10/02/2020, 7:56 AM