@ Override public Object fromMap ( Map < String , Object > map ) { String clazz = ( String ) map . get ( "class" ) ; Class cls = Reflection . loadClass ( clazz ) ; return fromMap ( map , cls ) ; }
fromMap converts a map into a Java object . This version will see if there is a class parameter in the map and dies if there is not .