UNPKG

umbraco-management-api-client

Version:

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

52 lines (51 loc) 2.02 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.instanceOfImportDocumentTypeRequestModel = instanceOfImportDocumentTypeRequestModel; exports.ImportDocumentTypeRequestModelFromJSON = ImportDocumentTypeRequestModelFromJSON; exports.ImportDocumentTypeRequestModelFromJSONTyped = ImportDocumentTypeRequestModelFromJSONTyped; exports.ImportDocumentTypeRequestModelToJSON = ImportDocumentTypeRequestModelToJSON; exports.ImportDocumentTypeRequestModelToJSONTyped = ImportDocumentTypeRequestModelToJSONTyped; const ReferenceByIdModel_1 = require("./ReferenceByIdModel"); /** * Check if a given object implements the ImportDocumentTypeRequestModel interface. */ function instanceOfImportDocumentTypeRequestModel(value) { if (!('file' in value) || value['file'] === undefined) return false; return true; } function ImportDocumentTypeRequestModelFromJSON(json) { return ImportDocumentTypeRequestModelFromJSONTyped(json, false); } function ImportDocumentTypeRequestModelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'file': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['file']), }; } function ImportDocumentTypeRequestModelToJSON(json) { return ImportDocumentTypeRequestModelToJSONTyped(json, false); } function ImportDocumentTypeRequestModelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'file': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['file']), }; }