UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

45 lines 1.32 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.OriginFromJSON = OriginFromJSON; exports.OriginFromJSONTyped = OriginFromJSONTyped; exports.OriginToJSON = OriginToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function OriginFromJSON(json) { return OriginFromJSONTyped(json, false); } function OriginFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : (0, _1.DomainFromJSON)(json['domain']), 'identity': json['identity'], }; } function OriginToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'domain': (0, _1.DomainToJSON)(value.domain), 'identity': value.identity, }; } //# sourceMappingURL=Origin.js.map