Get case class from the server