alas/web/service/openapi/models/RobertaSentimentResponse.ts

73 lines
1.7 KiB
TypeScript
Raw Normal View History

2022-07-03 15:29:11 +00:00
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.0
*
*
* 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 RobertaSentimentResponse
*/
export interface RobertaSentimentResponse {
/**
*
* @type {number}
* @memberof RobertaSentimentResponse
*/
negative: number;
/**
*
* @type {number}
* @memberof RobertaSentimentResponse
*/
neutral: number;
/**
*
* @type {number}
* @memberof RobertaSentimentResponse
*/
positive: number;
}
export function RobertaSentimentResponseFromJSON(json: any): RobertaSentimentResponse {
return RobertaSentimentResponseFromJSONTyped(json, false);
}
export function RobertaSentimentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RobertaSentimentResponse {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'negative': json['negative'],
'neutral': json['neutral'],
'positive': json['positive'],
};
}
export function RobertaSentimentResponseToJSON(value?: RobertaSentimentResponse | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'negative': value.negative,
'neutral': value.neutral,
'positive': value.positive,
};
}