@classmethod
def _from_dict(cls, _dict):
    """Initialize a WordStyle object from a json dictionary."""
    args = {}
    if 'level' in _dict:
        args['level'] = _dict.get('level')
    if 'names' in _dict:
        args['names'] = _dict.get('names')
    return cls(**args)
