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