UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

47 lines 1.55 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.ClientErrorFromJSON = ClientErrorFromJSON; exports.ClientErrorFromJSONTyped = ClientErrorFromJSONTyped; exports.ClientErrorToJSON = ClientErrorToJSON; const runtime_1 = require("../runtime"); const _1 = require("./"); function ClientErrorFromJSON(json) { return ClientErrorFromJSONTyped(json, false); } function ClientErrorFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'], 'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : (0, _1.ClientErrorDomainFromJSON)(json['domain']), 'message': !(0, runtime_1.exists)(json, 'message') ? undefined : json['message'], }; } function ClientErrorToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'code': value.code, 'domain': (0, _1.ClientErrorDomainToJSON)(value.domain), 'message': value.message, }; } //# sourceMappingURL=ClientError.js.map