copyWithWrapped method
PoolInfoSchema
copyWithWrapped({
- Wrapped<
String> ? address, - Wrapped<
String?> ? apy1d, - Wrapped<
String?> ? apy30d, - Wrapped<
String?> ? apy7d, - Wrapped<
String> ? collectedToken0ProtocolFee, - Wrapped<
String> ? collectedToken1ProtocolFee, - Wrapped<
bool> ? deprecated, - Wrapped<
String?> ? lpAccountAddress, - Wrapped<
String?> ? lpBalance, - Wrapped<
String> ? lpFee, - Wrapped<
String?> ? lpPriceUsd, - Wrapped<
String> ? lpTotalSupply, - Wrapped<
String?> ? lpTotalSupplyUsd, - Wrapped<
String?> ? lpWalletAddress, - Wrapped<
String> ? protocolFee, - Wrapped<
String> ? protocolFeeAddress, - Wrapped<
String> ? refFee, - Wrapped<
String> ? reserve0, - Wrapped<
String> ? reserve1, - Wrapped<
String> ? routerAddress, - Wrapped<
String> ? token0Address, - Wrapped<
String?> ? token0Balance, - Wrapped<
String> ? token1Address, - Wrapped<
String?> ? token1Balance,
Implementation
PoolInfoSchema copyWithWrapped(
{Wrapped<String>? address,
Wrapped<String?>? apy1d,
Wrapped<String?>? apy30d,
Wrapped<String?>? apy7d,
Wrapped<String>? collectedToken0ProtocolFee,
Wrapped<String>? collectedToken1ProtocolFee,
Wrapped<bool>? deprecated,
Wrapped<String?>? lpAccountAddress,
Wrapped<String?>? lpBalance,
Wrapped<String>? lpFee,
Wrapped<String?>? lpPriceUsd,
Wrapped<String>? lpTotalSupply,
Wrapped<String?>? lpTotalSupplyUsd,
Wrapped<String?>? lpWalletAddress,
Wrapped<String>? protocolFee,
Wrapped<String>? protocolFeeAddress,
Wrapped<String>? refFee,
Wrapped<String>? reserve0,
Wrapped<String>? reserve1,
Wrapped<String>? routerAddress,
Wrapped<String>? token0Address,
Wrapped<String?>? token0Balance,
Wrapped<String>? token1Address,
Wrapped<String?>? token1Balance}) {
return PoolInfoSchema(
address: (address != null ? address.value : this.address),
apy1d: (apy1d != null ? apy1d.value : this.apy1d),
apy30d: (apy30d != null ? apy30d.value : this.apy30d),
apy7d: (apy7d != null ? apy7d.value : this.apy7d),
collectedToken0ProtocolFee: (collectedToken0ProtocolFee != null
? collectedToken0ProtocolFee.value
: this.collectedToken0ProtocolFee),
collectedToken1ProtocolFee: (collectedToken1ProtocolFee != null
? collectedToken1ProtocolFee.value
: this.collectedToken1ProtocolFee),
deprecated: (deprecated != null ? deprecated.value : this.deprecated),
lpAccountAddress: (lpAccountAddress != null
? lpAccountAddress.value
: this.lpAccountAddress),
lpBalance: (lpBalance != null ? lpBalance.value : this.lpBalance),
lpFee: (lpFee != null ? lpFee.value : this.lpFee),
lpPriceUsd: (lpPriceUsd != null ? lpPriceUsd.value : this.lpPriceUsd),
lpTotalSupply:
(lpTotalSupply != null ? lpTotalSupply.value : this.lpTotalSupply),
lpTotalSupplyUsd: (lpTotalSupplyUsd != null
? lpTotalSupplyUsd.value
: this.lpTotalSupplyUsd),
lpWalletAddress: (lpWalletAddress != null
? lpWalletAddress.value
: this.lpWalletAddress),
protocolFee:
(protocolFee != null ? protocolFee.value : this.protocolFee),
protocolFeeAddress: (protocolFeeAddress != null
? protocolFeeAddress.value
: this.protocolFeeAddress),
refFee: (refFee != null ? refFee.value : this.refFee),
reserve0: (reserve0 != null ? reserve0.value : this.reserve0),
reserve1: (reserve1 != null ? reserve1.value : this.reserve1),
routerAddress:
(routerAddress != null ? routerAddress.value : this.routerAddress),
token0Address:
(token0Address != null ? token0Address.value : this.token0Address),
token0Balance:
(token0Balance != null ? token0Balance.value : this.token0Balance),
token1Address:
(token1Address != null ? token1Address.value : this.token1Address),
token1Balance:
(token1Balance != null ? token1Balance.value : this.token1Balance));
}