Matyáš Vítek
02/24/2025, 4:08 PMMap<Foo, String>
given that I have a serializer for Foo
? I really want to avoid writing a serializer for whole Map
classMatyáš Vítek
02/24/2025, 4:15 PM@Contextual
with adding the contextual serializer to serializersModule
but that didn't workephemient
02/24/2025, 4:22 PMephemient
02/24/2025, 4:23 PMMatyáš Vítek
02/24/2025, 4:25 PMhttps://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization.builtins/-map-serializer.html but non-string keys are not supported by all formatsWell, I have to use
serializer()
due to some of my "magic"... I guess I'll just map it