ReplaceOneModel constructor

ReplaceOneModel({
  1. BoolValue? upsert,
  2. List<int>? filter,
  3. List<int>? replacement,
  4. List<int>? hint,
})

Implementation

factory ReplaceOneModel({
  $9.BoolValue? upsert,
  $core.List<$core.int>? filter,
  $core.List<$core.int>? replacement,
  $core.List<$core.int>? hint,
}) {
  final _result = create();
  if (upsert != null) {
    _result.upsert = upsert;
  }
  if (filter != null) {
    _result.filter = filter;
  }
  if (replacement != null) {
    _result.replacement = replacement;
  }
  if (hint != null) {
    _result.hint = hint;
  }
  return _result;
}