UNPKG

fastcomments-sdk

Version:

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

57 lines 2.27 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.instanceOfGetQuestionResultsResponse = instanceOfGetQuestionResultsResponse; exports.GetQuestionResultsResponseFromJSON = GetQuestionResultsResponseFromJSON; exports.GetQuestionResultsResponseFromJSONTyped = GetQuestionResultsResponseFromJSONTyped; exports.GetQuestionResultsResponseToJSON = GetQuestionResultsResponseToJSON; exports.GetQuestionResultsResponseToJSONTyped = GetQuestionResultsResponseToJSONTyped; const APIStatus_1 = require("./APIStatus"); const QuestionResult_1 = require("./QuestionResult"); /** * Check if a given object implements the GetQuestionResultsResponse interface. */ function instanceOfGetQuestionResultsResponse(value) { if (!('status' in value) || value['status'] === undefined) return false; if (!('questionResults' in value) || value['questionResults'] === undefined) return false; return true; } function GetQuestionResultsResponseFromJSON(json) { return GetQuestionResultsResponseFromJSONTyped(json, false); } function GetQuestionResultsResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'status': (0, APIStatus_1.APIStatusFromJSON)(json['status']), 'questionResults': (json['questionResults'].map(QuestionResult_1.QuestionResultFromJSON)), }; } function GetQuestionResultsResponseToJSON(json) { return GetQuestionResultsResponseToJSONTyped(json, false); } function GetQuestionResultsResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'status': (0, APIStatus_1.APIStatusToJSON)(value['status']), 'questionResults': (value['questionResults'].map(QuestionResult_1.QuestionResultToJSON)), }; } //# sourceMappingURL=GetQuestionResultsResponse.js.map