fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
65 lines • 2.38 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.instanceOfCreateAPIPageData = instanceOfCreateAPIPageData;
exports.CreateAPIPageDataFromJSON = CreateAPIPageDataFromJSON;
exports.CreateAPIPageDataFromJSONTyped = CreateAPIPageDataFromJSONTyped;
exports.CreateAPIPageDataToJSON = CreateAPIPageDataToJSON;
exports.CreateAPIPageDataToJSONTyped = CreateAPIPageDataToJSONTyped;
/**
* Check if a given object implements the CreateAPIPageData interface.
*/
function instanceOfCreateAPIPageData(value) {
if (!('title' in value) || value['title'] === undefined)
return false;
if (!('url' in value) || value['url'] === undefined)
return false;
if (!('urlId' in value) || value['urlId'] === undefined)
return false;
return true;
}
function CreateAPIPageDataFromJSON(json) {
return CreateAPIPageDataFromJSONTyped(json, false);
}
function CreateAPIPageDataFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'accessibleByGroupIds': json['accessibleByGroupIds'] == null ? undefined : json['accessibleByGroupIds'],
'rootCommentCount': json['rootCommentCount'] == null ? undefined : json['rootCommentCount'],
'commentCount': json['commentCount'] == null ? undefined : json['commentCount'],
'title': json['title'],
'url': json['url'],
'urlId': json['urlId'],
};
}
function CreateAPIPageDataToJSON(json) {
return CreateAPIPageDataToJSONTyped(json, false);
}
function CreateAPIPageDataToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'accessibleByGroupIds': value['accessibleByGroupIds'],
'rootCommentCount': value['rootCommentCount'],
'commentCount': value['commentCount'],
'title': value['title'],
'url': value['url'],
'urlId': value['urlId'],
};
}
//# sourceMappingURL=CreateAPIPageData.js.map