umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
57 lines (56 loc) • 2.31 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.instanceOfMediaTypeCompositionRequestModel = instanceOfMediaTypeCompositionRequestModel;
exports.MediaTypeCompositionRequestModelFromJSON = MediaTypeCompositionRequestModelFromJSON;
exports.MediaTypeCompositionRequestModelFromJSONTyped = MediaTypeCompositionRequestModelFromJSONTyped;
exports.MediaTypeCompositionRequestModelToJSON = MediaTypeCompositionRequestModelToJSON;
exports.MediaTypeCompositionRequestModelToJSONTyped = MediaTypeCompositionRequestModelToJSONTyped;
/**
* Check if a given object implements the MediaTypeCompositionRequestModel interface.
*/
function instanceOfMediaTypeCompositionRequestModel(value) {
if (!('currentPropertyAliases' in value) || value['currentPropertyAliases'] === undefined)
return false;
if (!('currentCompositeIds' in value) || value['currentCompositeIds'] === undefined)
return false;
return true;
}
function MediaTypeCompositionRequestModelFromJSON(json) {
return MediaTypeCompositionRequestModelFromJSONTyped(json, false);
}
function MediaTypeCompositionRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'] == null ? undefined : json['id'],
'currentPropertyAliases': json['currentPropertyAliases'],
'currentCompositeIds': json['currentCompositeIds'],
};
}
function MediaTypeCompositionRequestModelToJSON(json) {
return MediaTypeCompositionRequestModelToJSONTyped(json, false);
}
function MediaTypeCompositionRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'currentPropertyAliases': value['currentPropertyAliases'],
'currentCompositeIds': value['currentCompositeIds'],
};
}