File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ggdsl-util/src/main/kotlin/org/jetbrains/kotlinx/ggdsl/util/serialization Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package org.jetbrains.kotlinx.ggdsl.util.serialization
2
2
3
3
import kotlinx.serialization.json.*
4
4
5
- internal typealias Spec = Map <String , Any >
5
+ public typealias LetsPlotSpec = Map <String , Any >
6
6
7
- public fun serializeSpec (spec : Spec ): JsonElement {
7
+ public fun serializeSpec (spec : LetsPlotSpec ): JsonElement {
8
8
return serialize(spec)
9
9
}
10
10
@@ -37,7 +37,7 @@ private fun serialize(list: List<*>): JsonArray {
37
37
}
38
38
}
39
39
40
- public fun deserializeSpec (json : JsonElement ): Spec {
40
+ public fun deserializeSpec (json : JsonElement ): LetsPlotSpec {
41
41
if (json !is JsonObject ) error(" LetsPlot spec should be a key-value object, but it's $json " )
42
42
val map = deserializeMap(json)
43
43
@@ -46,7 +46,7 @@ public fun deserializeSpec(json: JsonElement): Spec {
46
46
}
47
47
48
48
@Suppress(" UNCHECKED_CAST" )
49
- return map as Spec
49
+ return map as LetsPlotSpec
50
50
}
51
51
52
52
private fun deserializeAny (json : JsonElement ): Any? {
You can’t perform that action at this time.
0 commit comments