UNPKG

fastcomments-sdk

Version:

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

52 lines 2.23 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.instanceOfBulkAggregateQuestionResultsRequest = instanceOfBulkAggregateQuestionResultsRequest; exports.BulkAggregateQuestionResultsRequestFromJSON = BulkAggregateQuestionResultsRequestFromJSON; exports.BulkAggregateQuestionResultsRequestFromJSONTyped = BulkAggregateQuestionResultsRequestFromJSONTyped; exports.BulkAggregateQuestionResultsRequestToJSON = BulkAggregateQuestionResultsRequestToJSON; exports.BulkAggregateQuestionResultsRequestToJSONTyped = BulkAggregateQuestionResultsRequestToJSONTyped; const BulkAggregateQuestionItem_1 = require("./BulkAggregateQuestionItem"); /** * Check if a given object implements the BulkAggregateQuestionResultsRequest interface. */ function instanceOfBulkAggregateQuestionResultsRequest(value) { if (!('aggregations' in value) || value['aggregations'] === undefined) return false; return true; } function BulkAggregateQuestionResultsRequestFromJSON(json) { return BulkAggregateQuestionResultsRequestFromJSONTyped(json, false); } function BulkAggregateQuestionResultsRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'aggregations': (json['aggregations'].map(BulkAggregateQuestionItem_1.BulkAggregateQuestionItemFromJSON)), }; } function BulkAggregateQuestionResultsRequestToJSON(json) { return BulkAggregateQuestionResultsRequestToJSONTyped(json, false); } function BulkAggregateQuestionResultsRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'aggregations': (value['aggregations'].map(BulkAggregateQuestionItem_1.BulkAggregateQuestionItemToJSON)), }; } //# sourceMappingURL=BulkAggregateQuestionResultsRequest.js.map