mapFromPrismicResponse

fun mapFromPrismicResponse(body: PrismicResponse?): PrismicImage?

Converts a PrismicResponse to a PrismicImage with modified image URLs.

Return

A PrismicImage with adjusted low and high-resolution URLs, or null if the image is expired or input is null.

Parameters

body

The PrismicResponse with image data, or null if not available.