UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

59 lines (58 loc) 2.02 kB
/** * 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. */ import { TagInfoFromJSON, TagInfoToJSON } from './TagInfo'; /** * Check if a given object implements the StorageUpdateRequest interface. */ export function instanceOfStorageUpdateRequest(value) { return true; } export function StorageUpdateRequestFromJSON(json) { return StorageUpdateRequestFromJSONTyped(json, false); } export 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(TagInfoFromJSON), }; } export function StorageUpdateRequestToJSON(json) { return StorageUpdateRequestToJSONTyped(json, false); } export 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(TagInfoToJSON), }; }