@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
48 lines (47 loc) • 1.32 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.
*/
/**
* @export
*/
export const MessageStopEvent1TypeEnum = {
MessageStop: 'message_stop'
};
/**
* Check if a given object implements the MessageStopEvent1 interface.
*/
export function instanceOfMessageStopEvent1(value) {
return true;
}
export function MessageStopEvent1FromJSON(json) {
return MessageStopEvent1FromJSONTyped(json, false);
}
export function MessageStopEvent1FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
};
}
export function MessageStopEvent1ToJSON(json) {
return MessageStopEvent1ToJSONTyped(json, false);
}
export function MessageStopEvent1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
};
}