UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

50 lines 1.73 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.MxpPubSubConfigFromJSON = MxpPubSubConfigFromJSON; exports.MxpPubSubConfigFromJSONTyped = MxpPubSubConfigFromJSONTyped; exports.MxpPubSubConfigToJSON = MxpPubSubConfigToJSON; const runtime_1 = require("../runtime"); function MxpPubSubConfigFromJSON(json) { return MxpPubSubConfigFromJSONTyped(json, false); } function MxpPubSubConfigFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'hostname': json['hostname'], 'signalSubscribeKey': json['signalSubscribeKey'], 'signalPublishKey': json['signalPublishKey'], 'broadcastSubscribeKey': json['broadcastSubscribeKey'], 'pubnubClientId': !(0, runtime_1.exists)(json, 'pubnubClientId') ? undefined : json['pubnubClientId'], }; } function MxpPubSubConfigToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'hostname': value.hostname, 'signalSubscribeKey': value.signalSubscribeKey, 'signalPublishKey': value.signalPublishKey, 'broadcastSubscribeKey': value.broadcastSubscribeKey, 'pubnubClientId': value.pubnubClientId, }; } //# sourceMappingURL=MxpPubSubConfig.js.map