copyWithWrapped method

BankTransfer copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<ACHClass>? achClass,
  3. Wrapped<String>? accountId,
  4. Wrapped<BankTransferType>? type,
  5. Wrapped<BankTransferUser>? user,
  6. Wrapped<String>? amount,
  7. Wrapped<String>? isoCurrencyCode,
  8. Wrapped<String>? description,
  9. Wrapped<DateTime>? created,
  10. Wrapped<BankTransferStatus>? status,
  11. Wrapped<BankTransferNetwork>? network,
  12. Wrapped<bool>? cancellable,
  13. Wrapped<BankTransferFailure?>? failureReason,
  14. Wrapped<String?>? customTag,
  15. Wrapped<BankTransferMetadata?>? metadata,
  16. Wrapped<String>? originationAccountId,
  17. Wrapped<BankTransferDirection?>? direction,
})

Implementation

BankTransfer copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<enums.ACHClass>? achClass,
    Wrapped<String>? accountId,
    Wrapped<enums.BankTransferType>? type,
    Wrapped<BankTransferUser>? user,
    Wrapped<String>? amount,
    Wrapped<String>? isoCurrencyCode,
    Wrapped<String>? description,
    Wrapped<DateTime>? created,
    Wrapped<enums.BankTransferStatus>? status,
    Wrapped<enums.BankTransferNetwork>? network,
    Wrapped<bool>? cancellable,
    Wrapped<BankTransferFailure?>? failureReason,
    Wrapped<String?>? customTag,
    Wrapped<BankTransferMetadata?>? metadata,
    Wrapped<String>? originationAccountId,
    Wrapped<enums.BankTransferDirection?>? direction}) {
  return BankTransfer(
      id: (id != null ? id.value : this.id),
      achClass: (achClass != null ? achClass.value : this.achClass),
      accountId: (accountId != null ? accountId.value : this.accountId),
      type: (type != null ? type.value : this.type),
      user: (user != null ? user.value : this.user),
      amount: (amount != null ? amount.value : this.amount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      description:
          (description != null ? description.value : this.description),
      created: (created != null ? created.value : this.created),
      status: (status != null ? status.value : this.status),
      network: (network != null ? network.value : this.network),
      cancellable:
          (cancellable != null ? cancellable.value : this.cancellable),
      failureReason:
          (failureReason != null ? failureReason.value : this.failureReason),
      customTag: (customTag != null ? customTag.value : this.customTag),
      metadata: (metadata != null ? metadata.value : this.metadata),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      direction: (direction != null ? direction.value : this.direction));
}