UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

52 lines (51 loc) 1.94 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Umbraco Management API * This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility * * The version of the OpenAPI document: Latest * * * 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.instanceOfTelemetryResponseModel = instanceOfTelemetryResponseModel; exports.TelemetryResponseModelFromJSON = TelemetryResponseModelFromJSON; exports.TelemetryResponseModelFromJSONTyped = TelemetryResponseModelFromJSONTyped; exports.TelemetryResponseModelToJSON = TelemetryResponseModelToJSON; exports.TelemetryResponseModelToJSONTyped = TelemetryResponseModelToJSONTyped; const TelemetryLevelModel_1 = require("./TelemetryLevelModel"); /** * Check if a given object implements the TelemetryResponseModel interface. */ function instanceOfTelemetryResponseModel(value) { if (!('telemetryLevel' in value) || value['telemetryLevel'] === undefined) return false; return true; } function TelemetryResponseModelFromJSON(json) { return TelemetryResponseModelFromJSONTyped(json, false); } function TelemetryResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'telemetryLevel': (0, TelemetryLevelModel_1.TelemetryLevelModelFromJSON)(json['telemetryLevel']), }; } function TelemetryResponseModelToJSON(json) { return TelemetryResponseModelToJSONTyped(json, false); } function TelemetryResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'telemetryLevel': (0, TelemetryLevelModel_1.TelemetryLevelModelToJSON)(value['telemetryLevel']), }; }