copyWithWrapped method

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

Implementation

WebApiModulesBillingInvoiceCreditInvoiceRequest copyWithWrapped(
    {Wrapped<String?>? invoiceId,
    Wrapped<double?>? percent,
    Wrapped<double?>? amount,
    Wrapped<bool?>? allocate,
    Wrapped<double?>? usageDays,
    Wrapped<String?>? notes,
    Wrapped<bool?>? taxOnly,
    Wrapped<DateTime?>? creditFromDate,
    Wrapped<DateTime?>? creditToDate,
    Wrapped<String?>? creditMethod,
    Wrapped<bool?>? adjustCost}) {
  return WebApiModulesBillingInvoiceCreditInvoiceRequest(
      invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
      percent: (percent != null ? percent.value : this.percent),
      amount: (amount != null ? amount.value : this.amount),
      allocate: (allocate != null ? allocate.value : this.allocate),
      usageDays: (usageDays != null ? usageDays.value : this.usageDays),
      notes: (notes != null ? notes.value : this.notes),
      taxOnly: (taxOnly != null ? taxOnly.value : this.taxOnly),
      creditFromDate: (creditFromDate != null
          ? creditFromDate.value
          : this.creditFromDate),
      creditToDate:
          (creditToDate != null ? creditToDate.value : this.creditToDate),
      creditMethod:
          (creditMethod != null ? creditMethod.value : this.creditMethod),
      adjustCost: (adjustCost != null ? adjustCost.value : this.adjustCost));
}