umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
51 lines (50 loc) • 2.29 kB
JavaScript
;
/* 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.GetDocumentByIdNotifications200ResponseInnerFromJSON = GetDocumentByIdNotifications200ResponseInnerFromJSON;
exports.GetDocumentByIdNotifications200ResponseInnerFromJSONTyped = GetDocumentByIdNotifications200ResponseInnerFromJSONTyped;
exports.GetDocumentByIdNotifications200ResponseInnerToJSON = GetDocumentByIdNotifications200ResponseInnerToJSON;
exports.GetDocumentByIdNotifications200ResponseInnerToJSONTyped = GetDocumentByIdNotifications200ResponseInnerToJSONTyped;
const DocumentNotificationResponseModel_1 = require("./DocumentNotificationResponseModel");
function GetDocumentByIdNotifications200ResponseInnerFromJSON(json) {
return GetDocumentByIdNotifications200ResponseInnerFromJSONTyped(json, false);
}
function GetDocumentByIdNotifications200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
if (typeof json !== 'object') {
return json;
}
if ((0, DocumentNotificationResponseModel_1.instanceOfDocumentNotificationResponseModel)(json)) {
return (0, DocumentNotificationResponseModel_1.DocumentNotificationResponseModelFromJSONTyped)(json, true);
}
return {};
}
function GetDocumentByIdNotifications200ResponseInnerToJSON(json) {
return GetDocumentByIdNotifications200ResponseInnerToJSONTyped(json, false);
}
function GetDocumentByIdNotifications200ResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
if (typeof value !== 'object') {
return value;
}
if ((0, DocumentNotificationResponseModel_1.instanceOfDocumentNotificationResponseModel)(value)) {
return (0, DocumentNotificationResponseModel_1.DocumentNotificationResponseModelToJSON)(value);
}
return {};
}