If I have a Map[String,String](\"url\" -> \"xxx\", \"title\" -> \"yyy\"), is there an way to generically transform it into a case class Image(url:St
Not a full answer to your question, but a start…
It can be done, but it will probably get more tricky than you thought. Each generated Scala class is annotated with the Java annotation ScalaSignature, whose bytes member can be parsed to give you the metadata that you would need (including argument names). The format of this signature is not API, however, so you'll need to parse it yourself (and are likely to change the way you parse it with each new major Scala release).
Maybe the best place to start is the lift-json library, which has the ability to create instances of case classes based on JSON data.
Update: I think lift-json actually uses Paranamer to do this, and thus may not parse the bytes of ScalaSignature… Which makes this technique work for non-Scala classes, too.
Update 2: See Moritz's answer instead, who is better informed than I am.