copyWithWrapped method

SwapEvent copyWithWrapped({
  1. Wrapped<String?>? amount0In,
  2. Wrapped<String?>? amount0Out,
  3. Wrapped<String?>? amount1In,
  4. Wrapped<String?>? amount1Out,
  5. Wrapped<int>? eventIndex,
  6. Wrapped<String>? maker,
  7. Wrapped<String>? pairId,
  8. Wrapped<String>? priceNative,
  9. Wrapped<Reserves?>? reserves,
  10. Wrapped<String>? txnId,
  11. Wrapped<int>? txnIndex,
})

Implementation

SwapEvent copyWithWrapped(
    {Wrapped<String?>? amount0In,
    Wrapped<String?>? amount0Out,
    Wrapped<String?>? amount1In,
    Wrapped<String?>? amount1Out,
    Wrapped<int>? eventIndex,
    Wrapped<String>? maker,
    Wrapped<String>? pairId,
    Wrapped<String>? priceNative,
    Wrapped<Reserves?>? reserves,
    Wrapped<String>? txnId,
    Wrapped<int>? txnIndex}) {
  return SwapEvent(
      amount0In: (amount0In != null ? amount0In.value : this.amount0In),
      amount0Out: (amount0Out != null ? amount0Out.value : this.amount0Out),
      amount1In: (amount1In != null ? amount1In.value : this.amount1In),
      amount1Out: (amount1Out != null ? amount1Out.value : this.amount1Out),
      eventIndex: (eventIndex != null ? eventIndex.value : this.eventIndex),
      maker: (maker != null ? maker.value : this.maker),
      pairId: (pairId != null ? pairId.value : this.pairId),
      priceNative:
          (priceNative != null ? priceNative.value : this.priceNative),
      reserves: (reserves != null ? reserves.value : this.reserves),
      txnId: (txnId != null ? txnId.value : this.txnId),
      txnIndex: (txnIndex != null ? txnIndex.value : this.txnIndex));
}