fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
59 lines • 2.28 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.instanceOfDeletedCommentResultComment = instanceOfDeletedCommentResultComment;
exports.DeletedCommentResultCommentFromJSON = DeletedCommentResultCommentFromJSON;
exports.DeletedCommentResultCommentFromJSONTyped = DeletedCommentResultCommentFromJSONTyped;
exports.DeletedCommentResultCommentToJSON = DeletedCommentResultCommentToJSON;
exports.DeletedCommentResultCommentToJSONTyped = DeletedCommentResultCommentToJSONTyped;
/**
* Check if a given object implements the DeletedCommentResultComment interface.
*/
function instanceOfDeletedCommentResultComment(value) {
if (!('commentHTML' in value) || value['commentHTML'] === undefined)
return false;
if (!('commenterName' in value) || value['commenterName'] === undefined)
return false;
return true;
}
function DeletedCommentResultCommentFromJSON(json) {
return DeletedCommentResultCommentFromJSONTyped(json, false);
}
function DeletedCommentResultCommentFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'isDeleted': json['isDeleted'] == null ? undefined : json['isDeleted'],
'commentHTML': json['commentHTML'],
'commenterName': json['commenterName'],
'userId': json['userId'] == null ? undefined : json['userId'],
};
}
function DeletedCommentResultCommentToJSON(json) {
return DeletedCommentResultCommentToJSONTyped(json, false);
}
function DeletedCommentResultCommentToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'isDeleted': value['isDeleted'],
'commentHTML': value['commentHTML'],
'commenterName': value['commenterName'],
'userId': value['userId'],
};
}
//# sourceMappingURL=DeletedCommentResultComment.js.map