@classmethod
def _from_dict(cls, _dict):
    """Initialize a SpeakerLabelsResult object from a json dictionary."""
    args = {}
    if 'from' in _dict:
        args['from_'] = _dict.get('from')
    else:
        raise ValueError(
            "Required property 'from' not present in SpeakerLabelsResult JSON")
    if 'to' in _dict:
        args['to'] = _dict.get('to')
    else:
        raise ValueError(
            "Required property 'to' not present in SpeakerLabelsResult JSON")
    if 'speaker' in _dict:
        args['speaker'] = _dict.get('speaker')
    else:
        raise ValueError(
            "Required property 'speaker' not present in SpeakerLabelsResult JSON"
            )
    if 'confidence' in _dict:
        args['confidence'] = _dict.get('confidence')
    else:
        raise ValueError(
            "Required property 'confidence' not present in SpeakerLabelsResult JSON"
            )
    if 'final' in _dict or 'final_results' in _dict:
        args['final_results'] = _dict.get('final') or _dict.get('final_results'
            )
    else:
        raise ValueError(
            "Required property 'final' not present in SpeakerLabelsResult JSON"
            )
    return cls(**args)
