toJSON

open override fun toJSON(): JsAny(source)

The toJSON() method of the PerformanceResourceTiming interface is a serializer; it returns a JSON representation of the PerformanceResourceTiming object.

MDN Reference