sinch-rtc
Version:
RTC JavaScript/Web SDK
43 lines • 1.28 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.AudioRouteEventFromJSON = AudioRouteEventFromJSON;
exports.AudioRouteEventFromJSONTyped = AudioRouteEventFromJSONTyped;
exports.AudioRouteEventToJSON = AudioRouteEventToJSON;
function AudioRouteEventFromJSON(json) {
return AudioRouteEventFromJSONTyped(json, false);
}
function AudioRouteEventFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'description': json['description'],
'time': (new Date(json['time'])),
};
}
function AudioRouteEventToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'description': value.description,
'time': (value.time.toISOString()),
};
}
//# sourceMappingURL=AudioRouteEvent.js.map