copyWithWrapped method

Implementation

PaymentInitiationConsentCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String>? recipientId,
    Wrapped<String>? reference,
    Wrapped<List<enums.PaymentInitiationConsentScope>>? scopes,
    Wrapped<PaymentInitiationConsentConstraints>? constraints,
    Wrapped<ExternalPaymentInitiationConsentOptions?>? options}) {
  return PaymentInitiationConsentCreateRequest(
      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),
      scopes: (scopes != null ? scopes.value : this.scopes),
      constraints:
          (constraints != null ? constraints.value : this.constraints),
      options: (options != null ? options.value : this.options));
}