UNPKG

fastcomments-sdk

Version:

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

61 lines 2.25 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.instanceOfModerationAPICommentLog = instanceOfModerationAPICommentLog; exports.ModerationAPICommentLogFromJSON = ModerationAPICommentLogFromJSON; exports.ModerationAPICommentLogFromJSONTyped = ModerationAPICommentLogFromJSONTyped; exports.ModerationAPICommentLogToJSON = ModerationAPICommentLogToJSON; exports.ModerationAPICommentLogToJSONTyped = ModerationAPICommentLogToJSONTyped; /** * Check if a given object implements the ModerationAPICommentLog interface. */ function instanceOfModerationAPICommentLog(value) { if (!('date' in value) || value['date'] === undefined) return false; if (!('actionName' in value) || value['actionName'] === undefined) return false; if (!('messageHTML' in value) || value['messageHTML'] === undefined) return false; return true; } function ModerationAPICommentLogFromJSON(json) { return ModerationAPICommentLogFromJSONTyped(json, false); } function ModerationAPICommentLogFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'date': (new Date(json['date'])), 'username': json['username'] == null ? undefined : json['username'], 'actionName': json['actionName'], 'messageHTML': json['messageHTML'], }; } function ModerationAPICommentLogToJSON(json) { return ModerationAPICommentLogToJSONTyped(json, false); } function ModerationAPICommentLogToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'date': ((value['date']).toISOString()), 'username': value['username'], 'actionName': value['actionName'], 'messageHTML': value['messageHTML'], }; } //# sourceMappingURL=ModerationAPICommentLog.js.map