@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
53 lines (52 loc) • 1.94 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.instanceOfStorageUpdateCliRequest = instanceOfStorageUpdateCliRequest;
exports.StorageUpdateCliRequestFromJSON = StorageUpdateCliRequestFromJSON;
exports.StorageUpdateCliRequestFromJSONTyped = StorageUpdateCliRequestFromJSONTyped;
exports.StorageUpdateCliRequestToJSON = StorageUpdateCliRequestToJSON;
exports.StorageUpdateCliRequestToJSONTyped = StorageUpdateCliRequestToJSONTyped;
/**
* Check if a given object implements the StorageUpdateCliRequest interface.
*/
function instanceOfStorageUpdateCliRequest(value) {
return true;
}
function StorageUpdateCliRequestFromJSON(json) {
return StorageUpdateCliRequestFromJSONTyped(json, false);
}
function StorageUpdateCliRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
dataName: json.dataName == null ? undefined : json.dataName,
description: json.description == null ? undefined : json.description,
tagNameList: json.tagNameList == null ? undefined : json.tagNameList,
version: json.version == null ? undefined : json.version,
};
}
function StorageUpdateCliRequestToJSON(json) {
return StorageUpdateCliRequestToJSONTyped(json, false);
}
function StorageUpdateCliRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
dataName: value.dataName,
description: value.description,
tagNameList: value.tagNameList,
version: value.version,
};
}