Roy Åne Sylthe
01/16/2023, 12:35 PMexplicitNulls
configuration for nullable properties with no default valueAdam S
01/16/2023, 1:13 PMRoy Åne Sylthe
01/16/2023, 1:16 PMdata class MyClass(name: String, age: Int)
And I decode this json string
{
"name": "Bob"
}
I want the result to be MyClass(name="Bob", age=0)
Adam S
01/16/2023, 1:16 PMdata class MyClass(name: String, age: Int = 0)
Adam S
01/16/2023, 1:16 PMRoy Åne Sylthe
01/16/2023, 1:19 PMAdam S
01/16/2023, 1:20 PM