copyWith method

BankTransferEvent copyWith({
  1. int? eventId,
  2. DateTime? timestamp,
  3. BankTransferEventType? eventType,
  4. String? accountId,
  5. String? bankTransferId,
  6. String? originationAccountId,
  7. BankTransferType? bankTransferType,
  8. String? bankTransferAmount,
  9. String? bankTransferIsoCurrencyCode,
  10. BankTransferFailure? failureReason,
  11. BankTransferDirection? direction,
})

Implementation

BankTransferEvent copyWith(
    {int? eventId,
    DateTime? timestamp,
    enums.BankTransferEventType? eventType,
    String? accountId,
    String? bankTransferId,
    String? originationAccountId,
    enums.BankTransferType? bankTransferType,
    String? bankTransferAmount,
    String? bankTransferIsoCurrencyCode,
    BankTransferFailure? failureReason,
    enums.BankTransferDirection? direction}) {
  return BankTransferEvent(
      eventId: eventId ?? this.eventId,
      timestamp: timestamp ?? this.timestamp,
      eventType: eventType ?? this.eventType,
      accountId: accountId ?? this.accountId,
      bankTransferId: bankTransferId ?? this.bankTransferId,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      bankTransferType: bankTransferType ?? this.bankTransferType,
      bankTransferAmount: bankTransferAmount ?? this.bankTransferAmount,
      bankTransferIsoCurrencyCode:
          bankTransferIsoCurrencyCode ?? this.bankTransferIsoCurrencyCode,
      failureReason: failureReason ?? this.failureReason,
      direction: direction ?? this.direction);
}