@@ -68,9 +68,11 @@ export function average(field: string | FieldPath): AggregateField<number | null
6868// @public
6969export class Bytes {
7070 static fromBase64String(base64 : string ): Bytes ;
71+ static fromJSON(json : object ): Bytes ;
7172 static fromUint8Array(array : Uint8Array ): Bytes ;
7273 isEqual(other : Bytes ): boolean ;
7374 toBase64(): string ;
75+ toJSON(): object ;
7476 toString(): string ;
7577 toUint8Array(): Uint8Array ;
7678}
@@ -135,9 +137,11 @@ export function documentId(): FieldPath;
135137export class DocumentReference <AppModelType = DocumentData , DbModelType extends DocumentData = DocumentData > {
136138 readonly converter: FirestoreDataConverter <AppModelType , DbModelType > | null ;
137139 readonly firestore: Firestore ;
140+ static fromJSON<NewAppModelType = DocumentData , NewDbModelType extends DocumentData = DocumentData >(firestore : Firestore , json : object , converter ? : FirestoreDataConverter <NewAppModelType , NewDbModelType >): DocumentReference <NewAppModelType , NewDbModelType >;
138141 get id(): string ;
139142 get parent(): CollectionReference <AppModelType , DbModelType >;
140143 get path(): string ;
144+ toJSON(): object ;
141145 readonly type = " document" ;
142146 withConverter<NewAppModelType , NewDbModelType extends DocumentData = DocumentData >(converter : FirestoreDataConverter <NewAppModelType , NewDbModelType >): DocumentReference <NewAppModelType , NewDbModelType >;
143147 withConverter(converter : null ): DocumentReference <DocumentData , DocumentData >;
@@ -205,12 +209,14 @@ export type FirestoreErrorCode = 'cancelled' | 'unknown' | 'invalid-argument' |
205209// @public
206210export class GeoPoint {
207211 constructor (latitude : number , longitude : number );
212+ static fromJSON(json : object ): GeoPoint ;
208213 isEqual(other : GeoPoint ): boolean ;
209214 get latitude(): number ;
210215 get longitude(): number ;
211216 toJSON(): {
212217 latitude: number ;
213218 longitude: number ;
219+ type: string ;
214220 };
215221}
216222
@@ -416,6 +422,7 @@ export class Timestamp {
416422 seconds : number ,
417423 nanoseconds : number );
418424 static fromDate(date : Date ): Timestamp ;
425+ static fromJSON(json : object ): Timestamp ;
419426 static fromMillis(milliseconds : number ): Timestamp ;
420427 isEqual(other : Timestamp ): boolean ;
421428 readonly nanoseconds: number ;
@@ -425,6 +432,7 @@ export class Timestamp {
425432 toJSON(): {
426433 seconds: number ;
427434 nanoseconds: number ;
435+ type: string ;
428436 };
429437 toMillis(): number ;
430438 toString(): string ;
@@ -466,8 +474,10 @@ export function vector(values?: number[]): VectorValue;
466474// @public
467475export class VectorValue {
468476 /* Excluded from this release type: __constructor */
477+ static fromJSON(json : object ): VectorValue ;
469478 isEqual(other : VectorValue ): boolean ;
470479 toArray(): number [];
480+ toJSON(): object ;
471481}
472482
473483// @public
0 commit comments