Unfortunately there’s no easy way to do this right now. There is probably a good argument to be made for such an API for plugin authors.
Until then the way to do it is to add the fields via plugin outlets to the user preferences, tap into serializers and saving logic to store the setting the PluginStore
.