copyWithWrapped method

WebApiModulesAgentOrderLaborTotalsResponse copyWithWrapped({
  1. Wrapped<WebApiModulesAgentOrderTotals?>? weeklyTotals,
  2. Wrapped<WebApiModulesAgentOrderTotals?>? averageWeeklyTotals,
  3. Wrapped<WebApiModulesAgentOrderTotals?>? monthlyTotals,
  4. Wrapped<WebApiModulesAgentOrderTotals?>? periodTotals,
  5. Wrapped<String?>? operatingRevenue,
  6. Wrapped<String?>? costExtended,
  7. Wrapped<String?>? grossProfit,
  8. Wrapped<String?>? marginPercent,
  9. Wrapped<String?>? operatingRevenuePercent,
})

Implementation

WebApiModulesAgentOrderLaborTotalsResponse copyWithWrapped({
  Wrapped<WebApiModulesAgentOrderTotals?>? weeklyTotals,
  Wrapped<WebApiModulesAgentOrderTotals?>? averageWeeklyTotals,
  Wrapped<WebApiModulesAgentOrderTotals?>? monthlyTotals,
  Wrapped<WebApiModulesAgentOrderTotals?>? periodTotals,
  Wrapped<String?>? operatingRevenue,
  Wrapped<String?>? costExtended,
  Wrapped<String?>? grossProfit,
  Wrapped<String?>? marginPercent,
  Wrapped<String?>? operatingRevenuePercent,
}) {
  return WebApiModulesAgentOrderLaborTotalsResponse(
    weeklyTotals: (weeklyTotals != null
        ? weeklyTotals.value
        : this.weeklyTotals),
    averageWeeklyTotals: (averageWeeklyTotals != null
        ? averageWeeklyTotals.value
        : this.averageWeeklyTotals),
    monthlyTotals: (monthlyTotals != null
        ? monthlyTotals.value
        : this.monthlyTotals),
    periodTotals: (periodTotals != null
        ? periodTotals.value
        : this.periodTotals),
    operatingRevenue: (operatingRevenue != null
        ? operatingRevenue.value
        : this.operatingRevenue),
    costExtended: (costExtended != null
        ? costExtended.value
        : this.costExtended),
    grossProfit: (grossProfit != null ? grossProfit.value : this.grossProfit),
    marginPercent: (marginPercent != null
        ? marginPercent.value
        : this.marginPercent),
    operatingRevenuePercent: (operatingRevenuePercent != null
        ? operatingRevenuePercent.value
        : this.operatingRevenuePercent),
  );
}