/**
  * {@inheritDoc}
  */
 public function stringToNotifications($jsonString)
 {
     $json = json_decode($jsonString);
     $notifications = new Notifications();
     if (isset($json->url)) {
         $notifications->setUrl($json->url);
     }
     if (isset($json->events->video_created)) {
         $notifications->addNotificationEvent(new NotificationEvent('video_created', $json->events->video_created));
     }
     if (isset($json->events->video_encoded)) {
         $notifications->addNotificationEvent(new NotificationEvent('video_encoded', $json->events->video_encoded));
     }
     if (isset($json->events->encoding_progress)) {
         $notifications->addNotificationEvent(new NotificationEvent('encoding_progress', $json->events->encoding_progress));
     }
     if (isset($json->events->encoding_completed)) {
         $notifications->addNotificationEvent(new NotificationEvent('encoding_completed', $json->events->encoding_completed));
     }
     return $notifications;
 }