Future delete(Map<String, dynamic> record) async { if (!record.containsKey(ID_KEY) || record[ID_KEY] == null) throw Exception("'entityId' must be not be 'null'"); await deleteById(record[ID_KEY] as int); }