# RtcSessionDescription constructor

RtcSessionDescription(Map dictionary)

## Implementation

    factory RtcSessionDescription(Map dictionary) {
      // TODO(efortuna): Remove this check if when you can actually construct with
      // the unprefixed RTCIceCandidate in Firefox (currently both are defined,
      // but one can't be used as a constructor).
      var constructorName = JS(
          '',
          'window[#]',
          Device.isFirefox
              ? '${Device.propertyPrefix}RTCSessionDescription'
              : 'RTCSessionDescription');
      return JS('RtcSessionDescription', 'new #(#)', constructorName,
          convertDartToNative_SerializedScriptValue(dictionary));
    }