@emergentmethods/asknews-typescript-sdk
Version:
Typescript SDK for AskNews API
60 lines (59 loc) • 2.29 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.AnthropicInputJsonDelta1ToJSONTyped = exports.AnthropicInputJsonDelta1ToJSON = exports.AnthropicInputJsonDelta1FromJSONTyped = exports.AnthropicInputJsonDelta1FromJSON = exports.instanceOfAnthropicInputJsonDelta1 = exports.AnthropicInputJsonDelta1TypeEnum = void 0;
/**
* @export
*/
exports.AnthropicInputJsonDelta1TypeEnum = {
InputJsonDelta: 'input_json_delta'
};
/**
* Check if a given object implements the AnthropicInputJsonDelta1 interface.
*/
function instanceOfAnthropicInputJsonDelta1(value) {
if (!('partialJson' in value) || value['partialJson'] === undefined)
return false;
return true;
}
exports.instanceOfAnthropicInputJsonDelta1 = instanceOfAnthropicInputJsonDelta1;
function AnthropicInputJsonDelta1FromJSON(json) {
return AnthropicInputJsonDelta1FromJSONTyped(json, false);
}
exports.AnthropicInputJsonDelta1FromJSON = AnthropicInputJsonDelta1FromJSON;
function AnthropicInputJsonDelta1FromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'type': json['type'] == null ? undefined : json['type'],
'partialJson': json['partial_json'],
};
}
exports.AnthropicInputJsonDelta1FromJSONTyped = AnthropicInputJsonDelta1FromJSONTyped;
function AnthropicInputJsonDelta1ToJSON(json) {
return AnthropicInputJsonDelta1ToJSONTyped(json, false);
}
exports.AnthropicInputJsonDelta1ToJSON = AnthropicInputJsonDelta1ToJSON;
function AnthropicInputJsonDelta1ToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'type': value['type'],
'partial_json': value['partialJson'],
};
}
exports.AnthropicInputJsonDelta1ToJSONTyped = AnthropicInputJsonDelta1ToJSONTyped;