sinch-rtc
Version:
RTC JavaScript/Web SDK
47 lines • 1.53 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.CallReportInstanceFromJSON = CallReportInstanceFromJSON;
exports.CallReportInstanceFromJSONTyped = CallReportInstanceFromJSONTyped;
exports.CallReportInstanceToJSON = CallReportInstanceToJSON;
const runtime_1 = require("../runtime");
const _1 = require("./");
function CallReportInstanceFromJSON(json) {
return CallReportInstanceFromJSONTyped(json, false);
}
function CallReportInstanceFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': json['id'],
'deviceId': !(0, runtime_1.exists)(json, 'deviceId') ? undefined : json['deviceId'],
'version': (0, _1.InstanceVersionDataFromJSON)(json['version']),
};
}
function CallReportInstanceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': value.id,
'deviceId': value.deviceId,
'version': (0, _1.InstanceVersionDataToJSON)(value.version),
};
}
//# sourceMappingURL=CallReportInstance.js.map