fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
59 lines • 2.1 kB
JavaScript
;
/* 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.instanceOfCommentLogEntry = instanceOfCommentLogEntry;
exports.CommentLogEntryFromJSON = CommentLogEntryFromJSON;
exports.CommentLogEntryFromJSONTyped = CommentLogEntryFromJSONTyped;
exports.CommentLogEntryToJSON = CommentLogEntryToJSON;
exports.CommentLogEntryToJSONTyped = CommentLogEntryToJSONTyped;
const CommentLogType_1 = require("./CommentLogType");
const CommentLogData_1 = require("./CommentLogData");
/**
* Check if a given object implements the CommentLogEntry interface.
*/
function instanceOfCommentLogEntry(value) {
if (!('d' in value) || value['d'] === undefined)
return false;
if (!('t' in value) || value['t'] === undefined)
return false;
return true;
}
function CommentLogEntryFromJSON(json) {
return CommentLogEntryFromJSONTyped(json, false);
}
function CommentLogEntryFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'd': (new Date(json['d'])),
't': (0, CommentLogType_1.CommentLogTypeFromJSON)(json['t']),
'da': json['da'] == null ? undefined : (0, CommentLogData_1.CommentLogDataFromJSON)(json['da']),
};
}
function CommentLogEntryToJSON(json) {
return CommentLogEntryToJSONTyped(json, false);
}
function CommentLogEntryToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'd': ((value['d']).toISOString()),
't': (0, CommentLogType_1.CommentLogTypeToJSON)(value['t']),
'da': (0, CommentLogData_1.CommentLogDataToJSON)(value['da']),
};
}
//# sourceMappingURL=CommentLogEntry.js.map