toObject
fun <T : Any> QueryDocumentSnapshot.toObject(): T
fun <T : Any> QueryDocumentSnapshot.toObject(serverTimestampBehavior: ServerTimestampBehavior): T
Returns the contents of the document converted to a POJO.