aboutsummaryrefslogtreecommitdiff
path: root/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/iosMain/kotlin/mx/trackermap/TrackerMap')
-rw-r--r--shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt
new file mode 100644
index 0000000..be26416
--- /dev/null
+++ b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/Serialization.kt
@@ -0,0 +1,12 @@
+package mx.trackermap.TrackerMap.utils
+
+import kotlinx.serialization.json.JsonPrimitive
+import kotlinx.serialization.json.longOrNull
+
+class Serialization {
+ companion object {
+ fun longOrNull(json: JsonPrimitive) = json.longOrNull
+
+ fun toString(json: JsonPrimitive) = json.toString()
+ }
+} \ No newline at end of file