update method
Update the model in the database.
Implementation
Future<bool> update(Map<String, dynamic> attributes) async {
if (!exists) return false;
if (this is HasAttributes) {
(this as HasAttributes).fill(attributes);
}
return save();
}