Recreating toggle shading mode hotkeys in 2.8
I was so distracted hunting down 2.8 methods I completely overlooked the seemingly disabled dropdown that appears when you use the VIEW3D_OT_toggle_shading method:



Despite being grayed out, it's interactive. That's where you set the type, not through the code.