copyWithWrapped method

LiquidityEvent copyWithWrapped({
  1. Wrapped<String>? amount0,
  2. Wrapped<String>? amount1,
  3. Wrapped<int>? eventIndex,
  4. Wrapped<String>? maker,
  5. Wrapped<String>? pairId,
  6. Wrapped<Reserves?>? reserves,
  7. Wrapped<String>? txnId,
  8. Wrapped<int>? txnIndex,
})

Implementation

LiquidityEvent copyWithWrapped(
    {Wrapped<String>? amount0,
    Wrapped<String>? amount1,
    Wrapped<int>? eventIndex,
    Wrapped<String>? maker,
    Wrapped<String>? pairId,
    Wrapped<Reserves?>? reserves,
    Wrapped<String>? txnId,
    Wrapped<int>? txnIndex}) {
  return LiquidityEvent(
      amount0: (amount0 != null ? amount0.value : this.amount0),
      amount1: (amount1 != null ? amount1.value : this.amount1),
      eventIndex: (eventIndex != null ? eventIndex.value : this.eventIndex),
      maker: (maker != null ? maker.value : this.maker),
      pairId: (pairId != null ? pairId.value : this.pairId),
      reserves: (reserves != null ? reserves.value : this.reserves),
      txnId: (txnId != null ? txnId.value : this.txnId),
      txnIndex: (txnIndex != null ? txnIndex.value : this.txnIndex));
}