kingsley
10/22/2020, 1:01 PMcoerceInputValues
would help with that, but it doesn’t seem like it
2. How can I register a serializer for enum class such that if an enum value doesn’t exist for the serialized value, it’ll fallback to a default. At the moment, I’m creating a custom serializer wrapping the enums’s one, catching the exception and then returning the fallback. But I hope there’s a much better way to do this
3. How does polymorphic deserialization of API jsons work? When there is no type field that references the actual type? Do I need to write a custom serializer in this case? Or am I able to map a property to the right class
4. Is it possible to use @Serializable(with = XXX)
as a meta annotation? If no, Is anything like this planned?
5. I’d like to serialize defaults that are not nulls. But there doesn’t seem to be any configuration for that. The options are either to not serialize defaults, or to serialize all defaults including nulls. Is there a way to do this?
And FYI, I’m using @jw’s adapter for retrofit