map getdocs result to case class