UNPKG

umbraco-management-api-client

Version:

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

67 lines (66 loc) 2.42 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.instanceOfLogLevelCountsReponseModel = instanceOfLogLevelCountsReponseModel; exports.LogLevelCountsReponseModelFromJSON = LogLevelCountsReponseModelFromJSON; exports.LogLevelCountsReponseModelFromJSONTyped = LogLevelCountsReponseModelFromJSONTyped; exports.LogLevelCountsReponseModelToJSON = LogLevelCountsReponseModelToJSON; exports.LogLevelCountsReponseModelToJSONTyped = LogLevelCountsReponseModelToJSONTyped; /** * Check if a given object implements the LogLevelCountsReponseModel interface. */ function instanceOfLogLevelCountsReponseModel(value) { if (!('information' in value) || value['information'] === undefined) return false; if (!('debug' in value) || value['debug'] === undefined) return false; if (!('warning' in value) || value['warning'] === undefined) return false; if (!('error' in value) || value['error'] === undefined) return false; if (!('fatal' in value) || value['fatal'] === undefined) return false; return true; } function LogLevelCountsReponseModelFromJSON(json) { return LogLevelCountsReponseModelFromJSONTyped(json, false); } function LogLevelCountsReponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'information': json['information'], 'debug': json['debug'], 'warning': json['warning'], 'error': json['error'], 'fatal': json['fatal'], }; } function LogLevelCountsReponseModelToJSON(json) { return LogLevelCountsReponseModelToJSONTyped(json, false); } function LogLevelCountsReponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'information': value['information'], 'debug': value['debug'], 'warning': value['warning'], 'error': value['error'], 'fatal': value['fatal'], }; }