@@ -35,6 +35,7 @@ export declare class QuerySnapshot<AppModelType = DocumentData, DbModelType exte
3535| [docChanges (options )](./firestore_ .querysnapshot .md #querysnapshotdocchanges ) | | Returns an array of the documents changes since the last snapshot . If this is the first snapshot , all documents will be in the list as 'added ' changes . |
3636| [forEach (callback , thisArg )](./firestore_ .querysnapshot .md #querysnapshotforeach ) | | Enumerates all of the documents in the <code >QuerySnapshot </code >. |
3737| [fromJSON (db , json )](./firestore_ .querysnapshot .md #querysnapshotfromjson ) | <code >static </code > | Builds a <code >QuerySnapshot </code > instance from a JSON object created by [QuerySnapshot .toJSON ()](./firestore_ .querysnapshot .md #querysnapshottojson )<!-- -->. |
38+ | [fromJSONUsingConverter (db , json , converter )](./firestore_ .querysnapshot .md #querysnapshotfromjsonusingconverter ) | <code >static </code > | Builds a <code >QuerySnapshot </code > instance from a JSON object created by [QuerySnapshot .toJSON ()](./firestore_ .querysnapshot .md #querysnapshottojson )<!-- -->. |
3839| [toJSON ()](./firestore_ .querysnapshot .md #querysnapshottojson ) | | Returns a JSON -serializable representation of this <code >QuerySnapshot </code > instance . |
3940
4041## QuerySnapshot .docs
@@ -135,7 +136,7 @@ Builds a `QuerySnapshot` instance from a JSON object created by [QuerySnapshot.t
135136<b >Signature :</b >
136137
137138```typescript
138- static fromJSON < AppModelType , DbModelType extends DocumentData = DocumentData > (db : Firestore , json : object ): QuerySnapshot < AppModelType , DbModelType > ;
139+ static fromJSON (db : Firestore , json : object ): QuerySnapshot ;
139140```
140141
141142#### Parameters
@@ -147,6 +148,30 @@ static fromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(d
147148
148149<b >Returns :</b >
149150
151+ [QuerySnapshot ](./firestore_ .querysnapshot .md #querysnapshot_class )
152+
153+ an instance of [QuerySnapshot ](./firestore_ .querysnapshot .md #querysnapshot_class ) if the JSON object could be parsed . Throws a [FirestoreError ](./firestore_ .firestoreerror .md #firestoreerror_class ) if an error occurs .
154+
155+ ## QuerySnapshot .fromJSONUsingConverter ()
156+
157+ Builds a `QuerySnapshot ` instance from a JSON object created by [QuerySnapshot .toJSON ()](./firestore_ .querysnapshot .md #querysnapshottojson )<!-- -->.
158+
159+ <b >Signature :</b >
160+
161+ ```typescript
162+ static fromJSONUsingConverter <AppModelType , DbModelType extends DocumentData = DocumentData >(db : Firestore , json : object , converter : FirestoreDataConverter <AppModelType , DbModelType >): QuerySnapshot <AppModelType , DbModelType >;
163+ ```
164+
165+ #### Parameters
166+
167+ | Parameter | Type | Description |
168+ | --- | --- | --- |
169+ | db | [Firestore ](./firestore_ .firestore .md #firestore_class ) | |
170+ | json | object | a JSON object represention of a <code >QuerySnapshot </code > instance . |
171+ | converter | [FirestoreDataConverter ](./firestore_ .firestoredataconverter .md #firestoredataconverter_interface )<!-- -->< ;AppModelType , DbModelType > ; | Converts objects to and from Firestore . |
172+
173+ <b >Returns :</b >
174+
150175[QuerySnapshot ](./firestore_ .querysnapshot .md #querysnapshot_class )<!-- -->< ;AppModelType , DbModelType > ;
151176
152177an instance of [QuerySnapshot ](./firestore_ .querysnapshot .md #querysnapshot_class ) if the JSON object could be parsed . Throws a [FirestoreError ](./firestore_ .firestoreerror .md #firestoreerror_class ) if an error occurs .
0 commit comments