@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
48 lines (47 loc) • 1.41 kB
JavaScript
/**
* 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 TagInfo interface.
*/
export function instanceOfTagInfo(value) {
return true;
}
export function TagInfoFromJSON(json) {
return TagInfoFromJSONTyped(json, false);
}
export 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,
};
}
export function TagInfoToJSON(json) {
return TagInfoToJSONTyped(json, false);
}
export 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,
};
}