fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
63 lines • 2.23 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.instanceOfUserNotificationCount = instanceOfUserNotificationCount;
exports.UserNotificationCountFromJSON = UserNotificationCountFromJSON;
exports.UserNotificationCountFromJSONTyped = UserNotificationCountFromJSONTyped;
exports.UserNotificationCountToJSON = UserNotificationCountToJSON;
exports.UserNotificationCountToJSONTyped = UserNotificationCountToJSONTyped;
/**
* Check if a given object implements the UserNotificationCount interface.
*/
function instanceOfUserNotificationCount(value) {
if (!('id' in value) || value['id'] === undefined)
return false;
if (!('count' in value) || value['count'] === undefined)
return false;
if (!('createdAt' in value) || value['createdAt'] === undefined)
return false;
if (!('expireAt' in value) || value['expireAt'] === undefined)
return false;
return true;
}
function UserNotificationCountFromJSON(json) {
return UserNotificationCountFromJSONTyped(json, false);
}
function UserNotificationCountFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'id': json['_id'],
'count': json['count'],
'createdAt': (new Date(json['createdAt'])),
'expireAt': (new Date(json['expireAt'])),
};
}
function UserNotificationCountToJSON(json) {
return UserNotificationCountToJSONTyped(json, false);
}
function UserNotificationCountToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'_id': value['id'],
'count': value['count'],
'createdAt': ((value['createdAt']).toISOString()),
'expireAt': ((value['expireAt']).toISOString()),
};
}
//# sourceMappingURL=UserNotificationCount.js.map