toObject
The document as T; on Apple platforms and JS a cast of DocumentSnapshot.data.
inline fun <T> DocumentSnapshot.toObject(serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?(source)
inline fun <T> QueryDocumentSnapshot.toObject(serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T(source)
The document as T; on Apple platforms and JS a cast of DocumentSnapshot.getData.