UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

45 lines 1.44 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Ocra (REST API for Sinch RTC clients) * REST API for Sinch RTC clients. * * The version of the OpenAPI document: 0.11.0 * Contact: rtc@sinch.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RtcConfigFromJSON = RtcConfigFromJSON; exports.RtcConfigFromJSONTyped = RtcConfigFromJSONTyped; exports.RtcConfigToJSON = RtcConfigToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function RtcConfigFromJSON(json) { return RtcConfigFromJSONTyped(json, false); } function RtcConfigFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'mxpPubSubConfig': (0, _1.MxpPubSubConfigFromJSON)(json['mxpPubSubConfig']), 'legacyStunUrls': !(0, runtime_1.exists)(json, 'legacyStunUrls') ? undefined : json['legacyStunUrls'], }; } function RtcConfigToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'mxpPubSubConfig': (0, _1.MxpPubSubConfigToJSON)(value.mxpPubSubConfig), 'legacyStunUrls': value.legacyStunUrls, }; } //# sourceMappingURL=RtcConfig.js.map