copyWithWrapped method

Implementation

PaymentInitiationConsent copyWithWrapped(
    {Wrapped<String>? consentId,
    Wrapped<enums.PaymentInitiationConsentStatus>? status,
    Wrapped<DateTime>? createdAt,
    Wrapped<String>? recipientId,
    Wrapped<String>? reference,
    Wrapped<PaymentInitiationConsentConstraints>? constraints,
    Wrapped<List<enums.PaymentInitiationConsentScope>>? scopes}) {
  return PaymentInitiationConsent(
      consentId: (consentId != null ? consentId.value : this.consentId),
      status: (status != null ? status.value : this.status),
      createdAt: (createdAt != null ? createdAt.value : this.createdAt),
      recipientId:
          (recipientId != null ? recipientId.value : this.recipientId),
      reference: (reference != null ? reference.value : this.reference),
      constraints:
          (constraints != null ? constraints.value : this.constraints),
      scopes: (scopes != null ? scopes.value : this.scopes));
}