def unpack(cls, unpacker: Unpacker) -> "LiquidityPoolWithdrawResult":
        code = LiquidityPoolWithdrawResultCode.unpack(unpacker)
        if code == LiquidityPoolWithdrawResultCode.LIQUIDITY_POOL_WITHDRAW_SUCCESS:
            return cls(code=code)
        return cls(code=code)