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