@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
66 lines (65 loc) • 2.42 kB
JavaScript
;
/**
* Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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.instanceOfStorageUpdateRequest = instanceOfStorageUpdateRequest;
exports.StorageUpdateRequestFromJSON = StorageUpdateRequestFromJSON;
exports.StorageUpdateRequestFromJSONTyped = StorageUpdateRequestFromJSONTyped;
exports.StorageUpdateRequestToJSON = StorageUpdateRequestToJSON;
exports.StorageUpdateRequestToJSONTyped = StorageUpdateRequestToJSONTyped;
const TagInfo_1 = require("./TagInfo");
/**
* Check if a given object implements the StorageUpdateRequest interface.
*/
function instanceOfStorageUpdateRequest(value) {
return true;
}
function StorageUpdateRequestFromJSON(json) {
return StorageUpdateRequestFromJSONTyped(json, false);
}
function StorageUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
datasetName: json.datasetName == null ? undefined : json.datasetName,
description: json.description == null ? undefined : json.description,
fileName: json.fileName == null ? undefined : json.fileName,
fileSize: json.fileSize == null ? undefined : json.fileSize,
fileType: json.fileType == null ? undefined : json.fileType,
fileUrl: json.fileUrl == null ? undefined : json.fileUrl,
id: json.id == null ? undefined : json.id,
tags: json.tags == null
? undefined
: json.tags.map(TagInfo_1.TagInfoFromJSON),
};
}
function StorageUpdateRequestToJSON(json) {
return StorageUpdateRequestToJSONTyped(json, false);
}
function StorageUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
datasetName: value.datasetName,
description: value.description,
fileName: value.fileName,
fileSize: value.fileSize,
fileType: value.fileType,
fileUrl: value.fileUrl,
id: value.id,
tags: value.tags == null
? undefined
: value.tags.map(TagInfo_1.TagInfoToJSON),
};
}