UNPKG

umbraco-management-api-client

Version:

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

60 lines (59 loc) 2.65 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.instanceOfTemplateQueryExecuteFilterPresentationModel = instanceOfTemplateQueryExecuteFilterPresentationModel; exports.TemplateQueryExecuteFilterPresentationModelFromJSON = TemplateQueryExecuteFilterPresentationModelFromJSON; exports.TemplateQueryExecuteFilterPresentationModelFromJSONTyped = TemplateQueryExecuteFilterPresentationModelFromJSONTyped; exports.TemplateQueryExecuteFilterPresentationModelToJSON = TemplateQueryExecuteFilterPresentationModelToJSON; exports.TemplateQueryExecuteFilterPresentationModelToJSONTyped = TemplateQueryExecuteFilterPresentationModelToJSONTyped; const OperatorModel_1 = require("./OperatorModel"); /** * Check if a given object implements the TemplateQueryExecuteFilterPresentationModel interface. */ function instanceOfTemplateQueryExecuteFilterPresentationModel(value) { if (!('propertyAlias' in value) || value['propertyAlias'] === undefined) return false; if (!('constraintValue' in value) || value['constraintValue'] === undefined) return false; if (!('operator' in value) || value['operator'] === undefined) return false; return true; } function TemplateQueryExecuteFilterPresentationModelFromJSON(json) { return TemplateQueryExecuteFilterPresentationModelFromJSONTyped(json, false); } function TemplateQueryExecuteFilterPresentationModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'propertyAlias': json['propertyAlias'], 'constraintValue': json['constraintValue'], 'operator': (0, OperatorModel_1.OperatorModelFromJSON)(json['operator']), }; } function TemplateQueryExecuteFilterPresentationModelToJSON(json) { return TemplateQueryExecuteFilterPresentationModelToJSONTyped(json, false); } function TemplateQueryExecuteFilterPresentationModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'propertyAlias': value['propertyAlias'], 'constraintValue': value['constraintValue'], 'operator': (0, OperatorModel_1.OperatorModelToJSON)(value['operator']), }; }