umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
52 lines (51 loc) • 1.97 kB
JavaScript
;
/* 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.instanceOfImportMediaTypeRequestModel = instanceOfImportMediaTypeRequestModel;
exports.ImportMediaTypeRequestModelFromJSON = ImportMediaTypeRequestModelFromJSON;
exports.ImportMediaTypeRequestModelFromJSONTyped = ImportMediaTypeRequestModelFromJSONTyped;
exports.ImportMediaTypeRequestModelToJSON = ImportMediaTypeRequestModelToJSON;
exports.ImportMediaTypeRequestModelToJSONTyped = ImportMediaTypeRequestModelToJSONTyped;
const ReferenceByIdModel_1 = require("./ReferenceByIdModel");
/**
* Check if a given object implements the ImportMediaTypeRequestModel interface.
*/
function instanceOfImportMediaTypeRequestModel(value) {
if (!('file' in value) || value['file'] === undefined)
return false;
return true;
}
function ImportMediaTypeRequestModelFromJSON(json) {
return ImportMediaTypeRequestModelFromJSONTyped(json, false);
}
function ImportMediaTypeRequestModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'file': (0, ReferenceByIdModel_1.ReferenceByIdModelFromJSON)(json['file']),
};
}
function ImportMediaTypeRequestModelToJSON(json) {
return ImportMediaTypeRequestModelToJSONTyped(json, false);
}
function ImportMediaTypeRequestModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'file': (0, ReferenceByIdModel_1.ReferenceByIdModelToJSON)(value['file']),
};
}