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