fastcomments-sdk
Version:
FastComments API Client - A SDK for interacting with the FastComments API
58 lines • 2.05 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.instanceOfAddPageAPIResponse = instanceOfAddPageAPIResponse;
exports.AddPageAPIResponseFromJSON = AddPageAPIResponseFromJSON;
exports.AddPageAPIResponseFromJSONTyped = AddPageAPIResponseFromJSONTyped;
exports.AddPageAPIResponseToJSON = AddPageAPIResponseToJSON;
exports.AddPageAPIResponseToJSONTyped = AddPageAPIResponseToJSONTyped;
const APIPage_1 = require("./APIPage");
/**
* Check if a given object implements the AddPageAPIResponse interface.
*/
function instanceOfAddPageAPIResponse(value) {
if (!('status' in value) || value['status'] === undefined)
return false;
return true;
}
function AddPageAPIResponseFromJSON(json) {
return AddPageAPIResponseFromJSONTyped(json, false);
}
function AddPageAPIResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'reason': json['reason'] == null ? undefined : json['reason'],
'code': json['code'] == null ? undefined : json['code'],
'page': json['page'] == null ? undefined : (0, APIPage_1.APIPageFromJSON)(json['page']),
'status': json['status'],
};
}
function AddPageAPIResponseToJSON(json) {
return AddPageAPIResponseToJSONTyped(json, false);
}
function AddPageAPIResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'reason': value['reason'],
'code': value['code'],
'page': (0, APIPage_1.APIPageToJSON)(value['page']),
'status': value['status'],
};
}
//# sourceMappingURL=AddPageAPIResponse.js.map