@indexea/sdk
Version:
Indexea JavaScript SDK (indexea.com)
74 lines (64 loc) • 1.56 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Indexea OpenAPI
* OpenAPI of Indexea
*
* The version of the OpenAPI document: 1.0.0
* Contact: indexea.com@gmail.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
* 分词对象
* @export
* @interface Analyze
*/
export interface Analyze {
/**
*
* @type {string}
* @memberof Analyze
*/
analyzer?: string;
/**
*
* @type {string}
* @memberof Analyze
*/
text?: string;
}
/**
* Check if a given object implements the Analyze interface.
*/
export function instanceOfAnalyze(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AnalyzeFromJSON(json: any): Analyze {
return AnalyzeFromJSONTyped(json, false);
}
export function AnalyzeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Analyze {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'analyzer': !exists(json, 'analyzer') ? undefined : json['analyzer'],
'text': !exists(json, 'text') ? undefined : json['text'],
};
}
export function AnalyzeToJSON(value?: Analyze | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'analyzer': value.analyzer,
'text': value.text,
};
}