UNPKG

fastcomments-sdk

Version:

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

60 lines 2.36 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.instanceOfUserNotificationWriteResponse = instanceOfUserNotificationWriteResponse; exports.UserNotificationWriteResponseFromJSON = UserNotificationWriteResponseFromJSON; exports.UserNotificationWriteResponseFromJSONTyped = UserNotificationWriteResponseFromJSONTyped; exports.UserNotificationWriteResponseToJSON = UserNotificationWriteResponseToJSON; exports.UserNotificationWriteResponseToJSONTyped = UserNotificationWriteResponseToJSONTyped; const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the UserNotificationWriteResponse interface. */ function instanceOfUserNotificationWriteResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; if (!('matchedCount' in value) || value['matchedCount'] === undefined) return false; if (!('modifiedCount' in value) || value['modifiedCount'] === undefined) return false; return true; } function UserNotificationWriteResponseFromJSON(json) { return UserNotificationWriteResponseFromJSONTyped(json, false); } function UserNotificationWriteResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'matchedCount': json['matchedCount'], 'modifiedCount': json['modifiedCount'], }; } function UserNotificationWriteResponseToJSON(json) { return UserNotificationWriteResponseToJSONTyped(json, false); } function UserNotificationWriteResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'matchedCount': value['matchedCount'], 'modifiedCount': value['modifiedCount'], }; } //# sourceMappingURL=UserNotificationWriteResponse.js.map