copyWithWrapped method

Deductions copyWithWrapped({
  1. Wrapped<List<Total>?>? subtotals,
  2. Wrapped<List<DeductionsBreakdown>>? breakdown,
  3. Wrapped<List<Total>?>? totals,
  4. Wrapped<DeductionsTotal>? total,
})

Implementation

Deductions copyWithWrapped(
    {Wrapped<List<Total>?>? subtotals,
    Wrapped<List<DeductionsBreakdown>>? breakdown,
    Wrapped<List<Total>?>? totals,
    Wrapped<DeductionsTotal>? total}) {
  return Deductions(
      subtotals: (subtotals != null ? subtotals.value : this.subtotals),
      breakdown: (breakdown != null ? breakdown.value : this.breakdown),
      totals: (totals != null ? totals.value : this.totals),
      total: (total != null ? total.value : this.total));
}