/* 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 { ApiReportComponentDTOV2 } from './ApiReportComponentDTOV2'; import { ApiReportComponentDTOV2FromJSON, ApiReportComponentDTOV2FromJSONTyped, ApiReportComponentDTOV2ToJSON, ApiReportComponentDTOV2ToJSONTyped, } from './ApiReportComponentDTOV2'; import type { ApiMatchStateSummaryDTOV2 } from './ApiMatchStateSummaryDTOV2'; import { ApiMatchStateSummaryDTOV2FromJSON, ApiMatchStateSummaryDTOV2FromJSONTyped, ApiMatchStateSummaryDTOV2ToJSON, ApiMatchStateSummaryDTOV2ToJSONTyped, } from './ApiMatchStateSummaryDTOV2'; import type { ApiGlobalInformationDTOV2 } from './ApiGlobalInformationDTOV2'; import { ApiGlobalInformationDTOV2FromJSON, ApiGlobalInformationDTOV2FromJSONTyped, ApiGlobalInformationDTOV2ToJSON, ApiGlobalInformationDTOV2ToJSONTyped, } from './ApiGlobalInformationDTOV2'; /** * * @export * @interface ApiReportRawDataDTOV2 */ export interface ApiReportRawDataDTOV2 { /** * * @type {Array} * @memberof ApiReportRawDataDTOV2 */ components?: Array; /** * * @type {ApiGlobalInformationDTOV2} * @memberof ApiReportRawDataDTOV2 */ globalInformation?: ApiGlobalInformationDTOV2; /** * * @type {ApiMatchStateSummaryDTOV2} * @memberof ApiReportRawDataDTOV2 */ matchSummary?: ApiMatchStateSummaryDTOV2; } /** * Check if a given object implements the ApiReportRawDataDTOV2 interface. */ export function instanceOfApiReportRawDataDTOV2(value: object): value is ApiReportRawDataDTOV2 { return true; } export function ApiReportRawDataDTOV2FromJSON(json: any): ApiReportRawDataDTOV2 { return ApiReportRawDataDTOV2FromJSONTyped(json, false); } export function ApiReportRawDataDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReportRawDataDTOV2 { if (json == null) { return json; } return { 'components': json['components'] == null ? undefined : ((json['components'] as Array).map(ApiReportComponentDTOV2FromJSON)), 'globalInformation': json['globalInformation'] == null ? undefined : ApiGlobalInformationDTOV2FromJSON(json['globalInformation']), 'matchSummary': json['matchSummary'] == null ? undefined : ApiMatchStateSummaryDTOV2FromJSON(json['matchSummary']), }; } export function ApiReportRawDataDTOV2ToJSON(json: any): ApiReportRawDataDTOV2 { return ApiReportRawDataDTOV2ToJSONTyped(json, false); } export function ApiReportRawDataDTOV2ToJSONTyped(value?: ApiReportRawDataDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'components': value['components'] == null ? undefined : ((value['components'] as Array).map(ApiReportComponentDTOV2ToJSON)), 'globalInformation': ApiGlobalInformationDTOV2ToJSON(value['globalInformation']), 'matchSummary': ApiMatchStateSummaryDTOV2ToJSON(value['matchSummary']), }; }