UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

60 lines (59 loc) 2.34 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.instanceOfMyCompleteMultipartUploadRequest = instanceOfMyCompleteMultipartUploadRequest; exports.MyCompleteMultipartUploadRequestFromJSON = MyCompleteMultipartUploadRequestFromJSON; exports.MyCompleteMultipartUploadRequestFromJSONTyped = MyCompleteMultipartUploadRequestFromJSONTyped; exports.MyCompleteMultipartUploadRequestToJSON = MyCompleteMultipartUploadRequestToJSON; exports.MyCompleteMultipartUploadRequestToJSONTyped = MyCompleteMultipartUploadRequestToJSONTyped; const PartETag_1 = require("./PartETag"); /** * Check if a given object implements the MyCompleteMultipartUploadRequest interface. */ function instanceOfMyCompleteMultipartUploadRequest(value) { return true; } function MyCompleteMultipartUploadRequestFromJSON(json) { return MyCompleteMultipartUploadRequestFromJSONTyped(json, false); } function MyCompleteMultipartUploadRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { bucket: json.bucket == null ? undefined : json.bucket, fileKey: json.fileKey == null ? undefined : json.fileKey, partETags: json.partETags == null ? undefined : json.partETags.map(PartETag_1.PartETagFromJSON), type: json.type == null ? undefined : json.type, uploadId: json.uploadId == null ? undefined : json.uploadId, }; } function MyCompleteMultipartUploadRequestToJSON(json) { return MyCompleteMultipartUploadRequestToJSONTyped(json, false); } function MyCompleteMultipartUploadRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { bucket: value.bucket, fileKey: value.fileKey, partETags: value.partETags == null ? undefined : value.partETags.map(PartETag_1.PartETagToJSON), type: value.type, uploadId: value.uploadId, }; }