https://kotlinlang.org logo
Title
a

Ayfri

02/15/2023, 9:09 PM
Is there a way to retrieve the default generated serializer from a class that have a custom serializer ?
e

ephemient

02/15/2023, 9:19 PM
there isn't a generated serializer if a custom one is set via
@Serializable(with = )
a

Ayfri

02/15/2023, 9:19 PM
Ah okay, so I have to recreate one from scratch ?
e

ephemient

02/15/2023, 9:20 PM
or use
@Serializer(forClass = )
to generate another one
usual caveats apply to external serialization
a

Ayfri

02/15/2023, 9:21 PM
Oooh yes you're right ! Thanks you for the information
j

Javier

02/15/2023, 10:07 PM
In the past you can use companion object to extend it and implement the serializer there, but I haven't tried it for a while, not sure if it still works