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