copyWith method
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,
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,
);
}