sinch-rtc
Version:
RTC JavaScript/Web SDK
49 lines • 1.71 kB
JavaScript
;
/* 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.WarningEventFromJSON = WarningEventFromJSON;
exports.WarningEventFromJSONTyped = WarningEventFromJSONTyped;
exports.WarningEventToJSON = WarningEventToJSON;
const runtime_1 = require("../runtime");
const _1 = require("./");
function WarningEventFromJSON(json) {
return WarningEventFromJSONTyped(json, false);
}
function WarningEventFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': (0, _1.WarningEventNameFromJSON)(json['name']),
'time': (new Date(json['time'])),
'type': (0, _1.WarningEventTypeFromJSON)(json['type']),
'mediaStreamType': !(0, runtime_1.exists)(json, 'mediaStreamType') ? undefined : (0, _1.MediaStreamTypeFromJSON)(json['mediaStreamType']),
};
}
function WarningEventToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': (0, _1.WarningEventNameToJSON)(value.name),
'time': (value.time.toISOString()),
'type': (0, _1.WarningEventTypeToJSON)(value.type),
'mediaStreamType': (0, _1.MediaStreamTypeToJSON)(value.mediaStreamType),
};
}
//# sourceMappingURL=WarningEvent.js.map