copyWith method
TransferEvent
copyWith({
- int? eventId,
- DateTime? timestamp,
- TransferEventType? eventType,
- String? accountId,
- String? transferId,
- String? originationAccountId,
- TransferType? transferType,
- String? transferAmount,
- TransferFailure? failureReason,
- String? sweepId,
- String? sweepAmount,
- String? refundId,
- String? originatorClientId,
Implementation
TransferEvent copyWith(
{int? eventId,
DateTime? timestamp,
enums.TransferEventType? eventType,
String? accountId,
String? transferId,
String? originationAccountId,
enums.TransferType? transferType,
String? transferAmount,
TransferFailure? failureReason,
String? sweepId,
String? sweepAmount,
String? refundId,
String? originatorClientId}) {
return TransferEvent(
eventId: eventId ?? this.eventId,
timestamp: timestamp ?? this.timestamp,
eventType: eventType ?? this.eventType,
accountId: accountId ?? this.accountId,
transferId: transferId ?? this.transferId,
originationAccountId: originationAccountId ?? this.originationAccountId,
transferType: transferType ?? this.transferType,
transferAmount: transferAmount ?? this.transferAmount,
failureReason: failureReason ?? this.failureReason,
sweepId: sweepId ?? this.sweepId,
sweepAmount: sweepAmount ?? this.sweepAmount,
refundId: refundId ?? this.refundId,
originatorClientId: originatorClientId ?? this.originatorClientId);
}