insert method

Future<void> insert(
  1. T dataModel
)

Implementation

Future<void> insert(T dataModel) async {
  Map<String, dynamic> data = dataModel.toMap();
  await _harnCollection.insert(parseInsertData(data));
  harnLog.register({"insert": parseInsertData(data)});
}