UNPKG

fastcomments-sdk

Version:

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

62 lines 2.63 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.instanceOfBulkAggregateQuestionItem = instanceOfBulkAggregateQuestionItem; exports.BulkAggregateQuestionItemFromJSON = BulkAggregateQuestionItemFromJSON; exports.BulkAggregateQuestionItemFromJSONTyped = BulkAggregateQuestionItemFromJSONTyped; exports.BulkAggregateQuestionItemToJSON = BulkAggregateQuestionItemToJSON; exports.BulkAggregateQuestionItemToJSONTyped = BulkAggregateQuestionItemToJSONTyped; const AggregateTimeBucket_1 = require("./AggregateTimeBucket"); /** * Check if a given object implements the BulkAggregateQuestionItem interface. */ function instanceOfBulkAggregateQuestionItem(value) { if (!('aggId' in value) || value['aggId'] === undefined) return false; return true; } function BulkAggregateQuestionItemFromJSON(json) { return BulkAggregateQuestionItemFromJSONTyped(json, false); } function BulkAggregateQuestionItemFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'aggId': json['aggId'], 'questionId': json['questionId'] == null ? undefined : json['questionId'], 'questionIds': json['questionIds'] == null ? undefined : json['questionIds'], 'urlId': json['urlId'] == null ? undefined : json['urlId'], 'timeBucket': json['timeBucket'] == null ? undefined : (0, AggregateTimeBucket_1.AggregateTimeBucketFromJSON)(json['timeBucket']), 'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])), }; } function BulkAggregateQuestionItemToJSON(json) { return BulkAggregateQuestionItemToJSONTyped(json, false); } function BulkAggregateQuestionItemToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'aggId': value['aggId'], 'questionId': value['questionId'], 'questionIds': value['questionIds'], 'urlId': value['urlId'], 'timeBucket': (0, AggregateTimeBucket_1.AggregateTimeBucketToJSON)(value['timeBucket']), 'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()), }; } //# sourceMappingURL=BulkAggregateQuestionItem.js.map