SerializationOptions

@Serializable
data class SerializationOptions(val serialization: String, val maxDepth: Int? = null, val additionalParameters: Map<String, JsonElement>? = null)

Represents options for serialization. Overrides generatePreview and returnByValue.

Constructors

Link copied to clipboard
constructor(serialization: String, maxDepth: Int? = null, additionalParameters: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
val additionalParameters: Map<String, JsonElement>? = null

Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM serialization via maxNodeDepth: integer and includeShadowTree: "none" | "open" | "all". Values can be only of type string or integer.

Link copied to clipboard
val maxDepth: Int? = null

Deep serialization depth. Default is full depth. Respected only in deep serialization mode.

Link copied to clipboard