The parameter directionOfTurn is relevant (and mandatory) only for RELATIVE heading (ignored for Maintain or ABSOLUTE heading), it indicates in which direction the flight shall turn to reach the heading.