original_docstring: Reconstruct an instance from a mapping.
  
          :type database: :class:`~google.cloud.spanner_v1.database.Database`
          :param database: database to use
  
          :type mapping: mapping
          :param mapping: serialized state of the instance
  
          :rtype: :class:`BatchSnapshot`
          
docstring: Reconstruct an instance from a mapping.
docstring_tokens: Reconstruct an instance from a mapping .
code: def from_dict(cls, database, mapping):
          """Reconstruct an instance from a mapping.
  
          :type database: :class:`~google.cloud.spanner_v1.database.Database`
          :param database: database to use
  
          :type mapping: mapping
          :param mapping: serialized state of the instance
  
          :rtype: :class:`BatchSnapshot`
          """
          instance = cls(database)
          session = instance._session = database.session()
          session._session_id = mapping["session_id"]
          snapshot = instance._snapshot = session.snapshot()
          snapshot._transaction_id = mapping["transaction_id"]
          return instance
code_tokens: def from_dict ( cls , database , mapping ) : instance = cls ( database ) session = instance . _session = database . session ( ) session . _session_id = mapping [ "session_id" ] snapshot = instance . _snapshot = session . snapshot ( ) snapshot . _transaction_id = mapping [ "transaction_id" ] return instance
short_docstring: Reconstruct an instance from a mapping.
short_docstring_tokens: Reconstruct an instance from a mapping .
comment: """Reconstruct an instance from a mapping.
  
          :type database: :class:`~google.cloud.spanner_v1.database.Database`
          :param database: database to use
  
          :type mapping: mapping
          :param mapping: serialized state of the instance
  
          :rtype: :class:`BatchSnapshot`
          """