RemoteObject

@Serializable
data class RemoteObject(val type: String, val subtype: String? = null, val className: String? = null, val value: JsonElement? = null, val unserializableValue: String? = null, val description: String? = null, val deepSerializedValue: Runtime.DeepSerializedValue? = null, val objectId: String? = null, val preview: Runtime.ObjectPreview? = null, val customPreview: Runtime.CustomPreview? = null)

Mirror object referencing original JavaScript object.

Constructors

Link copied to clipboard
constructor(type: String, subtype: String? = null, className: String? = null, value: JsonElement? = null, unserializableValue: String? = null, description: String? = null, deepSerializedValue: Runtime.DeepSerializedValue? = null, objectId: String? = null, preview: Runtime.ObjectPreview? = null, customPreview: Runtime.CustomPreview? = null)

Properties

Link copied to clipboard
val className: String? = null

Object class (constructor) name. Specified for object type values only.

Link copied to clipboard
Link copied to clipboard

Deep serialized value.

Link copied to clipboard
val description: String? = null

String representation of the object.

Link copied to clipboard
val objectId: String? = null

Unique object identifier (for non-primitive values).

Link copied to clipboard

Preview containing abbreviated property values. Specified for object type values only.

Link copied to clipboard
val subtype: String? = null

Object subtype hint. Specified for object type values only. NOTE: If you change anything here, make sure to also update subtype in ObjectPreview and PropertyPreview below.

Link copied to clipboard

Object type.

Link copied to clipboard

Primitive value which can not be JSON-stringified does not have value, but gets this property.

Link copied to clipboard
val value: JsonElement? = null

Remote object value in case of primitive values or JSON values (if it was requested).