80 lines
1.8 KiB
TypeScript
80 lines
1.8 KiB
TypeScript
/* 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 RobertaEmotionResponse
|
|
*/
|
|
export interface RobertaEmotionResponse {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RobertaEmotionResponse
|
|
*/
|
|
joy: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RobertaEmotionResponse
|
|
*/
|
|
sadness: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RobertaEmotionResponse
|
|
*/
|
|
anger: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RobertaEmotionResponse
|
|
*/
|
|
optimism: number;
|
|
}
|
|
|
|
export function RobertaEmotionResponseFromJSON(json: any): RobertaEmotionResponse {
|
|
return RobertaEmotionResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function RobertaEmotionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RobertaEmotionResponse {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'joy': json['joy'],
|
|
'sadness': json['sadness'],
|
|
'anger': json['anger'],
|
|
'optimism': json['optimism'],
|
|
};
|
|
}
|
|
|
|
export function RobertaEmotionResponseToJSON(value?: RobertaEmotionResponse | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'joy': value.joy,
|
|
'sadness': value.sadness,
|
|
'anger': value.anger,
|
|
'optimism': value.optimism,
|
|
};
|
|
}
|
|
|