fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
71 lines • 2.77 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.instanceOfCommentUserBadgeInfo = instanceOfCommentUserBadgeInfo;
exports.CommentUserBadgeInfoFromJSON = CommentUserBadgeInfoFromJSON;
exports.CommentUserBadgeInfoFromJSONTyped = CommentUserBadgeInfoFromJSONTyped;
exports.CommentUserBadgeInfoToJSON = CommentUserBadgeInfoToJSON;
exports.CommentUserBadgeInfoToJSONTyped = CommentUserBadgeInfoToJSONTyped;
/**
* Check if a given object implements the CommentUserBadgeInfo interface.
*/
function instanceOfCommentUserBadgeInfo(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('description' in value) || value['description'] === undefined)
return false;
return true;
}
function CommentUserBadgeInfoFromJSON(json) {
return CommentUserBadgeInfoFromJSONTyped(json, false);
}
function CommentUserBadgeInfoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['id'],
'type': json['type'],
'description': json['description'],
'displayLabel': json['displayLabel'] == null ? undefined : json['displayLabel'],
'displaySrc': json['displaySrc'] == null ? undefined : json['displaySrc'],
'backgroundColor': json['backgroundColor'] == null ? undefined : json['backgroundColor'],
'borderColor': json['borderColor'] == null ? undefined : json['borderColor'],
'textColor': json['textColor'] == null ? undefined : json['textColor'],
'cssClass': json['cssClass'] == null ? undefined : json['cssClass'],
};
}
function CommentUserBadgeInfoToJSON(json) {
return CommentUserBadgeInfoToJSONTyped(json, false);
}
function CommentUserBadgeInfoToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'id': value['id'],
'type': value['type'],
'description': value['description'],
'displayLabel': value['displayLabel'],
'displaySrc': value['displaySrc'],
'backgroundColor': value['backgroundColor'],
'borderColor': value['borderColor'],
'textColor': value['textColor'],
'cssClass': value['cssClass'],
};
}
//# sourceMappingURL=CommentUserBadgeInfo.js.map