copyWithWrapped method

PaymentInitiationPaymentListResponse copyWithWrapped({
  1. Wrapped<List<PaymentInitiationPayment>>? payments,
  2. Wrapped<DateTime?>? nextCursor,
  3. Wrapped<String>? requestId,
})

Implementation

PaymentInitiationPaymentListResponse copyWithWrapped(
    {Wrapped<List<PaymentInitiationPayment>>? payments,
    Wrapped<DateTime?>? nextCursor,
    Wrapped<String>? requestId}) {
  return PaymentInitiationPaymentListResponse(
      payments: (payments != null ? payments.value : this.payments),
      nextCursor: (nextCursor != null ? nextCursor.value : this.nextCursor),
      requestId: (requestId != null ? requestId.value : this.requestId));
}