UNPKG

umbraco-management-api-client

Version:

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

52 lines (51 loc) 1.97 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.instanceOfServerStatusResponseModel = instanceOfServerStatusResponseModel; exports.ServerStatusResponseModelFromJSON = ServerStatusResponseModelFromJSON; exports.ServerStatusResponseModelFromJSONTyped = ServerStatusResponseModelFromJSONTyped; exports.ServerStatusResponseModelToJSON = ServerStatusResponseModelToJSON; exports.ServerStatusResponseModelToJSONTyped = ServerStatusResponseModelToJSONTyped; const RuntimeLevelModel_1 = require("./RuntimeLevelModel"); /** * Check if a given object implements the ServerStatusResponseModel interface. */ function instanceOfServerStatusResponseModel(value) { if (!('serverStatus' in value) || value['serverStatus'] === undefined) return false; return true; } function ServerStatusResponseModelFromJSON(json) { return ServerStatusResponseModelFromJSONTyped(json, false); } function ServerStatusResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'serverStatus': (0, RuntimeLevelModel_1.RuntimeLevelModelFromJSON)(json['serverStatus']), }; } function ServerStatusResponseModelToJSON(json) { return ServerStatusResponseModelToJSONTyped(json, false); } function ServerStatusResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'serverStatus': (0, RuntimeLevelModel_1.RuntimeLevelModelToJSON)(value['serverStatus']), }; }