getField

inline fun <T> DocumentSnapshot.getField(field: String): 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.getField
getField<T>(field)

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


inline fun <T> DocumentSnapshot.getField(field: String, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): 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.getField
getField<T>(field, serverTimestampBehavior)

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


inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath): 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.getField
getField<T>(fieldPath)

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


inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): 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.getField
getField<T>(fieldPath, serverTimestampBehavior)

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