UNPKG

umbraco-management-api-client

Version:

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

52 lines (51 loc) 1.92 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.instanceOfTelemetryRequestModel = instanceOfTelemetryRequestModel; exports.TelemetryRequestModelFromJSON = TelemetryRequestModelFromJSON; exports.TelemetryRequestModelFromJSONTyped = TelemetryRequestModelFromJSONTyped; exports.TelemetryRequestModelToJSON = TelemetryRequestModelToJSON; exports.TelemetryRequestModelToJSONTyped = TelemetryRequestModelToJSONTyped; const TelemetryLevelModel_1 = require("./TelemetryLevelModel"); /** * Check if a given object implements the TelemetryRequestModel interface. */ function instanceOfTelemetryRequestModel(value) { if (!('telemetryLevel' in value) || value['telemetryLevel'] === undefined) return false; return true; } function TelemetryRequestModelFromJSON(json) { return TelemetryRequestModelFromJSONTyped(json, false); } function TelemetryRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'telemetryLevel': (0, TelemetryLevelModel_1.TelemetryLevelModelFromJSON)(json['telemetryLevel']), }; } function TelemetryRequestModelToJSON(json) { return TelemetryRequestModelToJSONTyped(json, false); } function TelemetryRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'telemetryLevel': (0, TelemetryLevelModel_1.TelemetryLevelModelToJSON)(value['telemetryLevel']), }; }