UNPKG

umbraco-management-api-client

Version:

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

57 lines (56 loc) 2.42 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.instanceOfDocumentTypeCompositionModel = instanceOfDocumentTypeCompositionModel; exports.DocumentTypeCompositionModelFromJSON = DocumentTypeCompositionModelFromJSON; exports.DocumentTypeCompositionModelFromJSONTyped = DocumentTypeCompositionModelFromJSONTyped; exports.DocumentTypeCompositionModelToJSON = DocumentTypeCompositionModelToJSON; exports.DocumentTypeCompositionModelToJSONTyped = DocumentTypeCompositionModelToJSONTyped; const CompositionTypeModel_1 = require("./CompositionTypeModel"); const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the DocumentTypeCompositionModel interface. */ function instanceOfDocumentTypeCompositionModel(value) { if (!('documentType' in value) || value['documentType'] === undefined) return false; if (!('compositionType' in value) || value['compositionType'] === undefined) return false; return true; } function DocumentTypeCompositionModelFromJSON(json) { return DocumentTypeCompositionModelFromJSONTyped(json, false); } function DocumentTypeCompositionModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'documentType': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['documentType']), 'compositionType': (0, CompositionTypeModel_1.CompositionTypeModelFromJSON)(json['compositionType']), }; } function DocumentTypeCompositionModelToJSON(json) { return DocumentTypeCompositionModelToJSONTyped(json, false); } function DocumentTypeCompositionModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'documentType': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['documentType']), 'compositionType': (0, CompositionTypeModel_1.CompositionTypeModelToJSON)(value['compositionType']), }; }