@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
50 lines (49 loc) • 1.26 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* AskNews API
* AskNews API
*
* The version of the OpenAPI document: 0.16.2
* 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 { ReportParamsFromJSON, ReportParamsToJSON, } from './ReportParams';
/**
* @export
*/
export const ReportActionActionEnum = {
Report: 'report'
};
/**
* Check if a given object implements the ReportAction interface.
*/
export function instanceOfReportAction(value) {
if (!('params' in value))
return false;
return true;
}
export function ReportActionFromJSON(json) {
return ReportActionFromJSONTyped(json, false);
}
export function ReportActionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'action': json['action'] == null ? undefined : json['action'],
'params': ReportParamsFromJSON(json['params']),
};
}
export function ReportActionToJSON(value) {
if (value == null) {
return value;
}
return {
'action': value['action'],
'params': ReportParamsToJSON(value['params']),
};
}