copyWithWrapped method

WebApiLogicAppFuncConsignmentSettingsResponse copyWithWrapped({
  1. Wrapped<bool?>? enableConsignment,
  2. Wrapped<String?>? defaultConsignorFeeBasedOn,
  3. Wrapped<int?>? defaultConsignorPercent,
  4. Wrapped<int?>? defaultHousePercent,
  5. Wrapped<bool?>? defaultTreatConsignedQtyAsOwned,
})

Implementation

WebApiLogicAppFuncConsignmentSettingsResponse copyWithWrapped({
  Wrapped<bool?>? enableConsignment,
  Wrapped<String?>? defaultConsignorFeeBasedOn,
  Wrapped<int?>? defaultConsignorPercent,
  Wrapped<int?>? defaultHousePercent,
  Wrapped<bool?>? defaultTreatConsignedQtyAsOwned,
}) {
  return WebApiLogicAppFuncConsignmentSettingsResponse(
    enableConsignment: (enableConsignment != null
        ? enableConsignment.value
        : this.enableConsignment),
    defaultConsignorFeeBasedOn: (defaultConsignorFeeBasedOn != null
        ? defaultConsignorFeeBasedOn.value
        : this.defaultConsignorFeeBasedOn),
    defaultConsignorPercent: (defaultConsignorPercent != null
        ? defaultConsignorPercent.value
        : this.defaultConsignorPercent),
    defaultHousePercent: (defaultHousePercent != null
        ? defaultHousePercent.value
        : this.defaultHousePercent),
    defaultTreatConsignedQtyAsOwned: (defaultTreatConsignedQtyAsOwned != null
        ? defaultTreatConsignedQtyAsOwned.value
        : this.defaultTreatConsignedQtyAsOwned),
  );
}