copyWith method

WebApiModulesAgentOrderGetCustomRatesResponse copyWith({
  1. int? status,
  2. bool? success,
  3. String? msg,
  4. bool? hasDiscount,
  5. bool? applyDiscountToCustomRate,
  6. WebApiModulesAgentOrderCustomRates? customRates,
  7. double? daysPerWeek,
  8. double? discountPercent,
  9. double? markupPercent,
  10. 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,
  );
}