copyWithWrapped method

WebApiModulesAgentOrderChangeOrderOfficeLocationRequest copyWithWrapped({
  1. Wrapped<String?>? officeLocationId,
  2. Wrapped<String?>? warehouseId,
  3. Wrapped<String?>? currencyId,
  4. Wrapped<String?>? confirmUpdateAllRatesToNewCurrency,
})

Implementation

WebApiModulesAgentOrderChangeOrderOfficeLocationRequest copyWithWrapped({
  Wrapped<String?>? officeLocationId,
  Wrapped<String?>? warehouseId,
  Wrapped<String?>? currencyId,
  Wrapped<String?>? confirmUpdateAllRatesToNewCurrency,
}) {
  return WebApiModulesAgentOrderChangeOrderOfficeLocationRequest(
    officeLocationId: (officeLocationId != null
        ? officeLocationId.value
        : this.officeLocationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    currencyId: (currencyId != null ? currencyId.value : this.currencyId),
    confirmUpdateAllRatesToNewCurrency:
        (confirmUpdateAllRatesToNewCurrency != null
        ? confirmUpdateAllRatesToNewCurrency.value
        : this.confirmUpdateAllRatesToNewCurrency),
  );
}