@@ -33,8 +33,8 @@ export declare class DocumentReference<AppModelType = DocumentData, DbModelType
3333
3434| Method | Modifiers | Description |
3535| --- | --- | --- |
36- | [fromJSON (firestore , json , converter )](./firestore_lite .documentreference .md #documentreferencefromjson ) | <code >static </code > | Builds a <code >DocumentReference </code > instance from a JSON serialized version of < code > DocumentReference </ code >. |
37- | [toJSON ()](./firestore_lite .documentreference .md #documentreferencetojson ) | | Returns a JSON -serializable representation of this DocumentReference . |
36+ | [fromJSON (firestore , json , converter )](./firestore_lite .documentreference .md #documentreferencefromjson ) | <code >static </code > | Builds a <code >DocumentReference </code > instance from a JSON object created by [ DocumentReference . toJSON ()](./ firestore_ . documentreference . md # documentreferencetojson )<!-- -- >. |
37+ | [toJSON ()](./firestore_lite .documentreference .md #documentreferencetojson ) | | Returns a JSON -serializable representation of this < code > DocumentReference </ code > instance . |
3838| [withConverter (converter )](./firestore_lite .documentreference .md #documentreferencewithconverter ) | | Applies a custom data converter to this <code >DocumentReference </code >, allowing you to use your own custom model objects with Firestore . When you call [setDoc ()](./firestore_lite .md #setdoc_ee215ad )<!-- -->, [getDoc ()](./firestore_lite .md #getdoc_4569087 )<!-- -->, etc . with the returned <code >DocumentReference </code > instance , the provided converter will convert between Firestore data of type <code >NewDbModelType </code > and your custom type <code >NewAppModelType </code >. |
3939| [withConverter (converter )](./firestore_lite .documentreference .md #documentreferencewithconverter ) | | Removes the current converter . |
4040
@@ -100,7 +100,7 @@ readonly type = "document";
100100
101101## DocumentReference .fromJSON ()
102102
103- Builds a `DocumentReference ` instance from a JSON serialized version of ` DocumentReference ` <!-- -->.
103+ Builds a `DocumentReference ` instance from a JSON object created by [ DocumentReference . toJSON ()](./ firestore_ . documentreference . md # documentreferencetojson ) <!-- -->.
104104
105105<b >Signature :</b >
106106
@@ -113,16 +113,18 @@ static fromJSON<NewAppModelType = DocumentData, NewDbModelType extends DocumentD
113113| Parameter | Type | Description |
114114| --- | --- | --- |
115115| firestore | [Firestore ](./firestore_lite .firestore .md #firestore_class ) | |
116- | json | object | |
116+ | json | object | a JSON object represention of a < code > DocumentReference </ code > instance |
117117| converter | [FirestoreDataConverter ](./firestore_lite .firestoredataconverter .md #firestoredataconverter_interface )<!-- -->< ;NewAppModelType , NewDbModelType > ; | |
118118
119119<b >Returns :</b >
120120
121121[DocumentReference ](./firestore_lite .documentreference .md #documentreference_class )<!-- -->< ;NewAppModelType , NewDbModelType > ;
122122
123+ an instance of [DocumentReference ](./firestore_ .documentreference .md #documentreference_class ) if the JSON object could be parsed . Throws a [FirestoreError ](./firestore_ .firestoreerror .md #firestoreerror_class ) if an error occurs .
124+
123125## DocumentReference .toJSON ()
124126
125- Returns a JSON -serializable representation of this DocumentReference .
127+ Returns a JSON -serializable representation of this ` DocumentReference ` instance .
126128
127129<b >Signature :</b >
128130
@@ -133,6 +135,8 @@ toJSON(): object;
133135
134136object
135137
138+ a JSON representation of this object .
139+
136140## DocumentReference .withConverter ()
137141
138142Applies a custom data converter to this `DocumentReference `<!-- -->, allowing you to use your own custom model objects with Firestore . When you call [setDoc ()](./firestore_lite .md #setdoc_ee215ad )<!-- -->, [getDoc ()](./firestore_lite .md #getdoc_4569087 )<!-- -->, etc . with the returned `DocumentReference ` instance , the provided converter will convert between Firestore data of type `NewDbModelType ` and your custom type `NewAppModelType `<!-- -->.
0 commit comments