 				// NOTE: Cannot set null as value.
 				"candidate": false,
 				"localDescription": [
-					"type": rtcSdpTypeToString(type: self.rtcPeerConnection.localDescription!.type),
+					"type": RTCSessionDescription.string(for: self.rtcPeerConnection.localDescription!.type),
 					"sdp": self.rtcPeerConnection.localDescription!.sdp
-					]
+				] as [String : Any]
 			])
 		}
 	}

		self.eventListenerForRemoveStream = eventListenerForRemoveStream
	}


	deinit {
		NSLog("PluginRTCPeerConnection#deinit()")
		self.pluginRTCDTMFSenders = [:]

	var eventListener: (_ data: NSDictionary) -> Void
	var eventListenerForAddStream: (_ pluginMediaStream: PluginMediaStream) -> Void
	var eventListenerForRemoveStream: (_ id: String) -> Void

	var onCreateLocalDescriptionSuccessCallback: ((_ rtcSessionDescription: RTCSessionDescription) -> Void)!
	var onCreateLocalDescriptionFailureCallback: ((_ error: Error) -> Void)!
	var onCreateRemoteDescriptionSuccessCallback: ((_ rtcSessionDescription: RTCSessionDescription) -> Void)!
	var onCreateRemoteDescriptionFailureCallback: ((_ error: Error) -> Void)!
	var onSetDescriptionSuccessCallback: (() -> Void)!
	var onSetDescriptionFailureCallback: ((_ error: Error) -> Void)!
	var onGetStatsCallback: ((_ array: NSArray) -> Void)!
		
	var streamIds: [String] = []
	var isAudioInputSelected: Bool = false

