Added decomposing client data from JSON into case class