copyWith method

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

Implementation

PoolInfoSchema copyWith(
    {String? address,
    String? apy1d,
    String? apy30d,
    String? apy7d,
    String? collectedToken0ProtocolFee,
    String? collectedToken1ProtocolFee,
    bool? deprecated,
    String? lpAccountAddress,
    String? lpBalance,
    String? lpFee,
    String? lpPriceUsd,
    String? lpTotalSupply,
    String? lpTotalSupplyUsd,
    String? lpWalletAddress,
    String? protocolFee,
    String? protocolFeeAddress,
    String? refFee,
    String? reserve0,
    String? reserve1,
    String? routerAddress,
    String? token0Address,
    String? token0Balance,
    String? token1Address,
    String? token1Balance}) {
  return PoolInfoSchema(
      address: address ?? this.address,
      apy1d: apy1d ?? this.apy1d,
      apy30d: apy30d ?? this.apy30d,
      apy7d: apy7d ?? this.apy7d,
      collectedToken0ProtocolFee:
          collectedToken0ProtocolFee ?? this.collectedToken0ProtocolFee,
      collectedToken1ProtocolFee:
          collectedToken1ProtocolFee ?? this.collectedToken1ProtocolFee,
      deprecated: deprecated ?? this.deprecated,
      lpAccountAddress: lpAccountAddress ?? this.lpAccountAddress,
      lpBalance: lpBalance ?? this.lpBalance,
      lpFee: lpFee ?? this.lpFee,
      lpPriceUsd: lpPriceUsd ?? this.lpPriceUsd,
      lpTotalSupply: lpTotalSupply ?? this.lpTotalSupply,
      lpTotalSupplyUsd: lpTotalSupplyUsd ?? this.lpTotalSupplyUsd,
      lpWalletAddress: lpWalletAddress ?? this.lpWalletAddress,
      protocolFee: protocolFee ?? this.protocolFee,
      protocolFeeAddress: protocolFeeAddress ?? this.protocolFeeAddress,
      refFee: refFee ?? this.refFee,
      reserve0: reserve0 ?? this.reserve0,
      reserve1: reserve1 ?? this.reserve1,
      routerAddress: routerAddress ?? this.routerAddress,
      token0Address: token0Address ?? this.token0Address,
      token0Balance: token0Balance ?? this.token0Balance,
      token1Address: token1Address ?? this.token1Address,
      token1Balance: token1Balance ?? this.token1Balance);
}