code: def to_json(self):
          
  
          result = super(EditorInterface, self).to_json()
          result.update({'controls': self.controls})
          return result
docs: Returns the JSON representation of the editor interface.