News

data class News(val title: String?, val bodyText: String?, val date: String?, val image: String?, val url: String?)

Represents news content from Prismic in the Discovery API.

Holds details about a news item, including title, body, and image.

Constructors

Link copied to clipboard
constructor(title: String?, bodyText: String?, date: String?, image: String?, url: String?)

Properties

Link copied to clipboard

The body text of the news, if available.

Link copied to clipboard
val date: String?

The publication date, if available.

Link copied to clipboard

The image URL, if available.

Link copied to clipboard

The news item title, if available.

Link copied to clipboard
val url: String?

The URL for the news item, if available.