Paragraph

data class Paragraph(val type: String?, val text: String?, val spans: List<Span>?)

Represents a paragraph from Prismic in the Discovery API.

Holds paragraph content with type, text, and formatting spans.

Constructors

Link copied to clipboard
constructor(type: String?, text: String?, spans: List<Span>?)

Properties

Link copied to clipboard
val spans: List<Span>?

List of formatting spans, if available.

Link copied to clipboard
val text: String?

The paragraph text, if available.

Link copied to clipboard
val type: String?

The paragraph type, if available.