UNPKG

umbraco-management-api-client

Version:

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

55 lines (54 loc) 2.38 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.instanceOfPublishDocumentWithDescendantsRequestModel = instanceOfPublishDocumentWithDescendantsRequestModel; exports.PublishDocumentWithDescendantsRequestModelFromJSON = PublishDocumentWithDescendantsRequestModelFromJSON; exports.PublishDocumentWithDescendantsRequestModelFromJSONTyped = PublishDocumentWithDescendantsRequestModelFromJSONTyped; exports.PublishDocumentWithDescendantsRequestModelToJSON = PublishDocumentWithDescendantsRequestModelToJSON; exports.PublishDocumentWithDescendantsRequestModelToJSONTyped = PublishDocumentWithDescendantsRequestModelToJSONTyped; /** * Check if a given object implements the PublishDocumentWithDescendantsRequestModel interface. */ function instanceOfPublishDocumentWithDescendantsRequestModel(value) { if (!('includeUnpublishedDescendants' in value) || value['includeUnpublishedDescendants'] === undefined) return false; if (!('cultures' in value) || value['cultures'] === undefined) return false; return true; } function PublishDocumentWithDescendantsRequestModelFromJSON(json) { return PublishDocumentWithDescendantsRequestModelFromJSONTyped(json, false); } function PublishDocumentWithDescendantsRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'includeUnpublishedDescendants': json['includeUnpublishedDescendants'], 'cultures': json['cultures'], }; } function PublishDocumentWithDescendantsRequestModelToJSON(json) { return PublishDocumentWithDescendantsRequestModelToJSONTyped(json, false); } function PublishDocumentWithDescendantsRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'includeUnpublishedDescendants': value['includeUnpublishedDescendants'], 'cultures': value['cultures'], }; }