Because a dodged attack deals 75% less damage, becoming proficient at dodging is an important skill to have on your path to become a Pokemon Master.

A successful dodge requires you to swipe the screen left or right with the proper timing:

After the screen flashes yellow Before Pokemon HP bar turns orange from taking damage

These timings are now available on every Pokemon page:

All moves have a 0.7 second window for dodging between these 2 events. However, the timing of the yellow flash varies between moves, especially for charge moves.

This graphic shows the dodge window for every charge move starting from when the attack is announced:

Full Size