code: 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);
      }
docs: Convert a JSON routing object into the corresponding java Routing implementation.
  
  @param o the JSON object to convert
  @throws JSONConverterException if the Routing implementation is not known