decode static method

Implementation

static XdrLiquidityPoolParameters decode(XdrDataInputStream stream) {
  XdrLiquidityPoolParameters decoded =
      XdrLiquidityPoolParameters(XdrLiquidityPoolType.decode(stream));
  switch (decoded.discriminant) {
    case XdrLiquidityPoolType.LIQUIDITY_POOL_CONSTANT_PRODUCT:
      decoded.constantProduct =
          XdrLiquidityPoolConstantProductParameters.decode(stream);
      break;
  }
  return decoded;
}