Japanese carmaker Toyota reached a deal with Indonesian authorities on Thursday for developing electric cars in the country.