File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
androidMain/kotlin/dev/gitlive/firebase/firestore
iosMain/kotlin/dev/gitlive/firebase/firestore Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ actual class DocumentSnapshot(val android: com.google.firebase.firestore.Documen
413
413
414
414
actual fun <T > data (strategy : DeserializationStrategy <T >) = decode(strategy, android.data)
415
415
416
- actual fun dataMap (): Map <String , Any ?> = android.data ? : mapOf ()
416
+ actual fun dataMap (): Map <String , Any ?> = android.data ? : emptyMap ()
417
417
418
418
actual inline fun <reified T > get (field : String ) = decode<T >(value = android.get(field))
419
419
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ actual class DocumentSnapshot(val ios: FIRDocumentSnapshot) {
381
381
382
382
actual fun <T > data (strategy : DeserializationStrategy <T >) = decode(strategy, ios.data())
383
383
384
- actual fun dataMap (): Map <String , Any ?> = ios.data()?.map { it.key.toString() to it.value }?.toMap() ? : mapOf ()
384
+ actual fun dataMap (): Map <String , Any ?> = ios.data()?.map { it.key.toString() to it.value }?.toMap() ? : emptyMap ()
385
385
386
386
actual inline fun <reified T > get (field : String ) = decode<T >(value = ios.valueForField(field))
387
387
You can’t perform that action at this time.
0 commit comments