copyWith method

WebApiModulesBillingInvoiceCreditInvoiceRequest copyWith({
  1. String? invoiceId,
  2. double? percent,
  3. double? amount,
  4. bool? allocate,
  5. String? allocateRectype,
  6. double? usageDays,
  7. String? notes,
  8. bool? taxOnly,
  9. DateTime? creditFromDate,
  10. DateTime? creditToDate,
  11. String? creditMethod,
  12. bool? adjustCost,
})

Implementation

WebApiModulesBillingInvoiceCreditInvoiceRequest copyWith({
  String? invoiceId,
  double? percent,
  double? amount,
  bool? allocate,
  String? allocateRectype,
  double? usageDays,
  String? notes,
  bool? taxOnly,
  DateTime? creditFromDate,
  DateTime? creditToDate,
  String? creditMethod,
  bool? adjustCost,
}) {
  return WebApiModulesBillingInvoiceCreditInvoiceRequest(
    invoiceId: invoiceId ?? this.invoiceId,
    percent: percent ?? this.percent,
    amount: amount ?? this.amount,
    allocate: allocate ?? this.allocate,
    allocateRectype: allocateRectype ?? this.allocateRectype,
    usageDays: usageDays ?? this.usageDays,
    notes: notes ?? this.notes,
    taxOnly: taxOnly ?? this.taxOnly,
    creditFromDate: creditFromDate ?? this.creditFromDate,
    creditToDate: creditToDate ?? this.creditToDate,
    creditMethod: creditMethod ?? this.creditMethod,
    adjustCost: adjustCost ?? this.adjustCost,
  );
}