copyWithWrapped method
WebApiModulesAgentOrderGetCustomRatesResponse
copyWithWrapped({
- Wrapped<
int?> ? status, - Wrapped<
bool?> ? success, - Wrapped<
String?> ? msg, - Wrapped<
bool?> ? hasDiscount, - Wrapped<
bool?> ? applyDiscountToCustomRate, - Wrapped<
WebApiModulesAgentOrderCustomRates?> ? customRates, - Wrapped<
double?> ? daysPerWeek, - Wrapped<
double?> ? discountPercent, - Wrapped<
double?> ? markupPercent, - Wrapped<
double?> ? marginPercent,
Implementation
WebApiModulesAgentOrderGetCustomRatesResponse copyWithWrapped(
{Wrapped<int?>? status,
Wrapped<bool?>? success,
Wrapped<String?>? msg,
Wrapped<bool?>? hasDiscount,
Wrapped<bool?>? applyDiscountToCustomRate,
Wrapped<WebApiModulesAgentOrderCustomRates?>? customRates,
Wrapped<double?>? daysPerWeek,
Wrapped<double?>? discountPercent,
Wrapped<double?>? markupPercent,
Wrapped<double?>? marginPercent}) {
return WebApiModulesAgentOrderGetCustomRatesResponse(
status: (status != null ? status.value : this.status),
success: (success != null ? success.value : this.success),
msg: (msg != null ? msg.value : this.msg),
hasDiscount:
(hasDiscount != null ? hasDiscount.value : this.hasDiscount),
applyDiscountToCustomRate: (applyDiscountToCustomRate != null
? applyDiscountToCustomRate.value
: this.applyDiscountToCustomRate),
customRates:
(customRates != null ? customRates.value : this.customRates),
daysPerWeek:
(daysPerWeek != null ? daysPerWeek.value : this.daysPerWeek),
discountPercent: (discountPercent != null
? discountPercent.value
: this.discountPercent),
markupPercent:
(markupPercent != null ? markupPercent.value : this.markupPercent),
marginPercent:
(marginPercent != null ? marginPercent.value : this.marginPercent));
}