with Savedstate version 1.3.0, we can use like this
@Serializable
data class UiState(
@Serializable(with = SnapshotStateListSerializer::class)
val items: SnapshotStateList<String>,
@Serializable(with = MutableStateSerializer::class)
val text: MutableState<String>
)