@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
50 lines (49 loc) • 1.41 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 AnthropicTextBlockTypeEnum = {
Text: 'text'
};
/**
* Check if a given object implements the AnthropicTextBlock interface.
*/
export function instanceOfAnthropicTextBlock(value) {
return true;
}
export function AnthropicTextBlockFromJSON(json) {
return AnthropicTextBlockFromJSONTyped(json, false);
}
export function AnthropicTextBlockFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'text': json['text'] == null ? undefined : json['text'],
};
}
export function AnthropicTextBlockToJSON(json) {
return AnthropicTextBlockToJSONTyped(json, false);
}
export function AnthropicTextBlockToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'text': value['text'],
};
}