UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

42 lines 1.45 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.UpdateInstanceTtlRequestFromJSON = UpdateInstanceTtlRequestFromJSON; exports.UpdateInstanceTtlRequestFromJSONTyped = UpdateInstanceTtlRequestFromJSONTyped; exports.UpdateInstanceTtlRequestToJSON = UpdateInstanceTtlRequestToJSON; const runtime_1 = require("../runtime"); function UpdateInstanceTtlRequestFromJSON(json) { return UpdateInstanceTtlRequestFromJSONTyped(json, false); } function UpdateInstanceTtlRequestFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'expireAt': !(0, runtime_1.exists)(json, 'expireAt') ? undefined : (new Date(json['expireAt'])), }; } function UpdateInstanceTtlRequestToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'expireAt': value.expireAt === undefined ? undefined : (value.expireAt.toISOString()), }; } //# sourceMappingURL=UpdateInstanceTtlRequest.js.map