HashMap<String, Model> _models = new HashMap<String, Model>();
for (String key: doc.getModels().keySet()) {
_models.put(key, doc.getModels().get(key).toSwaggerModel());
}
return new ApiListing(doc.getApiVersion(), doc.getSwaggerVersion(), doc.getBasePath(), doc.getResourcePath(),
Utils.toScalaImmutableList(doc.getProduces()), Utils.toScalaImmutableList(doc.getConsumes()),
Utils.toScalaImmutableList(doc.getProtocols()),
new ListConverter<JAuthorization, Authorization>(doc.getAuthorizations()).convert(),
new ListConverter<JApiDescription, ApiDescription>(doc.getApis()).convert(),
Option.apply(Utils.toScalaImmutableMap(_models)), Option.apply(doc.getDescription()), doc.getPosition());