fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
55 lines • 1.89 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.instanceOfSetCommentTextResult = instanceOfSetCommentTextResult;
exports.SetCommentTextResultFromJSON = SetCommentTextResultFromJSON;
exports.SetCommentTextResultFromJSONTyped = SetCommentTextResultFromJSONTyped;
exports.SetCommentTextResultToJSON = SetCommentTextResultToJSON;
exports.SetCommentTextResultToJSONTyped = SetCommentTextResultToJSONTyped;
/**
* Check if a given object implements the SetCommentTextResult interface.
*/
function instanceOfSetCommentTextResult(value) {
if (!('approved' in value) || value['approved'] === undefined)
return false;
if (!('commentHTML' in value) || value['commentHTML'] === undefined)
return false;
return true;
}
function SetCommentTextResultFromJSON(json) {
return SetCommentTextResultFromJSONTyped(json, false);
}
function SetCommentTextResultFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'approved': json['approved'],
'commentHTML': json['commentHTML'],
};
}
function SetCommentTextResultToJSON(json) {
return SetCommentTextResultToJSONTyped(json, false);
}
function SetCommentTextResultToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'approved': value['approved'],
'commentHTML': value['commentHTML'],
};
}
//# sourceMappingURL=SetCommentTextResult.js.map