/* 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 ApiComponentEvaluationTicketDTOV2 */ export interface ApiComponentEvaluationTicketDTOV2 { /** * * @type {string} * @memberof ApiComponentEvaluationTicketDTOV2 */ applicationId?: string; /** * * @type {string} * @memberof ApiComponentEvaluationTicketDTOV2 */ resultId?: string; /** * * @type {string} * @memberof ApiComponentEvaluationTicketDTOV2 */ resultsUrl?: string; /** * * @type {Date} * @memberof ApiComponentEvaluationTicketDTOV2 */ submittedDate?: Date; } /** * Check if a given object implements the ApiComponentEvaluationTicketDTOV2 interface. */ export function instanceOfApiComponentEvaluationTicketDTOV2(value: object): value is ApiComponentEvaluationTicketDTOV2 { return true; } export function ApiComponentEvaluationTicketDTOV2FromJSON(json: any): ApiComponentEvaluationTicketDTOV2 { return ApiComponentEvaluationTicketDTOV2FromJSONTyped(json, false); } export function ApiComponentEvaluationTicketDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentEvaluationTicketDTOV2 { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'resultId': json['resultId'] == null ? undefined : json['resultId'], 'resultsUrl': json['resultsUrl'] == null ? undefined : json['resultsUrl'], 'submittedDate': json['submittedDate'] == null ? undefined : (new Date(json['submittedDate'])), }; } export function ApiComponentEvaluationTicketDTOV2ToJSON(json: any): ApiComponentEvaluationTicketDTOV2 { return ApiComponentEvaluationTicketDTOV2ToJSONTyped(json, false); } export function ApiComponentEvaluationTicketDTOV2ToJSONTyped(value?: ApiComponentEvaluationTicketDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'resultId': value['resultId'], 'resultsUrl': value['resultsUrl'], 'submittedDate': value['submittedDate'] == null ? value['submittedDate'] : value['submittedDate'].toISOString(), }; }