if enum classes are inherently serializable, why doesn't it inherently have
MyEnumClass::serializer
?
should I annotate
Copy code
@Serializable
enum class MyEnumClass { ... }
so that I can access it?
f
Fudge
12/07/2019, 9:53 AM
“Inherently serializable” probably means it can be serialized and deserialized WITHOUT a generated serializer, just by the way you can interact with enums. So to have the specific kotlinx.serialization serializer you still need to have @Serializable.