UNPKG

umbraco-management-api-client

Version:

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

54 lines (53 loc) 2.25 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.instanceOfImportDictionaryRequestModel = instanceOfImportDictionaryRequestModel; exports.ImportDictionaryRequestModelFromJSON = ImportDictionaryRequestModelFromJSON; exports.ImportDictionaryRequestModelFromJSONTyped = ImportDictionaryRequestModelFromJSONTyped; exports.ImportDictionaryRequestModelToJSON = ImportDictionaryRequestModelToJSON; exports.ImportDictionaryRequestModelToJSONTyped = ImportDictionaryRequestModelToJSONTyped; const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the ImportDictionaryRequestModel interface. */ function instanceOfImportDictionaryRequestModel(value) { if (!('temporaryFile' in value) || value['temporaryFile'] === undefined) return false; return true; } function ImportDictionaryRequestModelFromJSON(json) { return ImportDictionaryRequestModelFromJSONTyped(json, false); } function ImportDictionaryRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'temporaryFile': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['temporaryFile']), 'parent': json['parent'] == null ? undefined : (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['parent']), }; } function ImportDictionaryRequestModelToJSON(json) { return ImportDictionaryRequestModelToJSONTyped(json, false); } function ImportDictionaryRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'temporaryFile': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['temporaryFile']), 'parent': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['parent']), }; }