code: def get_view_settings(self):
          
          settings = {}
          for name in REMOTE_SETTINGS:
              settings[name] = getattr(self, name)
          return settings
docs: Return dict editor view settings