saveModel<T extends BaseModel> abstract method
Saves the T
model
in database
. model
s that do not have an existing
id will have one automatically assigned to them. This function doesn't
care if there is an already existing model or not. Existing models will
just be overridden
Implementation
FutureOr<T> saveModel<T extends BaseModel>(String database, T model);