Probability law and flow function of Brownian motion driven by a generalized telegraph process