BulkWriteRequest constructor

BulkWriteRequest({
  1. List<int>? collectionOid,
  2. RequestContext? context,
  3. Iterable<WriteModel>? writeModels,
  4. BulkWriteOptions? options,
})

Implementation

factory BulkWriteRequest({
  $core.List<$core.int>? collectionOid,
  $24.RequestContext? context,
  $core.Iterable<WriteModel>? writeModels,
  BulkWriteOptions? options,
}) {
  final _result = create();
  if (collectionOid != null) {
    _result.collectionOid = collectionOid;
  }
  if (context != null) {
    _result.context = context;
  }
  if (writeModels != null) {
    _result.writeModels.addAll(writeModels);
  }
  if (options != null) {
    _result.options = options;
  }
  return _result;
}