@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
50 lines (49 loc) • 1.72 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.
*/
/**
* Check if a given object implements the DatasetCreateCliRequest interface.
*/
export function instanceOfDatasetCreateCliRequest(value) {
return true;
}
export function DatasetCreateCliRequestFromJSON(json) {
return DatasetCreateCliRequestFromJSONTyped(json, false);
}
export function DatasetCreateCliRequestFromJSONTyped(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,
fileUrl: json.fileUrl == null ? undefined : json.fileUrl,
tagNameList: json.tagNameList == null ? undefined : json.tagNameList,
};
}
export function DatasetCreateCliRequestToJSON(json) {
return DatasetCreateCliRequestToJSONTyped(json, false);
}
export function DatasetCreateCliRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
datasetName: value.datasetName,
description: value.description,
fileName: value.fileName,
fileSize: value.fileSize,
fileUrl: value.fileUrl,
tagNameList: value.tagNameList,
};
}