UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
53 lines (52 loc) 1.91 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.21.1 * Contact: contact@emergentmethods.ai * * 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.RedditResponseToJSONTyped = exports.RedditResponseToJSON = exports.RedditResponseFromJSONTyped = exports.RedditResponseFromJSON = exports.instanceOfRedditResponse = void 0; const RedditThread_1 = require("./RedditThread"); /** * Check if a given object implements the RedditResponse interface. */ function instanceOfRedditResponse(value) { return true; } exports.instanceOfRedditResponse = instanceOfRedditResponse; function RedditResponseFromJSON(json) { return RedditResponseFromJSONTyped(json, false); } exports.RedditResponseFromJSON = RedditResponseFromJSON; function RedditResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'asDicts': json['as_dicts'] == null ? undefined : (json['as_dicts'].map(RedditThread_1.RedditThreadFromJSON)), 'asString': json['as_string'] == null ? undefined : json['as_string'], }; } exports.RedditResponseFromJSONTyped = RedditResponseFromJSONTyped; function RedditResponseToJSON(json) { return RedditResponseToJSONTyped(json, false); } exports.RedditResponseToJSON = RedditResponseToJSON; function RedditResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'as_dicts': value['asDicts'] == null ? undefined : (value['asDicts'].map(RedditThread_1.RedditThreadToJSON)), 'as_string': value['asString'], }; } exports.RedditResponseToJSONTyped = RedditResponseToJSONTyped;