getField

inline fun <T> DocumentSnapshot.getField(field: String): T?(source)
inline fun <T> DocumentSnapshot.getField(field: String, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?(source)

The value of field as T; on Apple platforms and JS a cast of DocumentSnapshot.get.


inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath): T?(source)
inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?(source)

The value of fieldPath as T; on Apple platforms and JS a cast of DocumentSnapshot.get.