copyWithWrapped method
TransferEvent
copyWithWrapped({
- Wrapped<
int> ? eventId, - Wrapped<
DateTime> ? timestamp, - Wrapped<
TransferEventType> ? eventType, - Wrapped<
String> ? accountId, - Wrapped<
String> ? transferId, - Wrapped<
String?> ? originationAccountId, - Wrapped<
TransferType> ? transferType, - Wrapped<
String> ? transferAmount, - Wrapped<
TransferFailure?> ? failureReason, - Wrapped<
String?> ? sweepId, - Wrapped<
String?> ? sweepAmount, - Wrapped<
String?> ? refundId, - Wrapped<
String?> ? originatorClientId,
Implementation
TransferEvent copyWithWrapped(
{Wrapped<int>? eventId,
Wrapped<DateTime>? timestamp,
Wrapped<enums.TransferEventType>? eventType,
Wrapped<String>? accountId,
Wrapped<String>? transferId,
Wrapped<String?>? originationAccountId,
Wrapped<enums.TransferType>? transferType,
Wrapped<String>? transferAmount,
Wrapped<TransferFailure?>? failureReason,
Wrapped<String?>? sweepId,
Wrapped<String?>? sweepAmount,
Wrapped<String?>? refundId,
Wrapped<String?>? originatorClientId}) {
return TransferEvent(
eventId: (eventId != null ? eventId.value : this.eventId),
timestamp: (timestamp != null ? timestamp.value : this.timestamp),
eventType: (eventType != null ? eventType.value : this.eventType),
accountId: (accountId != null ? accountId.value : this.accountId),
transferId: (transferId != null ? transferId.value : this.transferId),
originationAccountId: (originationAccountId != null
? originationAccountId.value
: this.originationAccountId),
transferType:
(transferType != null ? transferType.value : this.transferType),
transferAmount: (transferAmount != null
? transferAmount.value
: this.transferAmount),
failureReason:
(failureReason != null ? failureReason.value : this.failureReason),
sweepId: (sweepId != null ? sweepId.value : this.sweepId),
sweepAmount:
(sweepAmount != null ? sweepAmount.value : this.sweepAmount),
refundId: (refundId != null ? refundId.value : this.refundId),
originatorClientId: (originatorClientId != null
? originatorClientId.value
: this.originatorClientId));
}