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

65 lines
1.5 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 RobertaOffensiveResponse
*/
export interface RobertaOffensiveResponse {
/**
*
* @type {number}
* @memberof RobertaOffensiveResponse
*/
noOffensive: number;
/**
*
* @type {number}
* @memberof RobertaOffensiveResponse
*/
offensive: number;
}
export function RobertaOffensiveResponseFromJSON(json: any): RobertaOffensiveResponse {
return RobertaOffensiveResponseFromJSONTyped(json, false);
}
export function RobertaOffensiveResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RobertaOffensiveResponse {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'noOffensive': json['noOffensive'],
'offensive': json['offensive'],
};
}
export function RobertaOffensiveResponseToJSON(value?: RobertaOffensiveResponse | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'noOffensive': value.noOffensive,
'offensive': value.offensive,
};
}