get case class properties using reflection