UNPKG

umbraco-management-api-client

Version:

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

49 lines (48 loc) 1.87 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.instanceOfUnpublishDocumentRequestModel = instanceOfUnpublishDocumentRequestModel; exports.UnpublishDocumentRequestModelFromJSON = UnpublishDocumentRequestModelFromJSON; exports.UnpublishDocumentRequestModelFromJSONTyped = UnpublishDocumentRequestModelFromJSONTyped; exports.UnpublishDocumentRequestModelToJSON = UnpublishDocumentRequestModelToJSON; exports.UnpublishDocumentRequestModelToJSONTyped = UnpublishDocumentRequestModelToJSONTyped; /** * Check if a given object implements the UnpublishDocumentRequestModel interface. */ function instanceOfUnpublishDocumentRequestModel(value) { return true; } function UnpublishDocumentRequestModelFromJSON(json) { return UnpublishDocumentRequestModelFromJSONTyped(json, false); } function UnpublishDocumentRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'cultures': json['cultures'] == null ? undefined : new Set(json['cultures']), }; } function UnpublishDocumentRequestModelToJSON(json) { return UnpublishDocumentRequestModelToJSONTyped(json, false); } function UnpublishDocumentRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'cultures': value['cultures'] == null ? undefined : Array.from(value['cultures']), }; }