DeliveryQuery constructor

DeliveryQuery({
  1. ContinuationToken? continuation,
  2. AccountId? accountId,
  3. Iterable<Delivery_DeliveryStatus>? status,
  4. Timestamp? deliveryAfter,
  5. Timestamp? deliveryBefore,
  6. DeliveryId? deliveryId,
  7. DeliveryBatchId? batchId,
  8. bool? excludeBatchedDeliveries,
  9. bool? oldestFirst,
  10. StringValue? reference,
  11. ContainerId? location,
  12. Delivery_DeliveryType? type,
  13. SKU? sKU,
  14. DeliveryQuery_LocationQueryType? locationContains,
  15. StringValue? trackAndTraceId,
  16. StringValue? name,
  17. StringValue? email,
  18. PhoneNumber? phoneNumber,
})

Implementation

factory DeliveryQuery({
  $0.ContinuationToken? continuation,
  $1.AccountId? accountId,
  $core.Iterable<Delivery_DeliveryStatus>? status,
  $2.Timestamp? deliveryAfter,
  $2.Timestamp? deliveryBefore,
  $1.DeliveryId? deliveryId,
  $1.DeliveryBatchId? batchId,
  $core.bool? excludeBatchedDeliveries,
  $core.bool? oldestFirst,
  $3.StringValue? reference,
  $1.ContainerId? location,
  Delivery_DeliveryType? type,
  $1.SKU? sKU,
  DeliveryQuery_LocationQueryType? locationContains,
  $3.StringValue? trackAndTraceId,
  $3.StringValue? name,
  $3.StringValue? email,
  $0.PhoneNumber? phoneNumber,
}) {
  final result = create();
  if (continuation != null) result.continuation = continuation;
  if (accountId != null) result.accountId = accountId;
  if (status != null) result.status.addAll(status);
  if (deliveryAfter != null) result.deliveryAfter = deliveryAfter;
  if (deliveryBefore != null) result.deliveryBefore = deliveryBefore;
  if (deliveryId != null) result.deliveryId = deliveryId;
  if (batchId != null) result.batchId = batchId;
  if (excludeBatchedDeliveries != null)
    result.excludeBatchedDeliveries = excludeBatchedDeliveries;
  if (oldestFirst != null) result.oldestFirst = oldestFirst;
  if (reference != null) result.reference = reference;
  if (location != null) result.location = location;
  if (type != null) result.type = type;
  if (sKU != null) result.sKU = sKU;
  if (locationContains != null) result.locationContains = locationContains;
  if (trackAndTraceId != null) result.trackAndTraceId = trackAndTraceId;
  if (name != null) result.name = name;
  if (email != null) result.email = email;
  if (phoneNumber != null) result.phoneNumber = phoneNumber;
  return result;
}