UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

55 lines (54 loc) 1.68 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.instanceOfTagInfo = instanceOfTagInfo; exports.TagInfoFromJSON = TagInfoFromJSON; exports.TagInfoFromJSONTyped = TagInfoFromJSONTyped; exports.TagInfoToJSON = TagInfoToJSON; exports.TagInfoToJSONTyped = TagInfoToJSONTyped; /** * Check if a given object implements the TagInfo interface. */ function instanceOfTagInfo(value) { return true; } function TagInfoFromJSON(json) { return TagInfoFromJSONTyped(json, false); } function TagInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { count: json.count == null ? undefined : json.count, isRoot: json.isRoot == null ? undefined : json.isRoot, parentId: json.parentId == null ? undefined : json.parentId, tagId: json.tagId == null ? undefined : json.tagId, tagName: json.tagName == null ? undefined : json.tagName, }; } function TagInfoToJSON(json) { return TagInfoToJSONTyped(json, false); } function TagInfoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { count: value.count, isRoot: value.isRoot, parentId: value.parentId, tagId: value.tagId, tagName: value.tagName, }; }