fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
71 lines • 2.53 kB
JavaScript
;
/* 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.CommentUserMentionInfoTypeEnum = void 0;
exports.instanceOfCommentUserMentionInfo = instanceOfCommentUserMentionInfo;
exports.CommentUserMentionInfoFromJSON = CommentUserMentionInfoFromJSON;
exports.CommentUserMentionInfoFromJSONTyped = CommentUserMentionInfoFromJSONTyped;
exports.CommentUserMentionInfoToJSON = CommentUserMentionInfoToJSON;
exports.CommentUserMentionInfoToJSONTyped = CommentUserMentionInfoToJSONTyped;
/**
* @export
* @enum {string}
*/
var CommentUserMentionInfoTypeEnum;
(function (CommentUserMentionInfoTypeEnum) {
CommentUserMentionInfoTypeEnum["user"] = "user";
CommentUserMentionInfoTypeEnum["sso"] = "sso";
})(CommentUserMentionInfoTypeEnum || (exports.CommentUserMentionInfoTypeEnum = CommentUserMentionInfoTypeEnum = {}));
/**
* Check if a given object implements the CommentUserMentionInfo interface.
*/
function instanceOfCommentUserMentionInfo(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('tag' in value) || value['tag'] === undefined)
return false;
return true;
}
function CommentUserMentionInfoFromJSON(json) {
return CommentUserMentionInfoFromJSONTyped(json, false);
}
function CommentUserMentionInfoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'],
'tag': json['tag'],
'rawTag': json['rawTag'] == null ? undefined : json['rawTag'],
'type': json['type'] == null ? undefined : json['type'],
'sent': json['sent'] == null ? undefined : json['sent'],
};
}
function CommentUserMentionInfoToJSON(json) {
return CommentUserMentionInfoToJSONTyped(json, false);
}
function CommentUserMentionInfoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'tag': value['tag'],
'rawTag': value['rawTag'],
'type': value['type'],
'sent': value['sent'],
};
}
//# sourceMappingURL=CommentUserMentionInfo.js.map