fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
66 lines • 2.87 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.instanceOfSaveCommentsResponseWithPresence = instanceOfSaveCommentsResponseWithPresence;
exports.SaveCommentsResponseWithPresenceFromJSON = SaveCommentsResponseWithPresenceFromJSON;
exports.SaveCommentsResponseWithPresenceFromJSONTyped = SaveCommentsResponseWithPresenceFromJSONTyped;
exports.SaveCommentsResponseWithPresenceToJSON = SaveCommentsResponseWithPresenceToJSON;
exports.SaveCommentsResponseWithPresenceToJSONTyped = SaveCommentsResponseWithPresenceToJSONTyped;
const PublicComment_1 = require("./PublicComment");
const APIStatus_1 = require("./APIStatus");
const UserSessionInfo_1 = require("./UserSessionInfo");
/**
* Check if a given object implements the SaveCommentsResponseWithPresence interface.
*/
function instanceOfSaveCommentsResponseWithPresence(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
if (!('comment' in value) || value['comment'] === undefined)
return false;
if (!('user' in value) || value['user'] === undefined)
return false;
return true;
}
function SaveCommentsResponseWithPresenceFromJSON(json) {
return SaveCommentsResponseWithPresenceFromJSONTyped(json, false);
}
function SaveCommentsResponseWithPresenceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
'comment': (0, PublicComment_1.PublicCommentFromJSON)(json['comment']),
'user': (0, UserSessionInfo_1.UserSessionInfoFromJSON)(json['user']),
'moduleData': json['moduleData'] == null ? undefined : json['moduleData'],
'userIdWS': json['userIdWS'] == null ? undefined : json['userIdWS'],
};
}
function SaveCommentsResponseWithPresenceToJSON(json) {
return SaveCommentsResponseWithPresenceToJSONTyped(json, false);
}
function SaveCommentsResponseWithPresenceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
'comment': (0, PublicComment_1.PublicCommentToJSON)(value['comment']),
'user': (0, UserSessionInfo_1.UserSessionInfoToJSON)(value['user']),
'moduleData': value['moduleData'],
'userIdWS': value['userIdWS'],
};
}
//# sourceMappingURL=SaveCommentsResponseWithPresence.js.map