fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
57 lines • 2.16 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.instanceOfFindCommentsByRangeItem = instanceOfFindCommentsByRangeItem;
exports.FindCommentsByRangeItemFromJSON = FindCommentsByRangeItemFromJSON;
exports.FindCommentsByRangeItemFromJSONTyped = FindCommentsByRangeItemFromJSONTyped;
exports.FindCommentsByRangeItemToJSON = FindCommentsByRangeItemToJSON;
exports.FindCommentsByRangeItemToJSONTyped = FindCommentsByRangeItemToJSONTyped;
const FComment_1 = require("./FComment");
const QuestionResult_1 = require("./QuestionResult");
/**
* Check if a given object implements the FindCommentsByRangeItem interface.
*/
function instanceOfFindCommentsByRangeItem(value) {
if (!('comment' in value) || value['comment'] === undefined)
return false;
if (!('result' in value) || value['result'] === undefined)
return false;
return true;
}
function FindCommentsByRangeItemFromJSON(json) {
return FindCommentsByRangeItemFromJSONTyped(json, false);
}
function FindCommentsByRangeItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'comment': (0, FComment_1.FCommentFromJSON)(json['comment']),
'result': (0, QuestionResult_1.QuestionResultFromJSON)(json['result']),
};
}
function FindCommentsByRangeItemToJSON(json) {
return FindCommentsByRangeItemToJSONTyped(json, false);
}
function FindCommentsByRangeItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'comment': (0, FComment_1.FCommentToJSON)(value['comment']),
'result': (0, QuestionResult_1.QuestionResultToJSON)(value['result']),
};
}
//# sourceMappingURL=FindCommentsByRangeItem.js.map