@classmethod
def parse(cls, api, json):
    """ レスポンスをもとに属性を追加する

        :param api: :class:`API <pytwitcasting.api.API>`
        :param json: APIレスポンスのdict
        :return: :class:`SubCategory <pytwitcasting.api.SubCategory>`
        """
    sub_category = cls(api)
    setattr(sub_category, '_json', json)
    for k, v in json.items():
        setattr(sub_category, k, v)
    return sub_category
