copyWithWrapped method

WebApiModulesBillingBillingCreateInvoiceRequest copyWithWrapped({
  1. Wrapped<String?>? orderId,
  2. Wrapped<DateTime?>? periodStart,
  3. Wrapped<DateTime?>? periodEnd,
  4. Wrapped<String?>? billPeriodEvent,
  5. Wrapped<bool?>? includeNotYetOut,
  6. Wrapped<bool?>? forceDates,
})

Implementation

WebApiModulesBillingBillingCreateInvoiceRequest copyWithWrapped({
  Wrapped<String?>? orderId,
  Wrapped<DateTime?>? periodStart,
  Wrapped<DateTime?>? periodEnd,
  Wrapped<String?>? billPeriodEvent,
  Wrapped<bool?>? includeNotYetOut,
  Wrapped<bool?>? forceDates,
}) {
  return WebApiModulesBillingBillingCreateInvoiceRequest(
    orderId: (orderId != null ? orderId.value : this.orderId),
    periodStart: (periodStart != null ? periodStart.value : this.periodStart),
    periodEnd: (periodEnd != null ? periodEnd.value : this.periodEnd),
    billPeriodEvent: (billPeriodEvent != null
        ? billPeriodEvent.value
        : this.billPeriodEvent),
    includeNotYetOut: (includeNotYetOut != null
        ? includeNotYetOut.value
        : this.includeNotYetOut),
    forceDates: (forceDates != null ? forceDates.value : this.forceDates),
  );
}