copyWith method
PaymentInitiationConsent
copyWith({
- String? consentId,
- PaymentInitiationConsentStatus? status,
- DateTime? createdAt,
- String? recipientId,
- String? reference,
- PaymentInitiationConsentConstraints? constraints,
- 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);
}