code: def ToJson(self):
          
          obj = {
              'usage': self.Usage,
              'data': '' if not self.Data else self.Data.hex()
          }
          return obj
docs: Convert object members to a dictionary that can be parsed as JSON.
  
          Returns:
               dict: