UNPKG

umbraco-management-api-client

Version:

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

93 lines (92 loc) 5.54 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.PagedIReferenceResponseModelItemsInnerFromJSON = PagedIReferenceResponseModelItemsInnerFromJSON; exports.PagedIReferenceResponseModelItemsInnerFromJSONTyped = PagedIReferenceResponseModelItemsInnerFromJSONTyped; exports.PagedIReferenceResponseModelItemsInnerToJSON = PagedIReferenceResponseModelItemsInnerToJSON; exports.PagedIReferenceResponseModelItemsInnerToJSONTyped = PagedIReferenceResponseModelItemsInnerToJSONTyped; const DefaultReferenceResponseModel_1 = require("./DefaultReferenceResponseModel"); const DocumentReferenceResponseModel_1 = require("./DocumentReferenceResponseModel"); const DocumentTypePropertyTypeReferenceResponseModel_1 = require("./DocumentTypePropertyTypeReferenceResponseModel"); const MediaReferenceResponseModel_1 = require("./MediaReferenceResponseModel"); const MediaTypePropertyTypeReferenceResponseModel_1 = require("./MediaTypePropertyTypeReferenceResponseModel"); const MemberReferenceResponseModel_1 = require("./MemberReferenceResponseModel"); const MemberTypePropertyTypeReferenceResponseModel_1 = require("./MemberTypePropertyTypeReferenceResponseModel"); function PagedIReferenceResponseModelItemsInnerFromJSON(json) { return PagedIReferenceResponseModelItemsInnerFromJSONTyped(json, false); } function PagedIReferenceResponseModelItemsInnerFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if ((0, DefaultReferenceResponseModel_1.instanceOfDefaultReferenceResponseModel)(json)) { return (0, DefaultReferenceResponseModel_1.DefaultReferenceResponseModelFromJSONTyped)(json, true); } if ((0, DocumentReferenceResponseModel_1.instanceOfDocumentReferenceResponseModel)(json)) { return (0, DocumentReferenceResponseModel_1.DocumentReferenceResponseModelFromJSONTyped)(json, true); } if ((0, DocumentTypePropertyTypeReferenceResponseModel_1.instanceOfDocumentTypePropertyTypeReferenceResponseModel)(json)) { return (0, DocumentTypePropertyTypeReferenceResponseModel_1.DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped)(json, true); } if ((0, MediaReferenceResponseModel_1.instanceOfMediaReferenceResponseModel)(json)) { return (0, MediaReferenceResponseModel_1.MediaReferenceResponseModelFromJSONTyped)(json, true); } if ((0, MediaTypePropertyTypeReferenceResponseModel_1.instanceOfMediaTypePropertyTypeReferenceResponseModel)(json)) { return (0, MediaTypePropertyTypeReferenceResponseModel_1.MediaTypePropertyTypeReferenceResponseModelFromJSONTyped)(json, true); } if ((0, MemberReferenceResponseModel_1.instanceOfMemberReferenceResponseModel)(json)) { return (0, MemberReferenceResponseModel_1.MemberReferenceResponseModelFromJSONTyped)(json, true); } if ((0, MemberTypePropertyTypeReferenceResponseModel_1.instanceOfMemberTypePropertyTypeReferenceResponseModel)(json)) { return (0, MemberTypePropertyTypeReferenceResponseModel_1.MemberTypePropertyTypeReferenceResponseModelFromJSONTyped)(json, true); } return {}; } function PagedIReferenceResponseModelItemsInnerToJSON(json) { return PagedIReferenceResponseModelItemsInnerToJSONTyped(json, false); } function PagedIReferenceResponseModelItemsInnerToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if ((0, DefaultReferenceResponseModel_1.instanceOfDefaultReferenceResponseModel)(value)) { return (0, DefaultReferenceResponseModel_1.DefaultReferenceResponseModelToJSON)(value); } if ((0, DocumentReferenceResponseModel_1.instanceOfDocumentReferenceResponseModel)(value)) { return (0, DocumentReferenceResponseModel_1.DocumentReferenceResponseModelToJSON)(value); } if ((0, DocumentTypePropertyTypeReferenceResponseModel_1.instanceOfDocumentTypePropertyTypeReferenceResponseModel)(value)) { return (0, DocumentTypePropertyTypeReferenceResponseModel_1.DocumentTypePropertyTypeReferenceResponseModelToJSON)(value); } if ((0, MediaReferenceResponseModel_1.instanceOfMediaReferenceResponseModel)(value)) { return (0, MediaReferenceResponseModel_1.MediaReferenceResponseModelToJSON)(value); } if ((0, MediaTypePropertyTypeReferenceResponseModel_1.instanceOfMediaTypePropertyTypeReferenceResponseModel)(value)) { return (0, MediaTypePropertyTypeReferenceResponseModel_1.MediaTypePropertyTypeReferenceResponseModelToJSON)(value); } if ((0, MemberReferenceResponseModel_1.instanceOfMemberReferenceResponseModel)(value)) { return (0, MemberReferenceResponseModel_1.MemberReferenceResponseModelToJSON)(value); } if ((0, MemberTypePropertyTypeReferenceResponseModel_1.instanceOfMemberTypePropertyTypeReferenceResponseModel)(value)) { return (0, MemberTypePropertyTypeReferenceResponseModel_1.MemberTypePropertyTypeReferenceResponseModelToJSON)(value); } return {}; }