Igor Brishkoski
11/20/2020, 9:23 PMList<Any>
and it works fine when I try to encode/decode the list on it’s own with Json
When I added it to my class, which is a member of a sealed class, I get this error. Serializer has not been found for type 'Any'. To use context serializer as fallback, explicitly annotate type or property with @Contextual
@Serializable
@SerialName("Sign")
data class Sign(
@Serializable(with = ListAnySerializer::class)
val payload: List<Any>
) : SealedClass()
andylamax
11/21/2020, 5:42 AMAny
instead of creating a serializer of type List<Any>