StoryListElement

sealed class StoryListElement

sealed class for story list element, could be text or list sub types depending on type field

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class StoryListItem(    val _id: String?,     val subtype: String?,     val channels: List<String>?,     val alignment: String?,     val additional_properties: Map<String, *>?,     val list_type: String?,     val items: List<StoryListElement>?) : StoryListElement

Story List item data class

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Text(    val _id: String?,     val subtype: String?,     val channels: List<String>?,     val alignment: String?,     val block_properties: StoryListElement.Text.BlockProperties?,     val additional_properties: Map<String, *>?,     val content: String?) : StoryListElement

A textual content element

Properties

Link copied to clipboard
val type: String

"text" or "list"

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard