copyWithWrapped method
PaymentInitiationConsentGetResponse
copyWithWrapped({
- Wrapped<
String> ? requestId, - Wrapped<
String> ? consentId, - Wrapped<
PaymentInitiationConsentStatus> ? status, - Wrapped<
DateTime> ? createdAt, - Wrapped<
String> ? recipientId, - Wrapped<
String> ? reference, - Wrapped<
PaymentInitiationConsentConstraints> ? constraints, - Wrapped<
List< ? scopes,PaymentInitiationConsentScope> >
Implementation
PaymentInitiationConsentGetResponse copyWithWrapped(
{Wrapped<String>? requestId,
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 PaymentInitiationConsentGetResponse(
requestId: (requestId != null ? requestId.value : this.requestId),
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));
}