fromSnapshot abstract method
Returns a T
(of DBModel) when a snapshot
is given.
Can return null if the snapshot
is in bad format.
If it is going to return a DBModel, DBModel.ref should always
be not null
.
Implementation
T fromSnapshot(
DocumentSnapshot<Map<String, dynamic>> snapshot,
SnapshotOptions? options,
);