toObject

inline fun <T> DocumentSnapshot.toObject(): T?(source)

Deprecated (with error)

Maps the class with the Android SDK's reflection, which only exists on Android and the JVM; the reified toObject<T>(), toObjects<T>(), getField<T>() and dataObjects<T>() in com.google.firebase.serialization map a @Serializable class with kotlinx.serialization on every platform

Replace with

import com.google.firebase.serialization.toObject
toObject<T>()

The SDK's reified toObject; deprecated towards com.google.firebase.serialization.toObject.


Deprecated (with error)

Maps the class with the Android SDK's reflection, which only exists on Android and the JVM; the reified toObject<T>(), toObjects<T>(), getField<T>() and dataObjects<T>() in com.google.firebase.serialization map a @Serializable class with kotlinx.serialization on every platform

Replace with

import com.google.firebase.serialization.toObject
toObject<T>(serverTimestampBehavior)

The SDK's reified toObject; deprecated towards com.google.firebase.serialization.toObject.