umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
51 lines (50 loc) • 2.27 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.DocumentTypeResponseModelPropertiesInnerFromJSON = DocumentTypeResponseModelPropertiesInnerFromJSON;
exports.DocumentTypeResponseModelPropertiesInnerFromJSONTyped = DocumentTypeResponseModelPropertiesInnerFromJSONTyped;
exports.DocumentTypeResponseModelPropertiesInnerToJSON = DocumentTypeResponseModelPropertiesInnerToJSON;
exports.DocumentTypeResponseModelPropertiesInnerToJSONTyped = DocumentTypeResponseModelPropertiesInnerToJSONTyped;
const DocumentTypePropertyTypeResponseModel_1 = require("./DocumentTypePropertyTypeResponseModel");
function DocumentTypeResponseModelPropertiesInnerFromJSON(json) {
return DocumentTypeResponseModelPropertiesInnerFromJSONTyped(json, false);
}
function DocumentTypeResponseModelPropertiesInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
if (typeof json !== 'object') {
return json;
}
if ((0, DocumentTypePropertyTypeResponseModel_1.instanceOfDocumentTypePropertyTypeResponseModel)(json)) {
return (0, DocumentTypePropertyTypeResponseModel_1.DocumentTypePropertyTypeResponseModelFromJSONTyped)(json, true);
}
return {};
}
function DocumentTypeResponseModelPropertiesInnerToJSON(json) {
return DocumentTypeResponseModelPropertiesInnerToJSONTyped(json, false);
}
function DocumentTypeResponseModelPropertiesInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
if (typeof value !== 'object') {
return value;
}
if ((0, DocumentTypePropertyTypeResponseModel_1.instanceOfDocumentTypePropertyTypeResponseModel)(value)) {
return (0, DocumentTypePropertyTypeResponseModel_1.DocumentTypePropertyTypeResponseModelToJSON)(value);
}
return {};
}