UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

46 lines 1.36 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.ModelErrorFromJSON = ModelErrorFromJSON; exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; exports.ModelErrorToJSON = ModelErrorToJSON; const runtime_1 = require("../runtime"); function ModelErrorFromJSON(json) { return ModelErrorFromJSONTyped(json, false); } function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'code': json['code'], 'message': json['message'], 'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'], }; } function ModelErrorToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'code': value.code, 'message': value.message, 'reference': value.reference, }; } //# sourceMappingURL=ModelError.js.map