UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

64 lines (63 loc) 2.35 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.instanceOfStorageCreateRequest = instanceOfStorageCreateRequest; exports.StorageCreateRequestFromJSON = StorageCreateRequestFromJSON; exports.StorageCreateRequestFromJSONTyped = StorageCreateRequestFromJSONTyped; exports.StorageCreateRequestToJSON = StorageCreateRequestToJSON; exports.StorageCreateRequestToJSONTyped = StorageCreateRequestToJSONTyped; const TagInfo_1 = require("./TagInfo"); /** * Check if a given object implements the StorageCreateRequest interface. */ function instanceOfStorageCreateRequest(value) { return true; } function StorageCreateRequestFromJSON(json) { return StorageCreateRequestFromJSONTyped(json, false); } function StorageCreateRequestFromJSONTyped(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, tags: json.tags == null ? undefined : json.tags.map(TagInfo_1.TagInfoFromJSON), }; } function StorageCreateRequestToJSON(json) { return StorageCreateRequestToJSONTyped(json, false); } function StorageCreateRequestToJSONTyped(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, tags: value.tags == null ? undefined : value.tags.map(TagInfo_1.TagInfoToJSON), }; }