You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun Any.firebaseSerializer() = (this::class.compiledSerializer() ?:this::class.defaultSerializer() ?:when(this) {
10
10
isMap<*, *> ->FirebaseMapSerializer()
11
11
isList<*> ->FirebaseListSerializer()
12
+
isSet<*> ->FirebaseListSerializer()
12
13
else->throwSerializationException("Can't locate argument-less serializer for $this. For generic classes, such as lists, please provide serializer explicitly.")
13
14
}) asKSerializer<Any>
14
15
@@ -49,7 +50,7 @@ class FirebaseMapSerializer : KSerializer<Map<String, Any?>> {
0 commit comments