copyWithWrapped method

WebApiModulesAgentPurchaseOrderCopyPurchaseOrderRequest copyWithWrapped({
  1. Wrapped<String?>? purchaseOrderId,
  2. Wrapped<String?>? locationId,
  3. Wrapped<String?>? warehouseId,
  4. Wrapped<String?>? description,
})

Implementation

WebApiModulesAgentPurchaseOrderCopyPurchaseOrderRequest copyWithWrapped({
  Wrapped<String?>? purchaseOrderId,
  Wrapped<String?>? locationId,
  Wrapped<String?>? warehouseId,
  Wrapped<String?>? description,
}) {
  return WebApiModulesAgentPurchaseOrderCopyPurchaseOrderRequest(
    purchaseOrderId: (purchaseOrderId != null
        ? purchaseOrderId.value
        : this.purchaseOrderId),
    locationId: (locationId != null ? locationId.value : this.locationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    description: (description != null ? description.value : this.description),
  );
}