'example: {
\'user\': False,
\'enrollment\': False,
\'allowed\': True,
\'auto_enroll\': True,'

def to_dict(self):

    return {'user': self.user, 'enrollment': self.enrollment, 'allowed': self.allowed, 'auto_enroll': self.auto_enroll}
