umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
64 lines (63 loc) • 2.94 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.instanceOfDocumentTypeConfigurationResponseModel = instanceOfDocumentTypeConfigurationResponseModel;
exports.DocumentTypeConfigurationResponseModelFromJSON = DocumentTypeConfigurationResponseModelFromJSON;
exports.DocumentTypeConfigurationResponseModelFromJSONTyped = DocumentTypeConfigurationResponseModelFromJSONTyped;
exports.DocumentTypeConfigurationResponseModelToJSON = DocumentTypeConfigurationResponseModelToJSON;
exports.DocumentTypeConfigurationResponseModelToJSONTyped = DocumentTypeConfigurationResponseModelToJSONTyped;
const DataTypeChangeModeModel_1 = require("./DataTypeChangeModeModel");
/**
* Check if a given object implements the DocumentTypeConfigurationResponseModel interface.
*/
function instanceOfDocumentTypeConfigurationResponseModel(value) {
if (!('dataTypesCanBeChanged' in value) || value['dataTypesCanBeChanged'] === undefined)
return false;
if (!('disableTemplates' in value) || value['disableTemplates'] === undefined)
return false;
if (!('useSegments' in value) || value['useSegments'] === undefined)
return false;
if (!('reservedFieldNames' in value) || value['reservedFieldNames'] === undefined)
return false;
return true;
}
function DocumentTypeConfigurationResponseModelFromJSON(json) {
return DocumentTypeConfigurationResponseModelFromJSONTyped(json, false);
}
function DocumentTypeConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'dataTypesCanBeChanged': (0, DataTypeChangeModeModel_1.DataTypeChangeModeModelFromJSON)(json['dataTypesCanBeChanged']),
'disableTemplates': json['disableTemplates'],
'useSegments': json['useSegments'],
'reservedFieldNames': new Set(json['reservedFieldNames']),
};
}
function DocumentTypeConfigurationResponseModelToJSON(json) {
return DocumentTypeConfigurationResponseModelToJSONTyped(json, false);
}
function DocumentTypeConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'dataTypesCanBeChanged': (0, DataTypeChangeModeModel_1.DataTypeChangeModeModelToJSON)(value['dataTypesCanBeChanged']),
'disableTemplates': value['disableTemplates'],
'useSegments': value['useSegments'],
'reservedFieldNames': Array.from(value['reservedFieldNames']),
};
}