@classmethod
def _from_dict(cls, _dict):
    """Initialize a Pagination object from a json dictionary."""
    args = {}
    if 'refresh_url' in _dict:
        args['refresh_url'] = _dict.get('refresh_url')
    else:
        raise ValueError(
            "Required property 'refresh_url' not present in Pagination JSON")
    if 'next_url' in _dict:
        args['next_url'] = _dict.get('next_url')
    if 'total' in _dict:
        args['total'] = _dict.get('total')
    if 'matched' in _dict:
        args['matched'] = _dict.get('matched')
    if 'refresh_cursor' in _dict:
        args['refresh_cursor'] = _dict.get('refresh_cursor')
    if 'next_cursor' in _dict:
        args['next_cursor'] = _dict.get('next_cursor')
    return cls(**args)
