UNPKG

fastcomments-sdk

Version:

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

59 lines 2.51 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.instanceOfPublicAPIDeleteCommentResponse = instanceOfPublicAPIDeleteCommentResponse; exports.PublicAPIDeleteCommentResponseFromJSON = PublicAPIDeleteCommentResponseFromJSON; exports.PublicAPIDeleteCommentResponseFromJSONTyped = PublicAPIDeleteCommentResponseFromJSONTyped; exports.PublicAPIDeleteCommentResponseToJSON = PublicAPIDeleteCommentResponseToJSON; exports.PublicAPIDeleteCommentResponseToJSONTyped = PublicAPIDeleteCommentResponseToJSONTyped; const APIStatus_1 = require("./APIStatus"); const DeletedCommentResultComment_1 = require("./DeletedCommentResultComment"); /** * Check if a given object implements the PublicAPIDeleteCommentResponse interface. */ function instanceOfPublicAPIDeleteCommentResponse(value) { if (!('hardRemoved' in value) || value['hardRemoved'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } function PublicAPIDeleteCommentResponseFromJSON(json) { return PublicAPIDeleteCommentResponseFromJSONTyped(json, false); } function PublicAPIDeleteCommentResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : (0, DeletedCommentResultComment_1.DeletedCommentResultCommentFromJSON)(json['comment']), 'hardRemoved': json['hardRemoved'], 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function PublicAPIDeleteCommentResponseToJSON(json) { return PublicAPIDeleteCommentResponseToJSONTyped(json, false); } function PublicAPIDeleteCommentResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'comment': (0, DeletedCommentResultComment_1.DeletedCommentResultCommentToJSON)(value['comment']), 'hardRemoved': value['hardRemoved'], 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=PublicAPIDeleteCommentResponse.js.map