copyWithWrapped method

ExternalPaymentScheduleBase copyWithWrapped({
  1. Wrapped<PaymentScheduleInterval?>? interval,
  2. Wrapped<int?>? intervalExecutionDay,
  3. Wrapped<DateTime?>? startDate,
  4. Wrapped<DateTime?>? endDate,
  5. Wrapped<DateTime?>? adjustedStartDate,
})

Implementation

ExternalPaymentScheduleBase copyWithWrapped(
    {Wrapped<enums.PaymentScheduleInterval?>? interval,
    Wrapped<int?>? intervalExecutionDay,
    Wrapped<DateTime?>? startDate,
    Wrapped<DateTime?>? endDate,
    Wrapped<DateTime?>? adjustedStartDate}) {
  return ExternalPaymentScheduleBase(
      interval: (interval != null ? interval.value : this.interval),
      intervalExecutionDay: (intervalExecutionDay != null
          ? intervalExecutionDay.value
          : this.intervalExecutionDay),
      startDate: (startDate != null ? startDate.value : this.startDate),
      endDate: (endDate != null ? endDate.value : this.endDate),
      adjustedStartDate: (adjustedStartDate != null
          ? adjustedStartDate.value
          : this.adjustedStartDate));
}