copyWithWrapped method

WebApiModulesWarehouseCheckOutIsValidShippingCaseResponse copyWithWrapped({
  1. Wrapped<String?>? shippingCaseItemId,
  2. Wrapped<String?>? iCode,
  3. Wrapped<String?>? description,
  4. Wrapped<String?>? shippingCaseDescription,
  5. Wrapped<String?>? shippingCaseNumber,
  6. Wrapped<int?>? shippingCaseId,
  7. Wrapped<int?>? status,
  8. Wrapped<String?>? message,
})

Implementation

WebApiModulesWarehouseCheckOutIsValidShippingCaseResponse copyWithWrapped({
  Wrapped<String?>? shippingCaseItemId,
  Wrapped<String?>? iCode,
  Wrapped<String?>? description,
  Wrapped<String?>? shippingCaseDescription,
  Wrapped<String?>? shippingCaseNumber,
  Wrapped<int?>? shippingCaseId,
  Wrapped<int?>? status,
  Wrapped<String?>? message,
}) {
  return WebApiModulesWarehouseCheckOutIsValidShippingCaseResponse(
    shippingCaseItemId: (shippingCaseItemId != null
        ? shippingCaseItemId.value
        : this.shippingCaseItemId),
    iCode: (iCode != null ? iCode.value : this.iCode),
    description: (description != null ? description.value : this.description),
    shippingCaseDescription: (shippingCaseDescription != null
        ? shippingCaseDescription.value
        : this.shippingCaseDescription),
    shippingCaseNumber: (shippingCaseNumber != null
        ? shippingCaseNumber.value
        : this.shippingCaseNumber),
    shippingCaseId: (shippingCaseId != null
        ? shippingCaseId.value
        : this.shippingCaseId),
    status: (status != null ? status.value : this.status),
    message: (message != null ? message.value : this.message),
  );
}