code: def _to_list(obj):
      '''
      Convert snetinfo object to list
      '''
      ret = {}
  
      for attr in __attrs:
          if hasattr(obj, attr):
              ret[attr] = getattr(obj, attr)
      return ref _to_list(obj):
      '''
      Convert snetinfo object to list
      '''
      ret = {}
  
      for attr in __attrs:
          if hasattr(obj, attr):
              ret[attr] = getattr(obj, attr)
      return ret
docs: Convert snetinfo object to list