DeliveryBatch constructor

DeliveryBatch({
  1. RowVersion? rowVersion,
  2. DeliveryBatchId? id,
  3. Iterable<DeliveryBatchEntryId>? deliveries,
  4. UserId? assignedTo,
  5. Timestamp? created,
  6. Delivery_DeliveryStatus? status,
  7. ContainerId? location,
})

Implementation

factory DeliveryBatch({
  $0.RowVersion? rowVersion,
  $1.DeliveryBatchId? id,
  $core.Iterable<DeliveryBatchEntryId>? deliveries,
  $1.UserId? assignedTo,
  $2.Timestamp? created,
  Delivery_DeliveryStatus? status,
  $1.ContainerId? location,
}) {
  final result = create();
  if (rowVersion != null) result.rowVersion = rowVersion;
  if (id != null) result.id = id;
  if (deliveries != null) result.deliveries.addAll(deliveries);
  if (assignedTo != null) result.assignedTo = assignedTo;
  if (created != null) result.created = created;
  if (status != null) result.status = status;
  if (location != null) result.location = location;
  return result;
}