umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
61 lines (60 loc) • 2.54 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.instanceOfDocumentTypeCompositionRequestModel = instanceOfDocumentTypeCompositionRequestModel;
exports.DocumentTypeCompositionRequestModelFromJSON = DocumentTypeCompositionRequestModelFromJSON;
exports.DocumentTypeCompositionRequestModelFromJSONTyped = DocumentTypeCompositionRequestModelFromJSONTyped;
exports.DocumentTypeCompositionRequestModelToJSON = DocumentTypeCompositionRequestModelToJSON;
exports.DocumentTypeCompositionRequestModelToJSONTyped = DocumentTypeCompositionRequestModelToJSONTyped;
/**
* Check if a given object implements the DocumentTypeCompositionRequestModel interface.
*/
function instanceOfDocumentTypeCompositionRequestModel(value) {
if (!('currentPropertyAliases' in value) || value['currentPropertyAliases'] === undefined)
return false;
if (!('currentCompositeIds' in value) || value['currentCompositeIds'] === undefined)
return false;
if (!('isElement' in value) || value['isElement'] === undefined)
return false;
return true;
}
function DocumentTypeCompositionRequestModelFromJSON(json) {
return DocumentTypeCompositionRequestModelFromJSONTyped(json, false);
}
function DocumentTypeCompositionRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'currentPropertyAliases': json['currentPropertyAliases'],
'currentCompositeIds': json['currentCompositeIds'],
'isElement': json['isElement'],
};
}
function DocumentTypeCompositionRequestModelToJSON(json) {
return DocumentTypeCompositionRequestModelToJSONTyped(json, false);
}
function DocumentTypeCompositionRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'currentPropertyAliases': value['currentPropertyAliases'],
'currentCompositeIds': value['currentCompositeIds'],
'isElement': value['isElement'],
};
}