

@classmethod
def from_json(cls, board, json_obj):
    '\n        Deserialize the label json object to a Label object\n\n        :board: the parent board the label is on\n        :json_obj: the label json object\n        '
    label = Label(board.client, label_id=json_obj['id'], name=json_obj['name'].encode('utf-8'), color=json_obj['color'])
    return label

dataset/ETHPy150Open sarumont/py-trello/trello/label.py Label.from_json/original