copyWith method

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

Implementation

WebApiModulesAgentOrderTotals copyWith({
  String? grossTotal,
  String? premiumTotal,
  String? discount,
  String? subTotal,
  String? tax,
  String? tax1,
  String? tax2,
  String? total,
}) {
  return WebApiModulesAgentOrderTotals(
    grossTotal: grossTotal ?? this.grossTotal,
    premiumTotal: premiumTotal ?? this.premiumTotal,
    discount: discount ?? this.discount,
    subTotal: subTotal ?? this.subTotal,
    tax: tax ?? this.tax,
    tax1: tax1 ?? this.tax1,
    tax2: tax2 ?? this.tax2,
    total: total ?? this.total,
  );
}