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