/* 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 { ApiReportResultsDTO } from './ApiReportResultsDTO'; import { ApiReportResultsDTOFromJSON, ApiReportResultsDTOFromJSONTyped, ApiReportResultsDTOToJSON, ApiReportResultsDTOToJSONTyped, } from './ApiReportResultsDTO'; /** * * @export * @interface ApiReportHistoryDTO */ export interface ApiReportHistoryDTO { /** * * @type {string} * @memberof ApiReportHistoryDTO */ applicationId?: string; /** * * @type {Array} * @memberof ApiReportHistoryDTO */ reports?: Array; } /** * Check if a given object implements the ApiReportHistoryDTO interface. */ export function instanceOfApiReportHistoryDTO(value: object): value is ApiReportHistoryDTO { return true; } export function ApiReportHistoryDTOFromJSON(json: any): ApiReportHistoryDTO { return ApiReportHistoryDTOFromJSONTyped(json, false); } export function ApiReportHistoryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReportHistoryDTO { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'reports': json['reports'] == null ? undefined : ((json['reports'] as Array).map(ApiReportResultsDTOFromJSON)), }; } export function ApiReportHistoryDTOToJSON(json: any): ApiReportHistoryDTO { return ApiReportHistoryDTOToJSONTyped(json, false); } export function ApiReportHistoryDTOToJSONTyped(value?: ApiReportHistoryDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'reports': value['reports'] == null ? undefined : ((value['reports'] as Array).map(ApiReportResultsDTOToJSON)), }; }