copyWithWrapped method
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,
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));
}