@classmethod
def _from_dict(cls, _dict):
    """Initialize a CreateValue object from a json dictionary."""
    args = {}
    if 'value' in _dict:
        args['value'] = _dict.get('value')
    else:
        raise ValueError(
            "Required property 'value' not present in CreateValue JSON")
    if 'metadata' in _dict:
        args['metadata'] = _dict.get('metadata')
    if 'synonyms' in _dict:
        args['synonyms'] = _dict.get('synonyms')
    if 'patterns' in _dict:
        args['patterns'] = _dict.get('patterns')
    if 'type' in _dict or 'value_type' in _dict:
        args['value_type'] = _dict.get('type') or _dict.get('value_type')
    return cls(**args)
