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