It is believed to have been accidental and caused by the failure of a lithium-ion battery.
Two people evacuated the flat before firefighters arrived. They were both taken to hospital by ambulance.
The London Fire Brigade have advised you should always use the correct charger for a product and buy an official one from a reputable seller.
You should also unplug your charger when you have finished using it, and not leave it unattended or charging while sleeping.