fromFirestore method
Called by the Firestore SDK to convert Firestore data into an object of
type AppModelType
. You can access your data by calling:
snapshot.data()
.
Generally, the data returned from snapshot.data()
can be cast to
DbModelType
; however, this is not guaranteed because Firestore does not
enforce a schema on the database. For example, writes from a previous
version of the application or writes from another client that did not use
a type converter could have written data with different properties and/or
property types. The implementation will need to choose whether to
gracefully recover from non-conforming data or throw an error.
Implementation
external JSObject fromFirestore(QueryDocumentSnapshot snapshot);