umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
51 lines (50 loc) • 2.13 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.PagedAllowedDocumentTypeModelItemsInnerFromJSON = PagedAllowedDocumentTypeModelItemsInnerFromJSON;
exports.PagedAllowedDocumentTypeModelItemsInnerFromJSONTyped = PagedAllowedDocumentTypeModelItemsInnerFromJSONTyped;
exports.PagedAllowedDocumentTypeModelItemsInnerToJSON = PagedAllowedDocumentTypeModelItemsInnerToJSON;
exports.PagedAllowedDocumentTypeModelItemsInnerToJSONTyped = PagedAllowedDocumentTypeModelItemsInnerToJSONTyped;
const AllowedDocumentTypeModel_1 = require("./AllowedDocumentTypeModel");
function PagedAllowedDocumentTypeModelItemsInnerFromJSON(json) {
return PagedAllowedDocumentTypeModelItemsInnerFromJSONTyped(json, false);
}
function PagedAllowedDocumentTypeModelItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
if (typeof json !== 'object') {
return json;
}
if ((0, AllowedDocumentTypeModel_1.instanceOfAllowedDocumentTypeModel)(json)) {
return (0, AllowedDocumentTypeModel_1.AllowedDocumentTypeModelFromJSONTyped)(json, true);
}
return {};
}
function PagedAllowedDocumentTypeModelItemsInnerToJSON(json) {
return PagedAllowedDocumentTypeModelItemsInnerToJSONTyped(json, false);
}
function PagedAllowedDocumentTypeModelItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
if (typeof value !== 'object') {
return value;
}
if ((0, AllowedDocumentTypeModel_1.instanceOfAllowedDocumentTypeModel)(value)) {
return (0, AllowedDocumentTypeModel_1.AllowedDocumentTypeModelToJSON)(value);
}
return {};
}