copyWith method

WebApiModulesAgentOrderChangeOrderOfficeLocationRequest copyWith({
  1. String? officeLocationId,
  2. String? warehouseId,
  3. String? currencyId,
  4. String? confirmUpdateAllRatesToNewCurrency,
})

Implementation

WebApiModulesAgentOrderChangeOrderOfficeLocationRequest copyWith({
  String? officeLocationId,
  String? warehouseId,
  String? currencyId,
  String? confirmUpdateAllRatesToNewCurrency,
}) {
  return WebApiModulesAgentOrderChangeOrderOfficeLocationRequest(
    officeLocationId: officeLocationId ?? this.officeLocationId,
    warehouseId: warehouseId ?? this.warehouseId,
    currencyId: currencyId ?? this.currencyId,
    confirmUpdateAllRatesToNewCurrency:
        confirmUpdateAllRatesToNewCurrency ??
        this.confirmUpdateAllRatesToNewCurrency,
  );
}