fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
71 lines • 2.38 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.instanceOfEventLogEntry = instanceOfEventLogEntry;
exports.EventLogEntryFromJSON = EventLogEntryFromJSON;
exports.EventLogEntryFromJSONTyped = EventLogEntryFromJSONTyped;
exports.EventLogEntryToJSON = EventLogEntryToJSON;
exports.EventLogEntryToJSONTyped = EventLogEntryToJSONTyped;
/**
* Check if a given object implements the EventLogEntry interface.
*/
function instanceOfEventLogEntry(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('createdAt' in value) || value['createdAt'] === undefined)
return false;
if (!('tenantId' in value) || value['tenantId'] === undefined)
return false;
if (!('urlId' in value) || value['urlId'] === undefined)
return false;
if (!('broadcastId' in value) || value['broadcastId'] === undefined)
return false;
if (!('data' in value) || value['data'] === undefined)
return false;
return true;
}
function EventLogEntryFromJSON(json) {
return EventLogEntryFromJSONTyped(json, false);
}
function EventLogEntryFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['_id'],
'createdAt': (new Date(json['createdAt'])),
'tenantId': json['tenantId'],
'urlId': json['urlId'],
'broadcastId': json['broadcastId'],
'data': json['data'],
};
}
function EventLogEntryToJSON(json) {
return EventLogEntryToJSONTyped(json, false);
}
function EventLogEntryToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'_id': value['id'],
'createdAt': ((value['createdAt']).toISOString()),
'tenantId': value['tenantId'],
'urlId': value['urlId'],
'broadcastId': value['broadcastId'],
'data': value['data'],
};
}
//# sourceMappingURL=EventLogEntry.js.map