getValue

inline fun <T> DataSnapshot.getValue(): T?(source)

Deprecated (with error)

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

Replace with

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

The SDK's reified getValue, which maps a class by reflection on Android: deprecated with an error towards com.google.firebase.serialization.getValue, which maps through FirebaseFormat.Database on every platform (see DatabaseMapping.kt for why it lives in that package).


inline fun <T> MutableData.getValue(): T?(source)

Deprecated (with error)

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

Replace with

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

The SDK's reified getValue (see DataSnapshot.getValue); deprecated towards com.google.firebase.serialization.getValue.