code: def save(self, path=None):
          
  
          if path is None:
              path = self._PATH_API_CONTEXT_DEFAULT
  
          with open(path, self._FILE_MODE_WRITE) as file_:
              file_.write(self.to_json())
docs: :type path: str
  
          :rtype: None