SetPayloadPoints constructor

SetPayloadPoints({
  1. String? collectionName,
  2. bool? wait,
  3. Iterable<MapEntry<String, Value>>? payload,
  4. PointsSelector? pointsSelector,
  5. WriteOrdering? ordering,
  6. ShardKeySelector? shardKeySelector,
  7. String? key,
})

Implementation

factory SetPayloadPoints({
  $core.String? collectionName,
  $core.bool? wait,
  $core.Iterable<$core.MapEntry<$core.String, $11.Value>>? payload,
  PointsSelector? pointsSelector,
  WriteOrdering? ordering,
  ShardKeySelector? shardKeySelector,
  $core.String? key,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (wait != null) {
    $result.wait = wait;
  }
  if (payload != null) {
    $result.payload.addEntries(payload);
  }
  if (pointsSelector != null) {
    $result.pointsSelector = pointsSelector;
  }
  if (ordering != null) {
    $result.ordering = ordering;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  if (key != null) {
    $result.key = key;
  }
  return $result;
}