toJSON

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

The DOMPointReadOnly method toJSON() returns an object giving the JSON form of the point object.

MDN Reference