def as_dict(self) -> dict:
    'Return a dictionary representation of the context.'
    return {'id': self.id, 'user_id': self.user_id}
Return a dictionary representation of the context.
def as_dict(self) -> dict:
    
    return {'id': self.id, 'user_id': self.user_id}