UNPKG

umbraco-management-api-client

Version:

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

77 lines (76 loc) 3.47 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.instanceOfDocumentTypePropertyTypeReferenceResponseModel = instanceOfDocumentTypePropertyTypeReferenceResponseModel; exports.DocumentTypePropertyTypeReferenceResponseModelFromJSON = DocumentTypePropertyTypeReferenceResponseModelFromJSON; exports.DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped = DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped; exports.DocumentTypePropertyTypeReferenceResponseModelToJSON = DocumentTypePropertyTypeReferenceResponseModelToJSON; exports.DocumentTypePropertyTypeReferenceResponseModelToJSONTyped = DocumentTypePropertyTypeReferenceResponseModelToJSONTyped; const TrackedReferenceDocumentTypeModel_1 = require("./TrackedReferenceDocumentTypeModel"); /** * Check if a given object implements the DocumentTypePropertyTypeReferenceResponseModel interface. */ function instanceOfDocumentTypePropertyTypeReferenceResponseModel(value) { if (!('$type' in value) || value['$type'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('documentType' in value) || value['documentType'] === undefined) return false; return true; } function DocumentTypePropertyTypeReferenceResponseModelFromJSON(json) { return DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped(json, false); } function DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } if (!ignoreDiscriminator) { if (json['$type'] === 'DocumentTypePropertyTypeReferenceResponseModel') { return DocumentTypePropertyTypeReferenceResponseModelFromJSONTyped(json, ignoreDiscriminator); } } return { '$type': json['$type'], 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], 'alias': json['alias'] == null ? undefined : json['alias'], 'documentType': (0, TrackedReferenceDocumentTypeModel_1.TrackedReferenceDocumentTypeModelFromJSON)(json['documentType']), }; } function DocumentTypePropertyTypeReferenceResponseModelToJSON(json) { return DocumentTypePropertyTypeReferenceResponseModelToJSONTyped(json, false); } function DocumentTypePropertyTypeReferenceResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } if (!ignoreDiscriminator) { switch (value['$type']) { case 'DocumentTypePropertyTypeReferenceResponseModel': return DocumentTypePropertyTypeReferenceResponseModelToJSONTyped(value, ignoreDiscriminator); default: return value; } } return { '$type': value['$type'], 'id': value['id'], 'name': value['name'], 'alias': value['alias'], 'documentType': (0, TrackedReferenceDocumentTypeModel_1.TrackedReferenceDocumentTypeModelToJSON)(value['documentType']), }; }