code: def to_json(self):
          
  
          result = super(SpaceMembership, self).to_json()
          result.update({
              'admin': self.admin,
              'roles': self.roles
          })
          return result
docs: Returns the JSON representation of the space membership.