@classmethod
def _from_dict(cls, _dict):
    """Initialize a ToneChatScore object from a json dictionary."""
    args = {}
    if 'score' in _dict:
        args['score'] = _dict.get('score')
    else:
        raise ValueError(
            "Required property 'score' not present in ToneChatScore JSON")
    if 'tone_id' in _dict:
        args['tone_id'] = _dict.get('tone_id')
    else:
        raise ValueError(
            "Required property 'tone_id' not present in ToneChatScore JSON")
    if 'tone_name' in _dict:
        args['tone_name'] = _dict.get('tone_name')
    else:
        raise ValueError(
            "Required property 'tone_name' not present in ToneChatScore JSON")
    return cls(**args)
