create save / update / delete / create methods for models
Opened this issue · 1 comments
lukas-h commented
-
Model.update()
/Model.delete()
method, if selfRef exists. Implemented like this:Future<void> delete() => selfref.delete();
andFuture<void> update() => selfRef.updateData(toMap());
-
save/setData method
-
constructor
factory Model Model.get(DocumentReference selfRef) => ...
lukas-h commented
implementation:
-
extension on Model
-
new factory generator