umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
59 lines (58 loc) • 2.06 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.instanceOfUpgradeCheckResponseModel = instanceOfUpgradeCheckResponseModel;
exports.UpgradeCheckResponseModelFromJSON = UpgradeCheckResponseModelFromJSON;
exports.UpgradeCheckResponseModelFromJSONTyped = UpgradeCheckResponseModelFromJSONTyped;
exports.UpgradeCheckResponseModelToJSON = UpgradeCheckResponseModelToJSON;
exports.UpgradeCheckResponseModelToJSONTyped = UpgradeCheckResponseModelToJSONTyped;
/**
* Check if a given object implements the UpgradeCheckResponseModel interface.
*/
function instanceOfUpgradeCheckResponseModel(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('comment' in value) || value['comment'] === undefined)
return false;
if (!('url' in value) || value['url'] === undefined)
return false;
return true;
}
function UpgradeCheckResponseModelFromJSON(json) {
return UpgradeCheckResponseModelFromJSONTyped(json, false);
}
function UpgradeCheckResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'],
'comment': json['comment'],
'url': json['url'],
};
}
function UpgradeCheckResponseModelToJSON(json) {
return UpgradeCheckResponseModelToJSONTyped(json, false);
}
function UpgradeCheckResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'comment': value['comment'],
'url': value['url'],
};
}