/* 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'; import type { ApiComponentDetailsDTOV2 } from './ApiComponentDetailsDTOV2'; import { ApiComponentDetailsDTOV2FromJSON, ApiComponentDetailsDTOV2FromJSONTyped, ApiComponentDetailsDTOV2ToJSON, ApiComponentDetailsDTOV2ToJSONTyped, } from './ApiComponentDetailsDTOV2'; /** * * @export * @interface ApiComponentEvaluationResultDTOV2 */ export interface ApiComponentEvaluationResultDTOV2 { /** * * @type {string} * @memberof ApiComponentEvaluationResultDTOV2 */ applicationId?: string; /** * * @type {string} * @memberof ApiComponentEvaluationResultDTOV2 */ errorMessage?: string | null; /** * * @type {Date} * @memberof ApiComponentEvaluationResultDTOV2 */ evaluationDate?: Date; /** * * @type {boolean} * @memberof ApiComponentEvaluationResultDTOV2 */ isError?: boolean; /** * * @type {Array} * @memberof ApiComponentEvaluationResultDTOV2 */ results?: Array; /** * * @type {Date} * @memberof ApiComponentEvaluationResultDTOV2 */ submittedDate?: Date; } /** * Check if a given object implements the ApiComponentEvaluationResultDTOV2 interface. */ export function instanceOfApiComponentEvaluationResultDTOV2(value: object): value is ApiComponentEvaluationResultDTOV2 { return true; } export function ApiComponentEvaluationResultDTOV2FromJSON(json: any): ApiComponentEvaluationResultDTOV2 { return ApiComponentEvaluationResultDTOV2FromJSONTyped(json, false); } export function ApiComponentEvaluationResultDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentEvaluationResultDTOV2 { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'], 'evaluationDate': json['evaluationDate'] == null ? undefined : (new Date(json['evaluationDate'])), 'isError': json['isError'] == null ? undefined : json['isError'], 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(ApiComponentDetailsDTOV2FromJSON)), 'submittedDate': json['submittedDate'] == null ? undefined : (new Date(json['submittedDate'])), }; } export function ApiComponentEvaluationResultDTOV2ToJSON(json: any): ApiComponentEvaluationResultDTOV2 { return ApiComponentEvaluationResultDTOV2ToJSONTyped(json, false); } export function ApiComponentEvaluationResultDTOV2ToJSONTyped(value?: ApiComponentEvaluationResultDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'errorMessage': value['errorMessage'], 'evaluationDate': value['evaluationDate'] == null ? value['evaluationDate'] : value['evaluationDate'].toISOString(), 'isError': value['isError'], 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(ApiComponentDetailsDTOV2ToJSON)), 'submittedDate': value['submittedDate'] == null ? value['submittedDate'] : value['submittedDate'].toISOString(), }; }