UNPKG

umbraco-management-api-client

Version:

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

59 lines (58 loc) 2.06 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.instanceOfManifestResponseModel = instanceOfManifestResponseModel; exports.ManifestResponseModelFromJSON = ManifestResponseModelFromJSON; exports.ManifestResponseModelFromJSONTyped = ManifestResponseModelFromJSONTyped; exports.ManifestResponseModelToJSON = ManifestResponseModelToJSON; exports.ManifestResponseModelToJSONTyped = ManifestResponseModelToJSONTyped; /** * Check if a given object implements the ManifestResponseModel interface. */ function instanceOfManifestResponseModel(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('extensions' in value) || value['extensions'] === undefined) return false; return true; } function ManifestResponseModelFromJSON(json) { return ManifestResponseModelFromJSONTyped(json, false); } function ManifestResponseModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'id': json['id'] == null ? undefined : json['id'], 'version': json['version'] == null ? undefined : json['version'], 'extensions': json['extensions'], }; } function ManifestResponseModelToJSON(json) { return ManifestResponseModelToJSONTyped(json, false); } function ManifestResponseModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'id': value['id'], 'version': value['version'], 'extensions': value['extensions'], }; }