copyWithWrapped method

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

Implementation

WebApiModulesBillingInvoiceCreditInvoiceRequest copyWithWrapped({
  Wrapped<String?>? invoiceId,
  Wrapped<double?>? percent,
  Wrapped<double?>? amount,
  Wrapped<bool?>? allocate,
  Wrapped<String?>? allocateRectype,
  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),
    allocateRectype: (allocateRectype != null
        ? allocateRectype.value
        : this.allocateRectype),
    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),
  );
}