That info is stored in a shared preference of the settings app. Which is located at: /data/user/0/com.android.settings/shared_prefs/development.xml it has a boolean named show stored, if set to true, developer options is shown, gone otherwise.
Also,
adb shell settings put global development_settings_enabled 1