UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

64 lines 2.54 kB
"use strict"; /* 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.instanceOfAPISaveCommentResponse = instanceOfAPISaveCommentResponse; exports.APISaveCommentResponseFromJSON = APISaveCommentResponseFromJSON; exports.APISaveCommentResponseFromJSONTyped = APISaveCommentResponseFromJSONTyped; exports.APISaveCommentResponseToJSON = APISaveCommentResponseToJSON; exports.APISaveCommentResponseToJSONTyped = APISaveCommentResponseToJSONTyped; const APIComment_1 = require("./APIComment"); const APIStatus_1 = require("./APIStatus"); const UserSessionInfo_1 = require("./UserSessionInfo"); /** * Check if a given object implements the APISaveCommentResponse interface. */ function instanceOfAPISaveCommentResponse(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 APISaveCommentResponseFromJSON(json) { return APISaveCommentResponseFromJSONTyped(json, false); } function APISaveCommentResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'comment': (0, APIComment_1.APICommentFromJSON)(json['comment']), 'user': (0, UserSessionInfo_1.UserSessionInfoFromJSON)(json['user']), 'moduleData': json['moduleData'] == null ? undefined : json['moduleData'], }; } function APISaveCommentResponseToJSON(json) { return APISaveCommentResponseToJSONTyped(json, false); } function APISaveCommentResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'comment': (0, APIComment_1.APICommentToJSON)(value['comment']), 'user': (0, UserSessionInfo_1.UserSessionInfoToJSON)(value['user']), 'moduleData': value['moduleData'], }; } //# sourceMappingURL=APISaveCommentResponse.js.map