copyWithWrapped method

WebApiModulesWarehouseCheckOutIsValidStorageContainerResponse copyWithWrapped({
  1. Wrapped<String?>? barcode,
  2. Wrapped<String?>? warehouseId,
  3. Wrapped<int?>? storageContainerItemId,
  4. Wrapped<int?>? status,
  5. Wrapped<String?>? message,
  6. Wrapped<String?>? description,
  7. Wrapped<String?>? pickupLocationDescription,
  8. Wrapped<String?>? pickupLocationId,
})

Implementation

WebApiModulesWarehouseCheckOutIsValidStorageContainerResponse copyWithWrapped(
    {Wrapped<String?>? barcode,
    Wrapped<String?>? warehouseId,
    Wrapped<int?>? storageContainerItemId,
    Wrapped<int?>? status,
    Wrapped<String?>? message,
    Wrapped<String?>? description,
    Wrapped<String?>? pickupLocationDescription,
    Wrapped<String?>? pickupLocationId}) {
  return WebApiModulesWarehouseCheckOutIsValidStorageContainerResponse(
      barcode: (barcode != null ? barcode.value : this.barcode),
      warehouseId:
          (warehouseId != null ? warehouseId.value : this.warehouseId),
      storageContainerItemId: (storageContainerItemId != null
          ? storageContainerItemId.value
          : this.storageContainerItemId),
      status: (status != null ? status.value : this.status),
      message: (message != null ? message.value : this.message),
      description:
          (description != null ? description.value : this.description),
      pickupLocationDescription: (pickupLocationDescription != null
          ? pickupLocationDescription.value
          : this.pickupLocationDescription),
      pickupLocationId: (pickupLocationId != null
          ? pickupLocationId.value
          : this.pickupLocationId));
}