getValue

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

The data as T, as the Android SDK's reified getValue, through the serializer of T with the Android SDK's rules (FirebaseFormat.Database, see databaseFormat) on every platform: a @Serializable class, a Map, a List or a primitive reads the same everywhere. It takes the place of the SDK's reflective getValue(Class) and of the SDK's own reified getValue<T>() (com.google.firebase.database.getValue), which is deprecated with an error.


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

The data as T, as the Android SDK's reified getValue (see DataSnapshot.getValue).