Having said that, we are planning to improve the way that various serialization classes interact with serialization frameworks. One move that I think would help a lot, is that we’ll internally define all the constants like
COROUTINE_SUSPENDED
via internal enum class. Java enums are typically recognized by serialization frameworks and that would reduce the need for doing those kind of hacks that you did.