Created case class from json