spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildpackMetadata.java
/**
	 * Factory method to extract {@link BuildpackMetadata} from image config.
	 * @param imageConfig the source image config
	 * @return the builder metadata
	 * @throws IOException on IO error
	 */
Factory method to extract  BuildpackMetadata from image config.
@param imageConfig the source image config
@return the builder metadata
@throws IOException on IO error
Factory method to extract BuildpackMetadata from image config . @param imageConfig the source image config @return the builder metadata @throws IOException on IO error
static BuildpackMetadata fromImageConfig(ImageConfig imageConfig) throws IOException {
		Assert.notNull(imageConfig, "ImageConfig must not be null");
		String json = imageConfig.getLabels().get(LABEL_NAME);
		Assert.notNull(json, () -> "No '" + LABEL_NAME + "' label found in image config labels '"
				+ StringUtils.collectionToCommaDelimitedString(imageConfig.getLabels().keySet()) + "'");
		return fromJson(json);
	}
static BuildpackMetadata fromImageConfig ( ImageConfig imageConfig ) throws IOException { Assert . notNull ( imageConfig , "ImageConfig must not be null" ) ; String json = imageConfig . getLabels ( ) . get ( LABEL_NAME ) ; Assert . notNull ( json , ( ) -> "No '" + LABEL_NAME + "' label found in image config labels '" + StringUtils . collectionToCommaDelimitedString ( imageConfig . getLabels ( ) . keySet ( ) ) + "'" ) ; return fromJson ( json ) ; }
Factory method to extract {@link BuildpackMetadata} from image config.
Factory method to extract { @link BuildpackMetadata } from image config .