code: Map<String, Object> serialize() {
  
  		final Map<String, Object> map = new TreeMap<>();
  
  		map.put(JsonSchema.KEY_DEFINITIONS, typeDefinitions.serialize());
  		map.put(JsonSchema.KEY_METHODS, globalMethods.serialize());
  		map.put(JsonSchema.KEY_ID, getId());
  
  		return map;
  	}
docs: ----- package methods -----