@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
61 lines (60 loc) • 1.93 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API [](https://status.asknews.app/status/prod)
*
* The version of the OpenAPI document: 0.24.66
* 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.Source1ToJSONTyped = exports.Source1ToJSON = exports.Source1FromJSONTyped = exports.Source1FromJSON = exports.instanceOfSource1 = exports.Source1KindEnum = void 0;
const ChartResponse_1 = require("./ChartResponse");
/**
* @export
*/
exports.Source1KindEnum = {
Chart: 'chart'
};
/**
* Check if a given object implements the Source1 interface.
*/
function instanceOfSource1(value) {
if (!('data' in value) || value['data'] === undefined)
return false;
return true;
}
exports.instanceOfSource1 = instanceOfSource1;
function Source1FromJSON(json) {
return Source1FromJSONTyped(json, false);
}
exports.Source1FromJSON = Source1FromJSON;
function Source1FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'kind': json['kind'] == null ? undefined : json['kind'],
'data': (0, ChartResponse_1.ChartResponseFromJSON)(json['data']),
};
}
exports.Source1FromJSONTyped = Source1FromJSONTyped;
function Source1ToJSON(json) {
return Source1ToJSONTyped(json, false);
}
exports.Source1ToJSON = Source1ToJSON;
function Source1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'kind': value['kind'],
'data': (0, ChartResponse_1.ChartResponseToJSON)(value['data']),
};
}
exports.Source1ToJSONTyped = Source1ToJSONTyped;