copyWith method

WebApiModulesAgentOrderItemOrderItemExtended copyWith({
  1. String? rateType,
  2. String? recType,
  3. String? itemClass,
  4. String? orderType,
  5. bool? isSub,
  6. String? unitType,
  7. DateTime? fromDate,
  8. DateTime? toDate,
  9. DateTime? billingFromDate,
  10. DateTime? billingToDate,
  11. double? quantity,
  12. double? unitCost,
  13. double? replacementCost,
  14. double? replacementCostExtended,
  15. double? rate,
  16. double? rate2,
  17. double? rate3,
  18. double? rate4,
  19. double? rate5,
  20. double? daysPerWeek,
  21. double? discountPercent,
  22. double? hours,
  23. double? hoursOvertime,
  24. double? hoursDoubletime,
  25. int? days,
  26. int? weeks,
  27. int? months,
  28. double? billablePeriods,
  29. double? costExtended,
  30. double? unitDiscountAmount,
  31. double? unitExtended,
  32. double? weeklyDiscountAmount,
  33. double? weeklyExtended,
  34. double? averageWeekly,
  35. double? averageWeeklyDiscountAmount,
  36. double? averageWeeklyExtended,
  37. double? monthlyDiscountAmount,
  38. double? monthlyExtended,
  39. double? periodDiscountAmount,
  40. double? periodExtended,
  41. int? tier1Weeks,
  42. int? tier2Weeks,
  43. int? tier3Weeks,
  44. int? tier4Weeks,
  45. int? tier5Weeks,
  46. bool? isRecurringRateType,
})

Implementation

WebApiModulesAgentOrderItemOrderItemExtended copyWith({
  String? rateType,
  String? recType,
  String? itemClass,
  String? orderType,
  bool? isSub,
  String? unitType,
  DateTime? fromDate,
  DateTime? toDate,
  DateTime? billingFromDate,
  DateTime? billingToDate,
  double? quantity,
  double? unitCost,
  double? replacementCost,
  double? replacementCostExtended,
  double? rate,
  double? rate2,
  double? rate3,
  double? rate4,
  double? rate5,
  double? daysPerWeek,
  double? discountPercent,
  double? hours,
  double? hoursOvertime,
  double? hoursDoubletime,
  int? days,
  int? weeks,
  int? months,
  double? billablePeriods,
  double? costExtended,
  double? unitDiscountAmount,
  double? unitExtended,
  double? weeklyDiscountAmount,
  double? weeklyExtended,
  double? averageWeekly,
  double? averageWeeklyDiscountAmount,
  double? averageWeeklyExtended,
  double? monthlyDiscountAmount,
  double? monthlyExtended,
  double? periodDiscountAmount,
  double? periodExtended,
  int? tier1Weeks,
  int? tier2Weeks,
  int? tier3Weeks,
  int? tier4Weeks,
  int? tier5Weeks,
  bool? isRecurringRateType,
}) {
  return WebApiModulesAgentOrderItemOrderItemExtended(
    rateType: rateType ?? this.rateType,
    recType: recType ?? this.recType,
    itemClass: itemClass ?? this.itemClass,
    orderType: orderType ?? this.orderType,
    isSub: isSub ?? this.isSub,
    unitType: unitType ?? this.unitType,
    fromDate: fromDate ?? this.fromDate,
    toDate: toDate ?? this.toDate,
    billingFromDate: billingFromDate ?? this.billingFromDate,
    billingToDate: billingToDate ?? this.billingToDate,
    quantity: quantity ?? this.quantity,
    unitCost: unitCost ?? this.unitCost,
    replacementCost: replacementCost ?? this.replacementCost,
    replacementCostExtended:
        replacementCostExtended ?? this.replacementCostExtended,
    rate: rate ?? this.rate,
    rate2: rate2 ?? this.rate2,
    rate3: rate3 ?? this.rate3,
    rate4: rate4 ?? this.rate4,
    rate5: rate5 ?? this.rate5,
    daysPerWeek: daysPerWeek ?? this.daysPerWeek,
    discountPercent: discountPercent ?? this.discountPercent,
    hours: hours ?? this.hours,
    hoursOvertime: hoursOvertime ?? this.hoursOvertime,
    hoursDoubletime: hoursDoubletime ?? this.hoursDoubletime,
    days: days ?? this.days,
    weeks: weeks ?? this.weeks,
    months: months ?? this.months,
    billablePeriods: billablePeriods ?? this.billablePeriods,
    costExtended: costExtended ?? this.costExtended,
    unitDiscountAmount: unitDiscountAmount ?? this.unitDiscountAmount,
    unitExtended: unitExtended ?? this.unitExtended,
    weeklyDiscountAmount: weeklyDiscountAmount ?? this.weeklyDiscountAmount,
    weeklyExtended: weeklyExtended ?? this.weeklyExtended,
    averageWeekly: averageWeekly ?? this.averageWeekly,
    averageWeeklyDiscountAmount:
        averageWeeklyDiscountAmount ?? this.averageWeeklyDiscountAmount,
    averageWeeklyExtended:
        averageWeeklyExtended ?? this.averageWeeklyExtended,
    monthlyDiscountAmount:
        monthlyDiscountAmount ?? this.monthlyDiscountAmount,
    monthlyExtended: monthlyExtended ?? this.monthlyExtended,
    periodDiscountAmount: periodDiscountAmount ?? this.periodDiscountAmount,
    periodExtended: periodExtended ?? this.periodExtended,
    tier1Weeks: tier1Weeks ?? this.tier1Weeks,
    tier2Weeks: tier2Weeks ?? this.tier2Weeks,
    tier3Weeks: tier3Weeks ?? this.tier3Weeks,
    tier4Weeks: tier4Weeks ?? this.tier4Weeks,
    tier5Weeks: tier5Weeks ?? this.tier5Weeks,
    isRecurringRateType: isRecurringRateType ?? this.isRecurringRateType,
  );
}