diff --git a/redwood-treehouse/src/commonMain/kotlin/app/cash/redwood/treehouse/StateSnapshot.kt b/redwood-treehouse/src/commonMain/kotlin/app/cash/redwood/treehouse/StateSnapshot.kt index fa0b2393a2..fb69964e9b 100644 --- a/redwood-treehouse/src/commonMain/kotlin/app/cash/redwood/treehouse/StateSnapshot.kt +++ b/redwood-treehouse/src/commonMain/kotlin/app/cash/redwood/treehouse/StateSnapshot.kt @@ -18,7 +18,6 @@ package app.cash.redwood.treehouse import androidx.compose.runtime.MutableState import androidx.compose.runtime.mutableStateOf import kotlin.jvm.JvmInline -import kotlinx.serialization.Contextual import kotlinx.serialization.Serializable import kotlinx.serialization.json.JsonArray import kotlinx.serialization.json.JsonElement @@ -29,7 +28,7 @@ import kotlinx.serialization.json.intOrNull @Serializable public class StateSnapshot( - public val content: Map>, + public val content: Map>, ) { public fun toValuesMap(): Map> { return content.mapValues { entry -> @@ -89,6 +88,7 @@ private fun JsonElement?.fromJsonElement(): Any { } } +@Serializable public data class Saveable( val isMutableState: Boolean, val value: JsonElement,