copyWith method

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

Implementation

PaymentInitiationConsentGetResponse copyWith(
    {String? requestId,
    String? consentId,
    enums.PaymentInitiationConsentStatus? status,
    DateTime? createdAt,
    String? recipientId,
    String? reference,
    PaymentInitiationConsentConstraints? constraints,
    List<enums.PaymentInitiationConsentScope>? scopes}) {
  return PaymentInitiationConsentGetResponse(
      requestId: requestId ?? this.requestId,
      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);
}