toJSON method

The RTCSessionDescription.toJSON() method generates a description of the object. Both properties, RTCSessionDescription.type and RTCSessionDescription.sdp, are contained in the generated JSON.

Implementation

external RTCSessionDescriptionInit toJSON();