serializableStateMachineSaver

inline fun <T : StateMachine<S, *, *>, S : State> serializableStateMachineSaver(configuration: SavedStateConfiguration = SavedStateConfiguration.DEFAULT, crossinline restore: (value: S) -> T): Saver<T, SavedState>

A Saver for StateMachine that saves the current state with SavedState.