umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
56 lines (55 loc) • 2.2 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.instanceOfConsentLevelPresentationModel = instanceOfConsentLevelPresentationModel;
exports.ConsentLevelPresentationModelFromJSON = ConsentLevelPresentationModelFromJSON;
exports.ConsentLevelPresentationModelFromJSONTyped = ConsentLevelPresentationModelFromJSONTyped;
exports.ConsentLevelPresentationModelToJSON = ConsentLevelPresentationModelToJSON;
exports.ConsentLevelPresentationModelToJSONTyped = ConsentLevelPresentationModelToJSONTyped;
const TelemetryLevelModel_1 = require("./TelemetryLevelModel");
/**
* Check if a given object implements the ConsentLevelPresentationModel interface.
*/
function instanceOfConsentLevelPresentationModel(value) {
if (!('level' in value) || value['level'] === undefined)
return false;
if (!('description' in value) || value['description'] === undefined)
return false;
return true;
}
function ConsentLevelPresentationModelFromJSON(json) {
return ConsentLevelPresentationModelFromJSONTyped(json, false);
}
function ConsentLevelPresentationModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'level': (0, TelemetryLevelModel_1.TelemetryLevelModelFromJSON)(json['level']),
'description': json['description'],
};
}
function ConsentLevelPresentationModelToJSON(json) {
return ConsentLevelPresentationModelToJSONTyped(json, false);
}
function ConsentLevelPresentationModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'level': (0, TelemetryLevelModel_1.TelemetryLevelModelToJSON)(value['level']),
'description': value['description'],
};
}