fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
56 lines • 2.06 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.instanceOfGetPageReactsResponse = instanceOfGetPageReactsResponse;
exports.GetPageReactsResponseFromJSON = GetPageReactsResponseFromJSON;
exports.GetPageReactsResponseFromJSONTyped = GetPageReactsResponseFromJSONTyped;
exports.GetPageReactsResponseToJSON = GetPageReactsResponseToJSON;
exports.GetPageReactsResponseToJSONTyped = GetPageReactsResponseToJSONTyped;
const APIStatus_1 = require("./APIStatus");
/**
* Check if a given object implements the GetPageReactsResponse interface.
*/
function instanceOfGetPageReactsResponse(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
return true;
}
function GetPageReactsResponseFromJSON(json) {
return GetPageReactsResponseFromJSONTyped(json, false);
}
function GetPageReactsResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']),
'counts': json['counts'] == null ? undefined : json['counts'],
'reactedIds': json['reactedIds'] == null ? undefined : json['reactedIds'],
};
}
function GetPageReactsResponseToJSON(json) {
return GetPageReactsResponseToJSONTyped(json, false);
}
function GetPageReactsResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'status': (0, APIStatus_1.APIStatusToJSON)(value['status']),
'counts': value['counts'],
'reactedIds': value['reactedIds'],
};
}
//# sourceMappingURL=GetPageReactsResponse.js.map