Empty json and Serializable
class with no properties or only @EncodedDefault
properties
#1850
Labels
Serializable
class with no properties or only @EncodedDefault
properties
#1850
Describe the bug
I am getting a server response which is an empty json { }, I am setting a Serializable class with no properties but I get this exception:
To Reproduce
Set an empty json (
{}
) and a@Serializable class SomeClass
with no properties.Expected behavior
If I get an empty json and I set a
@Serializable
class with no properties, I expect it to directly work (use case strong typing some error responses by the backend).If I set a
data class
which contains one or more@EncodedDefault
properties, they should be set.Environment
The text was updated successfully, but these errors were encountered: