copyWith method

TransferEvent copyWith({
  1. int? eventId,
  2. DateTime? timestamp,
  3. TransferEventType? eventType,
  4. String? accountId,
  5. String? transferId,
  6. String? originationAccountId,
  7. TransferType? transferType,
  8. String? transferAmount,
  9. TransferFailure? failureReason,
  10. String? sweepId,
  11. String? sweepAmount,
  12. String? refundId,
  13. 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);
}