We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf3167 commit 3f0681cCopy full SHA for 3f0681c
1 file changed
Demo/swiftui/src/commonMain/kotlin/com/pureswift/swiftui/ViewNode.kt
@@ -82,3 +82,5 @@ data class ViewNode(
82
internal fun JsonObject.double(key: String): Double? = (this[key] as? JsonPrimitive)?.doubleOrNull
83
84
internal fun JsonObject.long(key: String): Long? = (this[key] as? JsonPrimitive)?.longOrNull
85
+
86
+internal fun JsonObject.string(key: String): String? = (this[key] as? JsonPrimitive)?.content
0 commit comments