code: def to_json(self):
          
          return {
              'userId': self.user_id,
              'username': self.username,
              'roles': self.roles,
              'authSystem': self.auth_system
          }
docs: Exports the object to a JSON friendly dict
  
          Returns:
              Dict representation of the object