I am glad to share that in a new
KStateMachine library release
v0.32.0, state machine serialization is supported out of the box. It uses
Kotlinx.serialization, and implemented by event recording mechanism.
Please enjoy updated
docs.
KStateMachine Github