UpdateResult constructor

UpdateResult({
  1. Int64? matchedCount,
  2. Int64? modifiedCount,
  3. Int64? upsertedCount,
  4. List<int>? upsertedId,
})

Implementation

factory UpdateResult({
  $fixnum.Int64? matchedCount,
  $fixnum.Int64? modifiedCount,
  $fixnum.Int64? upsertedCount,
  $core.List<$core.int>? upsertedId,
}) {
  final _result = create();
  if (matchedCount != null) {
    _result.matchedCount = matchedCount;
  }
  if (modifiedCount != null) {
    _result.modifiedCount = modifiedCount;
  }
  if (upsertedCount != null) {
    _result.upsertedCount = upsertedCount;
  }
  if (upsertedId != null) {
    _result.upsertedId = upsertedId;
  }
  return _result;
}