UNPKG

fastcomments-sdk

Version:

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

57 lines 2.3 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.instanceOfModerationAPIGetLogsResponse = instanceOfModerationAPIGetLogsResponse; exports.ModerationAPIGetLogsResponseFromJSON = ModerationAPIGetLogsResponseFromJSON; exports.ModerationAPIGetLogsResponseFromJSONTyped = ModerationAPIGetLogsResponseFromJSONTyped; exports.ModerationAPIGetLogsResponseToJSON = ModerationAPIGetLogsResponseToJSON; exports.ModerationAPIGetLogsResponseToJSONTyped = ModerationAPIGetLogsResponseToJSONTyped; const ModerationAPICommentLog_1 = require("./ModerationAPICommentLog"); const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the ModerationAPIGetLogsResponse interface. */ function instanceOfModerationAPIGetLogsResponse(value) { if (!('logs' in value) || value['logs'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } function ModerationAPIGetLogsResponseFromJSON(json) { return ModerationAPIGetLogsResponseFromJSONTyped(json, false); } function ModerationAPIGetLogsResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'logs': (json['logs'].map(ModerationAPICommentLog_1.ModerationAPICommentLogFromJSON)), 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function ModerationAPIGetLogsResponseToJSON(json) { return ModerationAPIGetLogsResponseToJSONTyped(json, false); } function ModerationAPIGetLogsResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'logs': (value['logs'].map(ModerationAPICommentLog_1.ModerationAPICommentLogToJSON)), 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=ModerationAPIGetLogsResponse.js.map