extract session kvs to case class