copyWith method

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

Implementation

WebApiModulesBillingInvoiceCreditInvoiceRequest copyWith(
    {String? invoiceId,
    double? percent,
    double? amount,
    bool? allocate,
    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,
      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);
}