UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

61 lines 2.08 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.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.instanceOfCommentUserHashTagInfo = instanceOfCommentUserHashTagInfo; exports.CommentUserHashTagInfoFromJSON = CommentUserHashTagInfoFromJSON; exports.CommentUserHashTagInfoFromJSONTyped = CommentUserHashTagInfoFromJSONTyped; exports.CommentUserHashTagInfoToJSON = CommentUserHashTagInfoToJSON; exports.CommentUserHashTagInfoToJSONTyped = CommentUserHashTagInfoToJSONTyped; /** * Check if a given object implements the CommentUserHashTagInfo interface. */ function instanceOfCommentUserHashTagInfo(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('tag' in value) || value['tag'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } function CommentUserHashTagInfoFromJSON(json) { return CommentUserHashTagInfoFromJSONTyped(json, false); } function CommentUserHashTagInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'tag': json['tag'], 'url': json['url'], 'retain': json['retain'] == null ? undefined : json['retain'], }; } function CommentUserHashTagInfoToJSON(json) { return CommentUserHashTagInfoToJSONTyped(json, false); } function CommentUserHashTagInfoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'tag': value['tag'], 'url': value['url'], 'retain': value['retain'], }; } //# sourceMappingURL=CommentUserHashTagInfo.js.map