code: def from_dict(event_dict):
      
      return SnippetEvent(
          callback_id=event_dict['callbackId'],
          name=event_dict['name'],
          creation_time=event_dict['time'],
          data=event_dict['data'])
docs: Create a SnippetEvent object from a dictionary.
  
      Args:
          event_dict: a dictionary representing an event.
  
      Returns:
          A SnippetEvent object.