UNPKG

fastcomments-sdk

Version:

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

57 lines 2.47 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.instanceOfCommentTextUpdateRequest = instanceOfCommentTextUpdateRequest; exports.CommentTextUpdateRequestFromJSON = CommentTextUpdateRequestFromJSON; exports.CommentTextUpdateRequestFromJSONTyped = CommentTextUpdateRequestFromJSONTyped; exports.CommentTextUpdateRequestToJSON = CommentTextUpdateRequestToJSON; exports.CommentTextUpdateRequestToJSONTyped = CommentTextUpdateRequestToJSONTyped; const CommentUserHashTagInfo_1 = require("./CommentUserHashTagInfo"); const CommentUserMentionInfo_1 = require("./CommentUserMentionInfo"); /** * Check if a given object implements the CommentTextUpdateRequest interface. */ function instanceOfCommentTextUpdateRequest(value) { if (!('comment' in value) || value['comment'] === undefined) return false; return true; } function CommentTextUpdateRequestFromJSON(json) { return CommentTextUpdateRequestFromJSONTyped(json, false); } function CommentTextUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'comment': json['comment'], 'mentions': json['mentions'] == null ? undefined : (json['mentions'].map(CommentUserMentionInfo_1.CommentUserMentionInfoFromJSON)), 'hashTags': json['hashTags'] == null ? undefined : (json['hashTags'].map(CommentUserHashTagInfo_1.CommentUserHashTagInfoFromJSON)), }; } function CommentTextUpdateRequestToJSON(json) { return CommentTextUpdateRequestToJSONTyped(json, false); } function CommentTextUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'comment': value['comment'], 'mentions': value['mentions'] == null ? undefined : (value['mentions'].map(CommentUserMentionInfo_1.CommentUserMentionInfoToJSON)), 'hashTags': value['hashTags'] == null ? undefined : (value['hashTags'].map(CommentUserHashTagInfo_1.CommentUserHashTagInfoToJSON)), }; } //# sourceMappingURL=CommentTextUpdateRequest.js.map