UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

47 lines 1.7 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.RemotePeerInstanceFromJSON = RemotePeerInstanceFromJSON; exports.RemotePeerInstanceFromJSONTyped = RemotePeerInstanceFromJSONTyped; exports.RemotePeerInstanceToJSON = RemotePeerInstanceToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function RemotePeerInstanceFromJSON(json) { return RemotePeerInstanceFromJSONTyped(json, false); } function RemotePeerInstanceFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'capabilities': !(0, runtime_1.exists)(json, 'capabilities') ? undefined : json['capabilities'], 'pushProfile': !(0, runtime_1.exists)(json, 'pushProfile') ? undefined : (0, _1.RemotePeerInstancePushProfileFromJSON)(json['pushProfile']), }; } function RemotePeerInstanceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'capabilities': value.capabilities, 'pushProfile': (0, _1.RemotePeerInstancePushProfileToJSON)(value.pushProfile), }; } //# sourceMappingURL=RemotePeerInstance.js.map