Can a gas dryer be converted into an electric dryer?
In general, no you can't do this.

I suppose it's possible that the manufacturer uses many of the same parts between their gas and electric models and you could buy enough parts to do a conversion, but this would likely cost more than just buying an electric dryer in the first place.

But I've never seen a supported conversion kit - my advice: sell the gas dryer  and buy an electric.