UNPKG

fastcomments-sdk

Version:

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

53 lines 1.83 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.instanceOfUpdateNotificationBody = instanceOfUpdateNotificationBody; exports.UpdateNotificationBodyFromJSON = UpdateNotificationBodyFromJSON; exports.UpdateNotificationBodyFromJSONTyped = UpdateNotificationBodyFromJSONTyped; exports.UpdateNotificationBodyToJSON = UpdateNotificationBodyToJSON; exports.UpdateNotificationBodyToJSONTyped = UpdateNotificationBodyToJSONTyped; /** * Check if a given object implements the UpdateNotificationBody interface. */ function instanceOfUpdateNotificationBody(value) { return true; } function UpdateNotificationBodyFromJSON(json) { return UpdateNotificationBodyFromJSONTyped(json, false); } function UpdateNotificationBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, 'viewed': json['viewed'] == null ? undefined : json['viewed'], 'optedOut': json['optedOut'] == null ? undefined : json['optedOut'], }; } function UpdateNotificationBodyToJSON(json) { return UpdateNotificationBodyToJSONTyped(json, false); } function UpdateNotificationBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { ...value, 'viewed': value['viewed'], 'optedOut': value['optedOut'], }; } //# sourceMappingURL=UpdateNotificationBody.js.map