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.instanceOfCreateDocumentTypePropertyTypeContainerRequestModel = instanceOfCreateDocumentTypePropertyTypeContainerRequestModel; exports.CreateDocumentTypePropertyTypeContainerRequestModelFromJSON = CreateDocumentTypePropertyTypeContainerRequestModelFromJSON; exports.CreateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped = CreateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped; exports.CreateDocumentTypePropertyTypeContainerRequestModelToJSON = CreateDocumentTypePropertyTypeContainerRequestModelToJSON; exports.CreateDocumentTypePropertyTypeContainerRequestModelToJSONTyped = CreateDocumentTypePropertyTypeContainerRequestModelToJSONTyped; const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the CreateDocumentTypePropertyTypeContainerRequestModel interface. */ function instanceOfCreateDocumentTypePropertyTypeContainerRequestModel(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 CreateDocumentTypePropertyTypeContainerRequestModelFromJSON(json) { return CreateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped(json, false); } function CreateDocumentTypePropertyTypeContainerRequestModelFromJSONTyped(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 CreateDocumentTypePropertyTypeContainerRequestModelToJSON(json) { return CreateDocumentTypePropertyTypeContainerRequestModelToJSONTyped(json, false); } function CreateDocumentTypePropertyTypeContainerRequestModelToJSONTyped(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'], }; }