fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
57 lines • 2.12 kB
JavaScript
;
/* 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.instanceOfAggregationValue = instanceOfAggregationValue;
exports.AggregationValueFromJSON = AggregationValueFromJSON;
exports.AggregationValueFromJSONTyped = AggregationValueFromJSONTyped;
exports.AggregationValueToJSON = AggregationValueToJSON;
exports.AggregationValueToJSONTyped = AggregationValueToJSONTyped;
/**
* Check if a given object implements the AggregationValue interface.
*/
function instanceOfAggregationValue(value) {
return true;
}
function AggregationValueFromJSON(json) {
return AggregationValueFromJSONTyped(json, false);
}
function AggregationValueFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'groups': json['groups'] == null ? undefined : json['groups'],
'stringValue': json['stringValue'] == null ? undefined : json['stringValue'],
'numericValue': json['numericValue'] == null ? undefined : json['numericValue'],
'distinctCount': json['distinctCount'] == null ? undefined : json['distinctCount'],
'distinctCounts': json['distinctCounts'] == null ? undefined : json['distinctCounts'],
};
}
function AggregationValueToJSON(json) {
return AggregationValueToJSONTyped(json, false);
}
function AggregationValueToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'groups': value['groups'],
'stringValue': value['stringValue'],
'numericValue': value['numericValue'],
'distinctCount': value['distinctCount'],
'distinctCounts': value['distinctCounts'],
};
}
//# sourceMappingURL=AggregationValue.js.map