fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
56 lines • 2.23 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.instanceOfFindCommentsByRangeResponse = instanceOfFindCommentsByRangeResponse;
exports.FindCommentsByRangeResponseFromJSON = FindCommentsByRangeResponseFromJSON;
exports.FindCommentsByRangeResponseFromJSONTyped = FindCommentsByRangeResponseFromJSONTyped;
exports.FindCommentsByRangeResponseToJSON = FindCommentsByRangeResponseToJSON;
exports.FindCommentsByRangeResponseToJSONTyped = FindCommentsByRangeResponseToJSONTyped;
const FindCommentsByRangeItem_1 = require("./FindCommentsByRangeItem");
/**
* Check if a given object implements the FindCommentsByRangeResponse interface.
*/
function instanceOfFindCommentsByRangeResponse(value) {
if (!('results' in value) || value['results'] === undefined)
return false;
if (!('createdAt' in value) || value['createdAt'] === undefined)
return false;
return true;
}
function FindCommentsByRangeResponseFromJSON(json) {
return FindCommentsByRangeResponseFromJSONTyped(json, false);
}
function FindCommentsByRangeResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'results': (json['results'].map(FindCommentsByRangeItem_1.FindCommentsByRangeItemFromJSON)),
'createdAt': (new Date(json['createdAt'])),
};
}
function FindCommentsByRangeResponseToJSON(json) {
return FindCommentsByRangeResponseToJSONTyped(json, false);
}
function FindCommentsByRangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'results': (value['results'].map(FindCommentsByRangeItem_1.FindCommentsByRangeItemToJSON)),
'createdAt': ((value['createdAt']).toISOString()),
};
}
//# sourceMappingURL=FindCommentsByRangeResponse.js.map