UNPKG

fastcomments-sdk

Version:

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

60 lines 2.24 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.instanceOfPatchPageAPIResponse = instanceOfPatchPageAPIResponse; exports.PatchPageAPIResponseFromJSON = PatchPageAPIResponseFromJSON; exports.PatchPageAPIResponseFromJSONTyped = PatchPageAPIResponseFromJSONTyped; exports.PatchPageAPIResponseToJSON = PatchPageAPIResponseToJSON; exports.PatchPageAPIResponseToJSONTyped = PatchPageAPIResponseToJSONTyped; const APIPage_1 = require("./APIPage"); /** * Check if a given object implements the PatchPageAPIResponse interface. */ function instanceOfPatchPageAPIResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function PatchPageAPIResponseFromJSON(json) { return PatchPageAPIResponseFromJSONTyped(json, false); } function PatchPageAPIResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reason': json['reason'] == null ? undefined : json['reason'], 'code': json['code'] == null ? undefined : json['code'], 'commentsUpdated': json['commentsUpdated'] == null ? undefined : json['commentsUpdated'], 'page': json['page'] == null ? undefined : (0, APIPage_1.APIPageFromJSON)(json['page']), 'status': json['status'], }; } function PatchPageAPIResponseToJSON(json) { return PatchPageAPIResponseToJSONTyped(json, false); } function PatchPageAPIResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reason': value['reason'], 'code': value['code'], 'commentsUpdated': value['commentsUpdated'], 'page': (0, APIPage_1.APIPageToJSON)(value['page']), 'status': value['status'], }; } //# sourceMappingURL=PatchPageAPIResponse.js.map