syncModel method
Implementation
Future<void> syncModel(T model) async {
await model.loadRelations();
if (!(await model.validate())) {
await removeModel(model.getId());
return;
}
await _save(model);
}
Future<void> syncModel(T model) async {
await model.loadRelations();
if (!(await model.validate())) {
await removeModel(model.getId());
return;
}
await _save(model);
}