umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.38 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.instanceOfTemplateQueryPropertyPresentationModel = instanceOfTemplateQueryPropertyPresentationModel;
exports.TemplateQueryPropertyPresentationModelFromJSON = TemplateQueryPropertyPresentationModelFromJSON;
exports.TemplateQueryPropertyPresentationModelFromJSONTyped = TemplateQueryPropertyPresentationModelFromJSONTyped;
exports.TemplateQueryPropertyPresentationModelToJSON = TemplateQueryPropertyPresentationModelToJSON;
exports.TemplateQueryPropertyPresentationModelToJSONTyped = TemplateQueryPropertyPresentationModelToJSONTyped;
const TemplateQueryPropertyTypeModel_1 = require("./TemplateQueryPropertyTypeModel");
/**
* Check if a given object implements the TemplateQueryPropertyPresentationModel interface.
*/
function instanceOfTemplateQueryPropertyPresentationModel(value) {
if (!('alias' in value) || value['alias'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
return true;
}
function TemplateQueryPropertyPresentationModelFromJSON(json) {
return TemplateQueryPropertyPresentationModelFromJSONTyped(json, false);
}
function TemplateQueryPropertyPresentationModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'alias': json['alias'],
'type': (0, TemplateQueryPropertyTypeModel_1.TemplateQueryPropertyTypeModelFromJSON)(json['type']),
};
}
function TemplateQueryPropertyPresentationModelToJSON(json) {
return TemplateQueryPropertyPresentationModelToJSONTyped(json, false);
}
function TemplateQueryPropertyPresentationModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'alias': value['alias'],
'type': (0, TemplateQueryPropertyTypeModel_1.TemplateQueryPropertyTypeModelToJSON)(value['type']),
};
}