@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
58 lines (57 loc) • 2.05 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.AnthropicTextBlock1ToJSONTyped = exports.AnthropicTextBlock1ToJSON = exports.AnthropicTextBlock1FromJSONTyped = exports.AnthropicTextBlock1FromJSON = exports.instanceOfAnthropicTextBlock1 = exports.AnthropicTextBlock1TypeEnum = void 0;
/**
* @export
*/
exports.AnthropicTextBlock1TypeEnum = {
Text: 'text'
};
/**
* Check if a given object implements the AnthropicTextBlock1 interface.
*/
function instanceOfAnthropicTextBlock1(value) {
return true;
}
exports.instanceOfAnthropicTextBlock1 = instanceOfAnthropicTextBlock1;
function AnthropicTextBlock1FromJSON(json) {
return AnthropicTextBlock1FromJSONTyped(json, false);
}
exports.AnthropicTextBlock1FromJSON = AnthropicTextBlock1FromJSON;
function AnthropicTextBlock1FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'text': json['text'] == null ? undefined : json['text'],
};
}
exports.AnthropicTextBlock1FromJSONTyped = AnthropicTextBlock1FromJSONTyped;
function AnthropicTextBlock1ToJSON(json) {
return AnthropicTextBlock1ToJSONTyped(json, false);
}
exports.AnthropicTextBlock1ToJSON = AnthropicTextBlock1ToJSON;
function AnthropicTextBlock1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'text': value['text'],
};
}
exports.AnthropicTextBlock1ToJSONTyped = AnthropicTextBlock1ToJSONTyped;