umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
57 lines (56 loc) • 2.66 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.instanceOfDataTypeReferenceResponseModel = instanceOfDataTypeReferenceResponseModel;
exports.DataTypeReferenceResponseModelFromJSON = DataTypeReferenceResponseModelFromJSON;
exports.DataTypeReferenceResponseModelFromJSONTyped = DataTypeReferenceResponseModelFromJSONTyped;
exports.DataTypeReferenceResponseModelToJSON = DataTypeReferenceResponseModelToJSON;
exports.DataTypeReferenceResponseModelToJSONTyped = DataTypeReferenceResponseModelToJSONTyped;
const DataTypeContentTypeReferenceModel_1 = require("./DataTypeContentTypeReferenceModel");
const DataTypeReferenceResponseModelPropertiesInner_1 = require("./DataTypeReferenceResponseModelPropertiesInner");
/**
* Check if a given object implements the DataTypeReferenceResponseModel interface.
*/
function instanceOfDataTypeReferenceResponseModel(value) {
if (!('contentType' in value) || value['contentType'] === undefined)
return false;
if (!('properties' in value) || value['properties'] === undefined)
return false;
return true;
}
function DataTypeReferenceResponseModelFromJSON(json) {
return DataTypeReferenceResponseModelFromJSONTyped(json, false);
}
function DataTypeReferenceResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'contentType': (0, DataTypeContentTypeReferenceModel_1.DataTypeContentTypeReferenceModelFromJSON)(json['contentType']),
'properties': (json['properties'].map(DataTypeReferenceResponseModelPropertiesInner_1.DataTypeReferenceResponseModelPropertiesInnerFromJSON)),
};
}
function DataTypeReferenceResponseModelToJSON(json) {
return DataTypeReferenceResponseModelToJSONTyped(json, false);
}
function DataTypeReferenceResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'contentType': (0, DataTypeContentTypeReferenceModel_1.DataTypeContentTypeReferenceModelToJSON)(value['contentType']),
'properties': (value['properties'].map(DataTypeReferenceResponseModelPropertiesInner_1.DataTypeReferenceResponseModelPropertiesInnerToJSON)),
};
}