code: def from_json(cls, data):
          
          role = cls()
  
          role.role_id = data['roleId']
          role.name = data['name']
          role.color = data['color']
  
          return role
docs: Return object based on JSON / dict input
  
          Args:
              data (dict): Dictionary containing a serialized Role object
  
          Returns:
              :obj:`Role`: Role object representing the data