public Routing routingFromJSON ( Model mo , JSONObject o ) throws JSONConverterException { String type = requiredString ( o , "type" ) ; RoutingConverter < ? extends Routing > c = json2java . get ( type ) ; if ( c == null ) { throw new JSONConverterException ( "No converter available for a routing of type '" + type + "'" ) ; } return c . fromJSON ( mo , o ) ; }
Convert a JSON routing object into the corresponding java Routing implementation .