UNPKG

umbraco-management-api-client

Version:

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

56 lines (55 loc) 2.21 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.instanceOfDocumentUrlInfoResponseModel = instanceOfDocumentUrlInfoResponseModel; exports.DocumentUrlInfoResponseModelFromJSON = DocumentUrlInfoResponseModelFromJSON; exports.DocumentUrlInfoResponseModelFromJSONTyped = DocumentUrlInfoResponseModelFromJSONTyped; exports.DocumentUrlInfoResponseModelToJSON = DocumentUrlInfoResponseModelToJSON; exports.DocumentUrlInfoResponseModelToJSONTyped = DocumentUrlInfoResponseModelToJSONTyped; const DocumentResponseModelUrlsInner_1 = require("./DocumentResponseModelUrlsInner"); /** * Check if a given object implements the DocumentUrlInfoResponseModel interface. */ function instanceOfDocumentUrlInfoResponseModel(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('urlInfos' in value) || value['urlInfos'] === undefined) return false; return true; } function DocumentUrlInfoResponseModelFromJSON(json) { return DocumentUrlInfoResponseModelFromJSONTyped(json, false); } function DocumentUrlInfoResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'urlInfos': (json['urlInfos'].map(DocumentResponseModelUrlsInner_1.DocumentResponseModelUrlsInnerFromJSON)), }; } function DocumentUrlInfoResponseModelToJSON(json) { return DocumentUrlInfoResponseModelToJSONTyped(json, false); } function DocumentUrlInfoResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'urlInfos': (value['urlInfos'].map(DocumentResponseModelUrlsInner_1.DocumentResponseModelUrlsInnerToJSON)), }; }