UNPKG

fastcomments-sdk

Version:

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

56 lines 1.94 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.instanceOfGetV2PageReacts = instanceOfGetV2PageReacts; exports.GetV2PageReactsFromJSON = GetV2PageReactsFromJSON; exports.GetV2PageReactsFromJSONTyped = GetV2PageReactsFromJSONTyped; exports.GetV2PageReactsToJSON = GetV2PageReactsToJSON; exports.GetV2PageReactsToJSONTyped = GetV2PageReactsToJSONTyped; const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the GetV2PageReacts interface. */ function instanceOfGetV2PageReacts(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function GetV2PageReactsFromJSON(json) { return GetV2PageReactsFromJSONTyped(json, false); } function GetV2PageReactsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reactedIds': json['reactedIds'] == null ? undefined : json['reactedIds'], 'counts': json['counts'] == null ? undefined : json['counts'], 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function GetV2PageReactsToJSON(json) { return GetV2PageReactsToJSONTyped(json, false); } function GetV2PageReactsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reactedIds': value['reactedIds'], 'counts': value['counts'], 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=GetV2PageReacts.js.map