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

65 lines
1.4 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 RobertaHateResponse
*/
export interface RobertaHateResponse {
/**
*
* @type {number}
* @memberof RobertaHateResponse
*/
noHate: number;
/**
*
* @type {number}
* @memberof RobertaHateResponse
*/
hate: number;
}
export function RobertaHateResponseFromJSON(json: any): RobertaHateResponse {
return RobertaHateResponseFromJSONTyped(json, false);
}
export function RobertaHateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RobertaHateResponse {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'noHate': json['noHate'],
'hate': json['hate'],
};
}
export function RobertaHateResponseToJSON(value?: RobertaHateResponse | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'noHate': value.noHate,
'hate': value.hate,
};
}