Regarding creating such custom serializers, and th...
# serialization
s
Regarding creating such custom serializers, and then using them on the property itself. I wonder, is there a way to registed them on the
SerializersModule
level, so that you don’t have to pollute all your models with all this extra code? I have been trying to check out if there’s a way to have some of my models have a property of
kotlinx.collections.immutable.ImmutableList
and I am having quite a hard time making it all work without having to mark all my models which have it with the annotation on each position. Even worse that there’s no IDE warning, since it doesn’t mind that
ImmutableList
isn’t serializable itself. I suppose due to the fact that it’s a
List
too and it thinks it can handle that?