UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

53 lines 2.39 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.ExtendedCallReportAllOfFromJSON = ExtendedCallReportAllOfFromJSON; exports.ExtendedCallReportAllOfFromJSONTyped = ExtendedCallReportAllOfFromJSONTyped; exports.ExtendedCallReportAllOfToJSON = ExtendedCallReportAllOfToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function ExtendedCallReportAllOfFromJSON(json) { return ExtendedCallReportAllOfFromJSONTyped(json, false); } function ExtendedCallReportAllOfFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'rtcStatisticsReport': json['rtcStatisticsReport'], 'mxpEventLog': !(0, runtime_1.exists)(json, 'mxpEventLog') ? undefined : json['mxpEventLog'], 'callQuality': !(0, runtime_1.exists)(json, 'callQuality') ? undefined : (0, _1.CallQualityFromJSON)(json['callQuality']), 'audioRouteEventLog': !(0, runtime_1.exists)(json, 'audioRouteEventLog') ? undefined : (0, _1.AudioRouteEventLogFromJSON)(json['audioRouteEventLog']), 'pushProvider': !(0, runtime_1.exists)(json, 'pushProvider') ? undefined : (0, _1.PushProviderFromJSON)(json['pushProvider']), 'clientEvents': !(0, runtime_1.exists)(json, 'clientEvents') ? undefined : (0, _1.ClientEventsFromJSON)(json['clientEvents']), }; } function ExtendedCallReportAllOfToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'rtcStatisticsReport': value.rtcStatisticsReport, 'mxpEventLog': value.mxpEventLog, 'callQuality': (0, _1.CallQualityToJSON)(value.callQuality), 'audioRouteEventLog': (0, _1.AudioRouteEventLogToJSON)(value.audioRouteEventLog), 'pushProvider': (0, _1.PushProviderToJSON)(value.pushProvider), 'clientEvents': (0, _1.ClientEventsToJSON)(value.clientEvents), }; } //# sourceMappingURL=ExtendedCallReportAllOf.js.map