QuerySnapshot<T extends dynamic>.fromJson constructor

QuerySnapshot<T extends dynamic>.fromJson(
  1. FirebaseFirestore firestore,
  2. Map<String, Object?> json, {
  3. FirestoreDataConverter<T>? converter,
})

Builds a QuerySnapshot from the JSON object written by toJson, for the firestore instance.

The snapshot is not from cache and has no pending writes; its query is the one of the original snapshot. Pass the converter of the original query to get typed data back. Throws a FirestoreException if json is not a valid query snapshot JSON object, for example one of a different project or database.

This is the JS SDK querySnapshotFromJSON().

Implementation

factory QuerySnapshot.fromJson(
  FirebaseFirestore firestore,
  Map<String, Object?> json, {
  FirestoreDataConverter<T>? converter,
}) {
  return snapshot_json.querySnapshotFromJson<T>(firestore, json, converter);
}