toJSON

open external fun toJSON(): RTCIceCandidateInit(source)

The toJSON() method of the RTCIceCandidate interface returns a JSON-serializable plain object representing the RTCIceCandidate object.

MDN Reference