code: function fetchObjectByPointer(pointer) {
    const collection = getCollection(pointer.className);
    const storedItem = collection[pointer.objectId];
  
    if (storedItem === undefined) {
      return undefined;
    }
  
    return Object.assign(
      { __type: 'Object', className: pointer.className },
      _.cloneDeep(storedItem)
    );
  }
docs: Given an object, a pointer, or a JSON representation of a Parse Object,
  return a fully fetched version of the Object.