copyWithWrapped method

PaymentInitiationPaymentCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String>? recipientId,
  4. Wrapped<String>? reference,
  5. Wrapped<PaymentAmount>? amount,
  6. Wrapped<ExternalPaymentScheduleRequest?>? schedule,
  7. Wrapped<ExternalPaymentOptions?>? options,
})

Implementation

PaymentInitiationPaymentCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String>? recipientId,
    Wrapped<String>? reference,
    Wrapped<PaymentAmount>? amount,
    Wrapped<ExternalPaymentScheduleRequest?>? schedule,
    Wrapped<ExternalPaymentOptions?>? options}) {
  return PaymentInitiationPaymentCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      recipientId:
          (recipientId != null ? recipientId.value : this.recipientId),
      reference: (reference != null ? reference.value : this.reference),
      amount: (amount != null ? amount.value : this.amount),
      schedule: (schedule != null ? schedule.value : this.schedule),
      options: (options != null ? options.value : this.options));
}