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