update method

Future update(
  1. T record
)

Implementation

Future update(T record) async {
  var map = toJson.call(record);
  map['entityId'] = record.entityId;
  await _collection.update(map);
}