deleteModel<T extends BaseModel> method
Deletes the T
model
in database
. model
doesn not need to be
exactly the same, just have the same id.
Implementation
@override
bool deleteModel<T extends BaseModel>(String database, T model) {
if (model.id == null) {
return false;
}
return getMap(database).remove(model.id) != null;
}