/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ApiEvaluationResultCounterDTO */ export interface ApiEvaluationResultCounterDTO { /** * * @type {number} * @memberof ApiEvaluationResultCounterDTO */ critical?: number; /** * * @type {number} * @memberof ApiEvaluationResultCounterDTO */ moderate?: number; /** * * @type {number} * @memberof ApiEvaluationResultCounterDTO */ severe?: number; } /** * Check if a given object implements the ApiEvaluationResultCounterDTO interface. */ export function instanceOfApiEvaluationResultCounterDTO(value: object): value is ApiEvaluationResultCounterDTO { return true; } export function ApiEvaluationResultCounterDTOFromJSON(json: any): ApiEvaluationResultCounterDTO { return ApiEvaluationResultCounterDTOFromJSONTyped(json, false); } export function ApiEvaluationResultCounterDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEvaluationResultCounterDTO { if (json == null) { return json; } return { 'critical': json['critical'] == null ? undefined : json['critical'], 'moderate': json['moderate'] == null ? undefined : json['moderate'], 'severe': json['severe'] == null ? undefined : json['severe'], }; } export function ApiEvaluationResultCounterDTOToJSON(json: any): ApiEvaluationResultCounterDTO { return ApiEvaluationResultCounterDTOToJSONTyped(json, false); } export function ApiEvaluationResultCounterDTOToJSONTyped(value?: ApiEvaluationResultCounterDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'critical': value['critical'], 'moderate': value['moderate'], 'severe': value['severe'], }; }