DeliveryBatch constructor
DeliveryBatch({
- RowVersion? rowVersion,
- DeliveryBatchId? id,
- Iterable<
DeliveryBatchEntryId> ? deliveries, - UserId? assignedTo,
- Timestamp? created,
- Delivery_DeliveryStatus? status,
- 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;
}