UNPKG

umbraco-management-api-client

Version:

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

66 lines (65 loc) 3.24 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.instanceOfDocumentBlueprintResponseModel = instanceOfDocumentBlueprintResponseModel; exports.DocumentBlueprintResponseModelFromJSON = DocumentBlueprintResponseModelFromJSON; exports.DocumentBlueprintResponseModelFromJSONTyped = DocumentBlueprintResponseModelFromJSONTyped; exports.DocumentBlueprintResponseModelToJSON = DocumentBlueprintResponseModelToJSON; exports.DocumentBlueprintResponseModelToJSONTyped = DocumentBlueprintResponseModelToJSONTyped; const DocumentBlueprintResponseModelVariantsInner_1 = require("./DocumentBlueprintResponseModelVariantsInner"); const DocumentTypeReferenceResponseModel_1 = require("./DocumentTypeReferenceResponseModel"); const DocumentBlueprintResponseModelValuesInner_1 = require("./DocumentBlueprintResponseModelValuesInner"); /** * Check if a given object implements the DocumentBlueprintResponseModel interface. */ function instanceOfDocumentBlueprintResponseModel(value) { if (!('values' in value) || value['values'] === undefined) return false; if (!('variants' in value) || value['variants'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('documentType' in value) || value['documentType'] === undefined) return false; return true; } function DocumentBlueprintResponseModelFromJSON(json) { return DocumentBlueprintResponseModelFromJSONTyped(json, false); } function DocumentBlueprintResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'values': (json['values'].map(DocumentBlueprintResponseModelValuesInner_1.DocumentBlueprintResponseModelValuesInnerFromJSON)), 'variants': (json['variants'].map(DocumentBlueprintResponseModelVariantsInner_1.DocumentBlueprintResponseModelVariantsInnerFromJSON)), 'id': json['id'], 'documentType': (0, DocumentTypeReferenceResponseModel_1.DocumentTypeReferenceResponseModelFromJSON)(json['documentType']), }; } function DocumentBlueprintResponseModelToJSON(json) { return DocumentBlueprintResponseModelToJSONTyped(json, false); } function DocumentBlueprintResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'values': (value['values'].map(DocumentBlueprintResponseModelValuesInner_1.DocumentBlueprintResponseModelValuesInnerToJSON)), 'variants': (value['variants'].map(DocumentBlueprintResponseModelVariantsInner_1.DocumentBlueprintResponseModelVariantsInnerToJSON)), 'id': value['id'], 'documentType': (0, DocumentTypeReferenceResponseModel_1.DocumentTypeReferenceResponseModelToJSON)(value['documentType']), }; }