createToDB method
Implementation
Future<void> createToDB(AbsExModel model) async {
try {
//await HycopFactory.dataBase!.createData(collectionId, model.mid, model.toMap());
await HycopFactory.dataBase!.createModel(collectionId, model);
} catch (e) {
logger.severe('databaseError', e);
throw HycopException(message: 'databaseError', exception: e as Exception);
}
}