convert notification (json) to scala case class