UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

57 lines (56 loc) 2.14 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.instanceOfStorageCreateCliRequest = instanceOfStorageCreateCliRequest; exports.StorageCreateCliRequestFromJSON = StorageCreateCliRequestFromJSON; exports.StorageCreateCliRequestFromJSONTyped = StorageCreateCliRequestFromJSONTyped; exports.StorageCreateCliRequestToJSON = StorageCreateCliRequestToJSON; exports.StorageCreateCliRequestToJSONTyped = StorageCreateCliRequestToJSONTyped; /** * Check if a given object implements the StorageCreateCliRequest interface. */ function instanceOfStorageCreateCliRequest(value) { return true; } function StorageCreateCliRequestFromJSON(json) { return StorageCreateCliRequestFromJSONTyped(json, false); } function StorageCreateCliRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { dataName: json.dataName == null ? undefined : json.dataName, description: json.description == null ? undefined : json.description, fileSize: json.fileSize == null ? undefined : json.fileSize, fileType: json.fileType == null ? undefined : json.fileType, fileUrl: json.fileUrl == null ? undefined : json.fileUrl, tagNameList: json.tagNameList == null ? undefined : json.tagNameList, }; } function StorageCreateCliRequestToJSON(json) { return StorageCreateCliRequestToJSONTyped(json, false); } function StorageCreateCliRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { dataName: value.dataName, description: value.description, fileSize: value.fileSize, fileType: value.fileType, fileUrl: value.fileUrl, tagNameList: value.tagNameList, }; }