UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

58 lines (57 loc) 2.34 kB
"use strict"; /* 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.instanceOfDynamicRootContextRequestModel = instanceOfDynamicRootContextRequestModel; exports.DynamicRootContextRequestModelFromJSON = DynamicRootContextRequestModelFromJSON; exports.DynamicRootContextRequestModelFromJSONTyped = DynamicRootContextRequestModelFromJSONTyped; exports.DynamicRootContextRequestModelToJSON = DynamicRootContextRequestModelToJSON; exports.DynamicRootContextRequestModelToJSONTyped = DynamicRootContextRequestModelToJSONTyped; const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the DynamicRootContextRequestModel interface. */ function instanceOfDynamicRootContextRequestModel(value) { if (!('parent' in value) || value['parent'] === undefined) return false; return true; } function DynamicRootContextRequestModelFromJSON(json) { return DynamicRootContextRequestModelFromJSONTyped(json, false); } function DynamicRootContextRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'parent': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['parent']), 'culture': json['culture'] == null ? undefined : json['culture'], 'segment': json['segment'] == null ? undefined : json['segment'], }; } function DynamicRootContextRequestModelToJSON(json) { return DynamicRootContextRequestModelToJSONTyped(json, false); } function DynamicRootContextRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'parent': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['parent']), 'culture': value['culture'], 'segment': value['segment'], }; }