/* 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 ApiApplicationReportDTOV2 */ export interface ApiApplicationReportDTOV2 { /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ applicationId?: string; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ embeddableReportHtmlUrl?: string; /** * * @type {Date} * @memberof ApiApplicationReportDTOV2 */ evaluationDate?: Date; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ latestReportHtmlUrl?: string; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ reportDataUrl?: string; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ reportHtmlUrl?: string; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ reportPdfUrl?: string; /** * * @type {string} * @memberof ApiApplicationReportDTOV2 */ stage?: string; } /** * Check if a given object implements the ApiApplicationReportDTOV2 interface. */ export function instanceOfApiApplicationReportDTOV2(value: object): value is ApiApplicationReportDTOV2 { return true; } export function ApiApplicationReportDTOV2FromJSON(json: any): ApiApplicationReportDTOV2 { return ApiApplicationReportDTOV2FromJSONTyped(json, false); } export function ApiApplicationReportDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiApplicationReportDTOV2 { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'embeddableReportHtmlUrl': json['embeddableReportHtmlUrl'] == null ? undefined : json['embeddableReportHtmlUrl'], 'evaluationDate': json['evaluationDate'] == null ? undefined : (new Date(json['evaluationDate'])), 'latestReportHtmlUrl': json['latestReportHtmlUrl'] == null ? undefined : json['latestReportHtmlUrl'], 'reportDataUrl': json['reportDataUrl'] == null ? undefined : json['reportDataUrl'], 'reportHtmlUrl': json['reportHtmlUrl'] == null ? undefined : json['reportHtmlUrl'], 'reportPdfUrl': json['reportPdfUrl'] == null ? undefined : json['reportPdfUrl'], 'stage': json['stage'] == null ? undefined : json['stage'], }; } export function ApiApplicationReportDTOV2ToJSON(json: any): ApiApplicationReportDTOV2 { return ApiApplicationReportDTOV2ToJSONTyped(json, false); } export function ApiApplicationReportDTOV2ToJSONTyped(value?: ApiApplicationReportDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'embeddableReportHtmlUrl': value['embeddableReportHtmlUrl'], 'evaluationDate': value['evaluationDate'] == null ? value['evaluationDate'] : value['evaluationDate'].toISOString(), 'latestReportHtmlUrl': value['latestReportHtmlUrl'], 'reportDataUrl': value['reportDataUrl'], 'reportHtmlUrl': value['reportHtmlUrl'], 'reportPdfUrl': value['reportPdfUrl'], 'stage': value['stage'], }; }