UNPKG

fastcomments-sdk

Version:

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

55 lines 1.68 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.instanceOfQuestionDatum = instanceOfQuestionDatum; exports.QuestionDatumFromJSON = QuestionDatumFromJSON; exports.QuestionDatumFromJSONTyped = QuestionDatumFromJSONTyped; exports.QuestionDatumToJSON = QuestionDatumToJSON; exports.QuestionDatumToJSONTyped = QuestionDatumToJSONTyped; /** * Check if a given object implements the QuestionDatum interface. */ function instanceOfQuestionDatum(value) { if (!('v' in value) || value['v'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } function QuestionDatumFromJSON(json) { return QuestionDatumFromJSONTyped(json, false); } function QuestionDatumFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'v': json['v'], 'total': json['total'], }; } function QuestionDatumToJSON(json) { return QuestionDatumToJSONTyped(json, false); } function QuestionDatumToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'v': value['v'], 'total': value['total'], }; } //# sourceMappingURL=QuestionDatum.js.map