JsonContent

Represents arbitrary JSON content that corresponds to a model object. This is often used to represent content that does not have known type defined at runtime.

Constructors

Link copied to clipboard
constructor(value: String, format: Json)
constructor(value: String, format: Json)
constructor(value: JsonElement, format: Json)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
actual object Companion

Properties

format
Link copied to clipboard
value
Link copied to clipboard

Functions

Link copied to clipboard
actual inline fun <T : Any> decodeAs(): T
expect inline fun <T : Any> decodeAs(): T

Decode the content as a known @Serializable class.

actual inline fun <T : Any> decodeAs(): T
actual inline fun <T : Any> decodeAs(): T
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String