"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class RTCIceCandidate {
    constructor({ candidate = '', sdpMLineIndex = null, sdpMid = null }) {
        if (sdpMLineIndex === null || sdpMid === null) {
            throw new TypeError('`sdpMLineIndex` and `sdpMid` must not null');
        }
        this.candidate = candidate;
        this.sdpMLineIndex = sdpMLineIndex;
        this.sdpMid = sdpMid;
    }
    toJSON() {
        return {
            candidate: this.candidate,
            sdpMLineIndex: this.sdpMLineIndex,
            sdpMid: this.sdpMid
        };
    }
}
exports.default = RTCIceCandidate;
//# sourceMappingURL=RTCIceCandidate.js.map