insert method

Future insert(
  1. T record
)

Implementation

Future insert(T record) async {
  await _collection.insert(toJson.call(record));
}