UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

61 lines 2.29 kB
"use strict"; /* 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.instanceOfGetPublicPagesResponse = instanceOfGetPublicPagesResponse; exports.GetPublicPagesResponseFromJSON = GetPublicPagesResponseFromJSON; exports.GetPublicPagesResponseFromJSONTyped = GetPublicPagesResponseFromJSONTyped; exports.GetPublicPagesResponseToJSON = GetPublicPagesResponseToJSON; exports.GetPublicPagesResponseToJSONTyped = GetPublicPagesResponseToJSONTyped; const APIStatus_1 = require("./APIStatus"); const PublicPage_1 = require("./PublicPage"); /** * Check if a given object implements the GetPublicPagesResponse interface. */ function instanceOfGetPublicPagesResponse(value) { if (!('nextCursor' in value) || value['nextCursor'] === undefined) return false; if (!('pages' in value) || value['pages'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } function GetPublicPagesResponseFromJSON(json) { return GetPublicPagesResponseFromJSONTyped(json, false); } function GetPublicPagesResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nextCursor': json['nextCursor'], 'pages': (json['pages'].map(PublicPage_1.PublicPageFromJSON)), 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function GetPublicPagesResponseToJSON(json) { return GetPublicPagesResponseToJSONTyped(json, false); } function GetPublicPagesResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'nextCursor': value['nextCursor'], 'pages': (value['pages'].map(PublicPage_1.PublicPageToJSON)), 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=GetPublicPagesResponse.js.map