fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
56 lines • 1.98 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.instanceOfNotificationAndCount = instanceOfNotificationAndCount;
exports.NotificationAndCountFromJSON = NotificationAndCountFromJSON;
exports.NotificationAndCountFromJSONTyped = NotificationAndCountFromJSONTyped;
exports.NotificationAndCountToJSON = NotificationAndCountToJSON;
exports.NotificationAndCountToJSONTyped = NotificationAndCountToJSONTyped;
const NotificationType_1 = require("./NotificationType");
/**
* Check if a given object implements the NotificationAndCount interface.
*/
function instanceOfNotificationAndCount(value) {
if (!('type' in value) || value['type'] === undefined)
return false;
if (!('count' in value) || value['count'] === undefined)
return false;
return true;
}
function NotificationAndCountFromJSON(json) {
return NotificationAndCountFromJSONTyped(json, false);
}
function NotificationAndCountFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': (0, NotificationType_1.NotificationTypeFromJSON)(json['type']),
'count': json['count'],
};
}
function NotificationAndCountToJSON(json) {
return NotificationAndCountToJSONTyped(json, false);
}
function NotificationAndCountToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': (0, NotificationType_1.NotificationTypeToJSON)(value['type']),
'count': value['count'],
};
}
//# sourceMappingURL=NotificationAndCount.js.map