copyWith method

PaymentInitiationConsent copyWith({
  1. String? consentId,
  2. PaymentInitiationConsentStatus? status,
  3. DateTime? createdAt,
  4. String? recipientId,
  5. String? reference,
  6. PaymentInitiationConsentConstraints? constraints,
  7. List<PaymentInitiationConsentScope>? scopes,
})

Implementation

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