toJSON

fun toJSON(): ERROR CLASS: Symbol not found for JsAny(source)

The DOMRectReadOnly method toJSON() returns a JSON representation of the DOMRectReadOnly object.

MDN Reference