UNPKG

umbraco-management-api-client

Version:

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

60 lines (59 loc) 2.24 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.instanceOfNotificationHeaderModel = instanceOfNotificationHeaderModel; exports.NotificationHeaderModelFromJSON = NotificationHeaderModelFromJSON; exports.NotificationHeaderModelFromJSONTyped = NotificationHeaderModelFromJSONTyped; exports.NotificationHeaderModelToJSON = NotificationHeaderModelToJSON; exports.NotificationHeaderModelToJSONTyped = NotificationHeaderModelToJSONTyped; const EventMessageTypeModel_1 = require("./EventMessageTypeModel"); /** * Check if a given object implements the NotificationHeaderModel interface. */ function instanceOfNotificationHeaderModel(value) { if (!('message' in value) || value['message'] === undefined) return false; if (!('category' in value) || value['category'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } function NotificationHeaderModelFromJSON(json) { return NotificationHeaderModelFromJSONTyped(json, false); } function NotificationHeaderModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'message': json['message'], 'category': json['category'], 'type': (0, EventMessageTypeModel_1.EventMessageTypeModelFromJSON)(json['type']), }; } function NotificationHeaderModelToJSON(json) { return NotificationHeaderModelToJSONTyped(json, false); } function NotificationHeaderModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'message': value['message'], 'category': value['category'], 'type': (0, EventMessageTypeModel_1.EventMessageTypeModelToJSON)(value['type']), }; }