UNPKG

fastcomments-sdk

Version:

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

54 lines 1.84 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.instanceOfCreateV1PageReact = instanceOfCreateV1PageReact; exports.CreateV1PageReactFromJSON = CreateV1PageReactFromJSON; exports.CreateV1PageReactFromJSONTyped = CreateV1PageReactFromJSONTyped; exports.CreateV1PageReactToJSON = CreateV1PageReactToJSON; exports.CreateV1PageReactToJSONTyped = CreateV1PageReactToJSONTyped; const APIStatus_1 = require("./APIStatus"); /** * Check if a given object implements the CreateV1PageReact interface. */ function instanceOfCreateV1PageReact(value) { if (!('status' in value) || value['status'] === undefined) return false; return true; } function CreateV1PageReactFromJSON(json) { return CreateV1PageReactFromJSONTyped(json, false); } function CreateV1PageReactFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'code': json['code'] == null ? undefined : json['code'], 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), }; } function CreateV1PageReactToJSON(json) { return CreateV1PageReactToJSONTyped(json, false); } function CreateV1PageReactToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'code': value['code'], 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), }; } //# sourceMappingURL=CreateV1PageReact.js.map