copyWith method
WebApiModulesAgentOrderGetCustomRatesResponse
copyWith(
{ - int? status,
- bool? success,
- String? msg,
- bool? hasDiscount,
- bool? applyDiscountToCustomRate,
- WebApiModulesAgentOrderCustomRates? customRates,
- double? daysPerWeek,
- double? discountPercent,
- double? markupPercent,
- double? marginPercent,
})
Implementation
WebApiModulesAgentOrderGetCustomRatesResponse copyWith(
{int? status,
bool? success,
String? msg,
bool? hasDiscount,
bool? applyDiscountToCustomRate,
WebApiModulesAgentOrderCustomRates? customRates,
double? daysPerWeek,
double? discountPercent,
double? markupPercent,
double? marginPercent}) {
return WebApiModulesAgentOrderGetCustomRatesResponse(
status: status ?? this.status,
success: success ?? this.success,
msg: msg ?? this.msg,
hasDiscount: hasDiscount ?? this.hasDiscount,
applyDiscountToCustomRate:
applyDiscountToCustomRate ?? this.applyDiscountToCustomRate,
customRates: customRates ?? this.customRates,
daysPerWeek: daysPerWeek ?? this.daysPerWeek,
discountPercent: discountPercent ?? this.discountPercent,
markupPercent: markupPercent ?? this.markupPercent,
marginPercent: marginPercent ?? this.marginPercent);
}