copyWithWrapped method

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