UnknownItem

class UnknownItem(val type: String, val raw: JsonObject) : ResponseItem

An item whose type this version of the SDK does not model.

Keeps the payload verbatim, so a response carrying a newly-introduced item type still parses and replays unchanged as input.

Constructors

Link copied to clipboard
constructor(type: String, raw: JsonObject)

Properties

Link copied to clipboard
val raw: JsonObject

The item exactly as it arrived, discriminator included.

Link copied to clipboard
open override val type: String

Raw type discriminator the API sent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String