UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

59 lines (58 loc) 2.27 kB
"use strict"; /** * 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.instanceOfStorageListItemResponse = instanceOfStorageListItemResponse; exports.StorageListItemResponseFromJSON = StorageListItemResponseFromJSON; exports.StorageListItemResponseFromJSONTyped = StorageListItemResponseFromJSONTyped; exports.StorageListItemResponseToJSON = StorageListItemResponseToJSON; exports.StorageListItemResponseToJSONTyped = StorageListItemResponseToJSONTyped; /** * Check if a given object implements the StorageListItemResponse interface. */ function instanceOfStorageListItemResponse(value) { return true; } function StorageListItemResponseFromJSON(json) { return StorageListItemResponseFromJSONTyped(json, false); } function StorageListItemResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { createTime: json.createTime == null ? undefined : new Date(json.createTime), datasetName: json.datasetName == null ? undefined : json.datasetName, fileName: json.fileName == null ? undefined : json.fileName, fileSize: json.fileSize == null ? undefined : json.fileSize, fileUrl: json.fileUrl == null ? undefined : json.fileUrl, id: json.id == null ? undefined : json.id, version: json.version == null ? undefined : json.version, }; } function StorageListItemResponseToJSON(json) { return StorageListItemResponseToJSONTyped(json, false); } function StorageListItemResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { createTime: value.createTime == null ? undefined : value.createTime.toISOString(), datasetName: value.datasetName, fileName: value.fileName, fileSize: value.fileSize, fileUrl: value.fileUrl, id: value.id, version: value.version, }; }