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