UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

55 lines 1.95 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.InstanceVersionDataFromJSON = InstanceVersionDataFromJSON; exports.InstanceVersionDataFromJSONTyped = InstanceVersionDataFromJSONTyped; exports.InstanceVersionDataToJSON = InstanceVersionDataToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function InstanceVersionDataFromJSON(json) { return InstanceVersionDataFromJSONTyped(json, false); } function InstanceVersionDataFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'platform': (0, _1.PlatformIdentifierFromJSON)(json['platform']), 'os': json['os'], 'osName': !(0, runtime_1.exists)(json, 'osName') ? undefined : json['osName'], 'osVersion': !(0, runtime_1.exists)(json, 'osVersion') ? undefined : json['osVersion'], 'application': json['application'], 'deviceModelId': json['deviceModelId'], 'deviceModelName': json['deviceModelName'], }; } function InstanceVersionDataToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'platform': (0, _1.PlatformIdentifierToJSON)(value.platform), 'os': value.os, 'osName': value.osName, 'osVersion': value.osVersion, 'application': value.application, 'deviceModelId': value.deviceModelId, 'deviceModelName': value.deviceModelName, }; } //# sourceMappingURL=InstanceVersionData.js.map