UNPKG

umbraco-management-api-client

Version:

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

56 lines (55 loc) 2.38 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.instanceOfHealthCheckGroupPresentationModel = instanceOfHealthCheckGroupPresentationModel; exports.HealthCheckGroupPresentationModelFromJSON = HealthCheckGroupPresentationModelFromJSON; exports.HealthCheckGroupPresentationModelFromJSONTyped = HealthCheckGroupPresentationModelFromJSONTyped; exports.HealthCheckGroupPresentationModelToJSON = HealthCheckGroupPresentationModelToJSON; exports.HealthCheckGroupPresentationModelToJSONTyped = HealthCheckGroupPresentationModelToJSONTyped; const HealthCheckGroupPresentationModelChecksInner_1 = require("./HealthCheckGroupPresentationModelChecksInner"); /** * Check if a given object implements the HealthCheckGroupPresentationModel interface. */ function instanceOfHealthCheckGroupPresentationModel(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('checks' in value) || value['checks'] === undefined) return false; return true; } function HealthCheckGroupPresentationModelFromJSON(json) { return HealthCheckGroupPresentationModelFromJSONTyped(json, false); } function HealthCheckGroupPresentationModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'checks': (json['checks'].map(HealthCheckGroupPresentationModelChecksInner_1.HealthCheckGroupPresentationModelChecksInnerFromJSON)), }; } function HealthCheckGroupPresentationModelToJSON(json) { return HealthCheckGroupPresentationModelToJSONTyped(json, false); } function HealthCheckGroupPresentationModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'checks': (value['checks'].map(HealthCheckGroupPresentationModelChecksInner_1.HealthCheckGroupPresentationModelChecksInnerToJSON)), }; }