UNPKG

umbraco-management-api-client

Version:

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

55 lines (54 loc) 1.82 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.instanceOfDocumentUrlInfoModel = instanceOfDocumentUrlInfoModel; exports.DocumentUrlInfoModelFromJSON = DocumentUrlInfoModelFromJSON; exports.DocumentUrlInfoModelFromJSONTyped = DocumentUrlInfoModelFromJSONTyped; exports.DocumentUrlInfoModelToJSON = DocumentUrlInfoModelToJSON; exports.DocumentUrlInfoModelToJSONTyped = DocumentUrlInfoModelToJSONTyped; /** * Check if a given object implements the DocumentUrlInfoModel interface. */ function instanceOfDocumentUrlInfoModel(value) { if (!('culture' in value) || value['culture'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } function DocumentUrlInfoModelFromJSON(json) { return DocumentUrlInfoModelFromJSONTyped(json, false); } function DocumentUrlInfoModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'culture': json['culture'], 'url': json['url'], }; } function DocumentUrlInfoModelToJSON(json) { return DocumentUrlInfoModelToJSONTyped(json, false); } function DocumentUrlInfoModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'culture': value['culture'], 'url': value['url'], }; }