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