UNPKG

umbraco-management-api-client

Version:

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

64 lines (63 loc) 2.9 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.instanceOfUpdateDocumentTypePropertyTypeContainerRequestModel = instanceOfUpdateDocumentTypePropertyTypeContainerRequestModel; exports.UpdateDocumentTypePropertyTypeContainerRequestModelFromJSON = UpdateDocumentTypePropertyTypeContainerRequestModelFromJSON; exports.UpdateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped = UpdateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped; exports.UpdateDocumentTypePropertyTypeContainerRequestModelToJSON = UpdateDocumentTypePropertyTypeContainerRequestModelToJSON; exports.UpdateDocumentTypePropertyTypeContainerRequestModelToJSONTyped = UpdateDocumentTypePropertyTypeContainerRequestModelToJSONTyped; const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the UpdateDocumentTypePropertyTypeContainerRequestModel interface. */ function instanceOfUpdateDocumentTypePropertyTypeContainerRequestModel(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('sortOrder' in value) || value['sortOrder'] === undefined) return false; return true; } function UpdateDocumentTypePropertyTypeContainerRequestModelFromJSON(json) { return UpdateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped(json, false); } function UpdateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'parent': json['parent'] == null ? undefined : (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['parent']), 'name': json['name'] == null ? undefined : json['name'], 'type': json['type'], 'sortOrder': json['sortOrder'], }; } function UpdateDocumentTypePropertyTypeContainerRequestModelToJSON(json) { return UpdateDocumentTypePropertyTypeContainerRequestModelToJSONTyped(json, false); } function UpdateDocumentTypePropertyTypeContainerRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'parent': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['parent']), 'name': value['name'], 'type': value['type'], 'sortOrder': value['sortOrder'], }; }