UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

61 lines (60 loc) 2.16 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.instanceOfDataMeta = instanceOfDataMeta; exports.DataMetaFromJSON = DataMetaFromJSON; exports.DataMetaFromJSONTyped = DataMetaFromJSONTyped; exports.DataMetaToJSON = DataMetaToJSON; exports.DataMetaToJSONTyped = DataMetaToJSONTyped; /** * Check if a given object implements the DataMeta interface. */ function instanceOfDataMeta(value) { return true; } function DataMetaFromJSON(json) { return DataMetaFromJSONTyped(json, false); } function DataMetaFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { createTime: json.createTime == null ? undefined : new Date(json.createTime), dataName: json.dataName == null ? undefined : json.dataName, 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, tags: json.tags == null ? undefined : json.tags, updateTime: json.updateTime == null ? undefined : new Date(json.updateTime), }; } function DataMetaToJSON(json) { return DataMetaToJSONTyped(json, false); } function DataMetaToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { createTime: value.createTime == null ? undefined : value.createTime.toISOString(), dataName: value.dataName, description: value.description, fileSize: value.fileSize, fileUrl: value.fileUrl, id: value.id, tags: value.tags, updateTime: value.updateTime == null ? undefined : value.updateTime.toISOString(), }; }