copyWithWrapped method

WebApiModulesAgentOrderTotals copyWithWrapped({
  1. Wrapped<String?>? grossTotal,
  2. Wrapped<String?>? premiumTotal,
  3. Wrapped<String?>? discount,
  4. Wrapped<String?>? subTotal,
  5. Wrapped<String?>? tax,
  6. Wrapped<String?>? tax1,
  7. Wrapped<String?>? tax2,
  8. Wrapped<String?>? total,
})

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