UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

52 lines (51 loc) 1.93 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. */ /** * Check if a given object implements the StorageVersionListResponse interface. */ export function instanceOfStorageVersionListResponse(value) { return true; } export function StorageVersionListResponseFromJSON(json) { return StorageVersionListResponseFromJSONTyped(json, false); } export function StorageVersionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { createTime: json.createTime == null ? undefined : new Date(json.createTime), description: json.description == null ? undefined : json.description, fileSize: json.fileSize == null ? undefined : json.fileSize, fileUrl: json.fileUrl == null ? undefined : json.fileUrl, id: json.id == null ? undefined : json.id, updateTime: json.updateTime == null ? undefined : new Date(json.updateTime), version: json.version == null ? undefined : json.version, }; } export function StorageVersionListResponseToJSON(json) { return StorageVersionListResponseToJSONTyped(json, false); } export function StorageVersionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { createTime: value.createTime == null ? undefined : value.createTime.toISOString(), description: value.description, fileSize: value.fileSize, fileUrl: value.fileUrl, id: value.id, updateTime: value.updateTime == null ? undefined : value.updateTime.toISOString(), version: value.version, }; }