Join Slack
Powered by
Another question about map serialization. I have a...
# serialization
a
altavir
04/11/2020, 12:05 PM
Another question about map serialization. I have a map with polymorphic value type and I have serializer module for it. How can I construct a serializer for the map to use in custom serializer?
d
Dominaezzz
04/11/2020, 3:18 PM
MapSerializer(String.serializer(), PolymorphicSerializer(YourClass::class))
?
🙏 1
➕ 1
a
altavir
04/11/2020, 4:54 PM
Wow, looks simple, let me try it.
altavir
04/11/2020, 4:56 PM
Seems to be working, thanks
@Dominaezzz
👍🏼 1
14
Views
Open in Slack
Previous
Next