UNPKG

fastcomments-sdk

Version:

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

57 lines 2.12 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.instanceOfDeleteCommentResult = instanceOfDeleteCommentResult; exports.DeleteCommentResultFromJSON = DeleteCommentResultFromJSON; exports.DeleteCommentResultFromJSONTyped = DeleteCommentResultFromJSONTyped; exports.DeleteCommentResultToJSON = DeleteCommentResultToJSON; exports.DeleteCommentResultToJSONTyped = DeleteCommentResultToJSONTyped; const DeleteCommentAction_1 = require("./DeleteCommentAction"); const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the DeleteCommentResult interface. */ function instanceOfDeleteCommentResult(value) { if (!('action' in value) || value['action'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } function DeleteCommentResultFromJSON(json) { return DeleteCommentResultFromJSONTyped(json, false); } function DeleteCommentResultFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'action': (0, DeleteCommentAction_1.DeleteCommentActionFromJSON)(json['action']), 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function DeleteCommentResultToJSON(json) { return DeleteCommentResultToJSONTyped(json, false); } function DeleteCommentResultToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'action': (0, DeleteCommentAction_1.DeleteCommentActionToJSON)(value['action']), 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=DeleteCommentResult.js.map