copyWithWrapped method

PoolInfoSchema copyWithWrapped({
  1. Wrapped<String>? address,
  2. Wrapped<String?>? apy1d,
  3. Wrapped<String?>? apy30d,
  4. Wrapped<String?>? apy7d,
  5. Wrapped<String>? collectedToken0ProtocolFee,
  6. Wrapped<String>? collectedToken1ProtocolFee,
  7. Wrapped<bool>? deprecated,
  8. Wrapped<String?>? lpAccountAddress,
  9. Wrapped<String?>? lpBalance,
  10. Wrapped<String>? lpFee,
  11. Wrapped<String?>? lpPriceUsd,
  12. Wrapped<String>? lpTotalSupply,
  13. Wrapped<String?>? lpTotalSupplyUsd,
  14. Wrapped<String?>? lpWalletAddress,
  15. Wrapped<String>? protocolFee,
  16. Wrapped<String>? protocolFeeAddress,
  17. Wrapped<String>? refFee,
  18. Wrapped<String>? reserve0,
  19. Wrapped<String>? reserve1,
  20. Wrapped<String>? routerAddress,
  21. Wrapped<String>? token0Address,
  22. Wrapped<String?>? token0Balance,
  23. Wrapped<String>? token1Address,
  24. 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));
}