Links

sealed class Links

Sealed class for links, could be interstitial_link or text based on type property

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class InterstitialLink(    val _id: String?,     val subtype: String?,     val channels: List<String>?,     val alignment: String?,     val additional_properties: Map<String, *>?,     val url: String?,     val content: String?,     val description: Links.Text?,     val image: Image?) : Links

Interstitial Link

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: Links.Text.BlockProperties?,     val additional_properties: Map<String, *>?,     val content: String?) : Links

A textual content element

Link copied to clipboard
class UnknownLinks : Links

this object gets returned given an unknown link

Properties

Link copied to clipboard
val type: String

could be "interstitial_link" or "text"

Inheritors

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