umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
59 lines (58 loc) • 2.25 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.instanceOfDocumentNotificationResponseModel = instanceOfDocumentNotificationResponseModel;
exports.DocumentNotificationResponseModelFromJSON = DocumentNotificationResponseModelFromJSON;
exports.DocumentNotificationResponseModelFromJSONTyped = DocumentNotificationResponseModelFromJSONTyped;
exports.DocumentNotificationResponseModelToJSON = DocumentNotificationResponseModelToJSON;
exports.DocumentNotificationResponseModelToJSONTyped = DocumentNotificationResponseModelToJSONTyped;
/**
* Check if a given object implements the DocumentNotificationResponseModel interface.
*/
function instanceOfDocumentNotificationResponseModel(value) {
if (!('actionId' in value) || value['actionId'] === undefined)
return false;
if (!('alias' in value) || value['alias'] === undefined)
return false;
if (!('subscribed' in value) || value['subscribed'] === undefined)
return false;
return true;
}
function DocumentNotificationResponseModelFromJSON(json) {
return DocumentNotificationResponseModelFromJSONTyped(json, false);
}
function DocumentNotificationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'actionId': json['actionId'],
'alias': json['alias'],
'subscribed': json['subscribed'],
};
}
function DocumentNotificationResponseModelToJSON(json) {
return DocumentNotificationResponseModelToJSONTyped(json, false);
}
function DocumentNotificationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'actionId': value['actionId'],
'alias': value['alias'],
'subscribed': value['subscribed'],
};
}