@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
56 lines (55 loc) • 1.64 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.
*/
import { DeepNewsModelFromJSON, DeepNewsModelToJSON, } from './DeepNewsModel';
/**
* @export
*/
export const DeepNewsModelItemTypeEnum = {
Rich: 'rich',
Fast: 'fast'
};
/**
* Check if a given object implements the DeepNewsModelItem interface.
*/
export function instanceOfDeepNewsModelItem(value) {
if (!('model' in value) || value['model'] === undefined)
return false;
if (!('type' in value) || value['type'] === undefined)
return false;
return true;
}
export function DeepNewsModelItemFromJSON(json) {
return DeepNewsModelItemFromJSONTyped(json, false);
}
export function DeepNewsModelItemFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'model': DeepNewsModelFromJSON(json['model']),
'type': json['type'],
};
}
export function DeepNewsModelItemToJSON(json) {
return DeepNewsModelItemToJSONTyped(json, false);
}
export function DeepNewsModelItemToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'model': DeepNewsModelToJSON(value['model']),
'type': value['type'],
};
}