ktx / com.google.firebase.firestore.ktx / com.google.firebase.firestore.QuerySnapshot

Extensions for com.google.firebase.firestore.QuerySnapshot

toObjects

fun <T : Any> QuerySnapshot.toObjects(): List<T>
fun <T : Any> QuerySnapshot.toObjects(serverTimestampBehavior: ServerTimestampBehavior): List<T>

Returns the contents of the documents in the QuerySnapshot, converted to the provided class, as a list.