copyWithWrapped method
Implementation
WebApiModulesAgentOrderTotals copyWithWrapped({
Wrapped<String?>? grossTotal,
Wrapped<String?>? premiumTotal,
Wrapped<String?>? discount,
Wrapped<String?>? subTotal,
Wrapped<String?>? tax,
Wrapped<String?>? tax1,
Wrapped<String?>? tax2,
Wrapped<String?>? total,
}) {
return WebApiModulesAgentOrderTotals(
grossTotal: (grossTotal != null ? grossTotal.value : this.grossTotal),
premiumTotal: (premiumTotal != null
? premiumTotal.value
: this.premiumTotal),
discount: (discount != null ? discount.value : this.discount),
subTotal: (subTotal != null ? subTotal.value : this.subTotal),
tax: (tax != null ? tax.value : this.tax),
tax1: (tax1 != null ? tax1.value : this.tax1),
tax2: (tax2 != null ? tax2.value : this.tax2),
total: (total != null ? total.value : this.total),
);
}