UNPKG

fastcomments-sdk

Version:

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

58 lines 2.19 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.instanceOfGetPageByURLIdAPIResponse = instanceOfGetPageByURLIdAPIResponse; exports.GetPageByURLIdAPIResponseFromJSON = GetPageByURLIdAPIResponseFromJSON; exports.GetPageByURLIdAPIResponseFromJSONTyped = GetPageByURLIdAPIResponseFromJSONTyped; exports.GetPageByURLIdAPIResponseToJSON = GetPageByURLIdAPIResponseToJSON; exports.GetPageByURLIdAPIResponseToJSONTyped = GetPageByURLIdAPIResponseToJSONTyped; const APIPage_1 = require("./APIPage"); /** * Check if a given object implements the GetPageByURLIdAPIResponse interface. */ function instanceOfGetPageByURLIdAPIResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function GetPageByURLIdAPIResponseFromJSON(json) { return GetPageByURLIdAPIResponseFromJSONTyped(json, false); } function GetPageByURLIdAPIResponseFromJSONTyped(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 GetPageByURLIdAPIResponseToJSON(json) { return GetPageByURLIdAPIResponseToJSONTyped(json, false); } function GetPageByURLIdAPIResponseToJSONTyped(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=GetPageByURLIdAPIResponse.js.map