umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
61 lines (60 loc) • 2.81 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.instanceOfTemporaryFileConfigurationResponseModel = instanceOfTemporaryFileConfigurationResponseModel;
exports.TemporaryFileConfigurationResponseModelFromJSON = TemporaryFileConfigurationResponseModelFromJSON;
exports.TemporaryFileConfigurationResponseModelFromJSONTyped = TemporaryFileConfigurationResponseModelFromJSONTyped;
exports.TemporaryFileConfigurationResponseModelToJSON = TemporaryFileConfigurationResponseModelToJSON;
exports.TemporaryFileConfigurationResponseModelToJSONTyped = TemporaryFileConfigurationResponseModelToJSONTyped;
/**
* Check if a given object implements the TemporaryFileConfigurationResponseModel interface.
*/
function instanceOfTemporaryFileConfigurationResponseModel(value) {
if (!('imageFileTypes' in value) || value['imageFileTypes'] === undefined)
return false;
if (!('disallowedUploadedFilesExtensions' in value) || value['disallowedUploadedFilesExtensions'] === undefined)
return false;
if (!('allowedUploadedFileExtensions' in value) || value['allowedUploadedFileExtensions'] === undefined)
return false;
return true;
}
function TemporaryFileConfigurationResponseModelFromJSON(json) {
return TemporaryFileConfigurationResponseModelFromJSONTyped(json, false);
}
function TemporaryFileConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'imageFileTypes': json['imageFileTypes'],
'disallowedUploadedFilesExtensions': json['disallowedUploadedFilesExtensions'],
'allowedUploadedFileExtensions': json['allowedUploadedFileExtensions'],
'maxFileSize': json['maxFileSize'] == null ? undefined : json['maxFileSize'],
};
}
function TemporaryFileConfigurationResponseModelToJSON(json) {
return TemporaryFileConfigurationResponseModelToJSONTyped(json, false);
}
function TemporaryFileConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'imageFileTypes': value['imageFileTypes'],
'disallowedUploadedFilesExtensions': value['disallowedUploadedFilesExtensions'],
'allowedUploadedFileExtensions': value['allowedUploadedFileExtensions'],
'maxFileSize': value['maxFileSize'],
};
}