What would be the best approach to serializing `Ma...
# serialization
m
What would be the best approach to serializing
Map<Foo, String>
given that I have a serializer for
Foo
? I really want to avoid writing a serializer for whole
Map
class
I suppose that
@Contextual
with adding the contextual serializer to
serializersModule
but that didn't work
m
https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization.builtins/-map-serializer.html but non-string keys are not supported by all formats
Well, I have to use
serializer()
due to some of my "magic"... I guess I'll just map it