/* 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 ApiApplicationEvaluationCommitDTO */ export interface ApiApplicationEvaluationCommitDTO { /** * * @type {string} * @memberof ApiApplicationEvaluationCommitDTO */ commitHash?: string; /** * * @type {string} * @memberof ApiApplicationEvaluationCommitDTO */ reportUrl?: string; /** * * @type {string} * @memberof ApiApplicationEvaluationCommitDTO */ scanId?: string; /** * * @type {Date} * @memberof ApiApplicationEvaluationCommitDTO */ scanTime?: Date; } /** * Check if a given object implements the ApiApplicationEvaluationCommitDTO interface. */ export function instanceOfApiApplicationEvaluationCommitDTO(value: object): value is ApiApplicationEvaluationCommitDTO { return true; } export function ApiApplicationEvaluationCommitDTOFromJSON(json: any): ApiApplicationEvaluationCommitDTO { return ApiApplicationEvaluationCommitDTOFromJSONTyped(json, false); } export function ApiApplicationEvaluationCommitDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiApplicationEvaluationCommitDTO { if (json == null) { return json; } return { 'commitHash': json['commitHash'] == null ? undefined : json['commitHash'], 'reportUrl': json['reportUrl'] == null ? undefined : json['reportUrl'], 'scanId': json['scanId'] == null ? undefined : json['scanId'], 'scanTime': json['scanTime'] == null ? undefined : (new Date(json['scanTime'])), }; } export function ApiApplicationEvaluationCommitDTOToJSON(json: any): ApiApplicationEvaluationCommitDTO { return ApiApplicationEvaluationCommitDTOToJSONTyped(json, false); } export function ApiApplicationEvaluationCommitDTOToJSONTyped(value?: ApiApplicationEvaluationCommitDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'commitHash': value['commitHash'], 'reportUrl': value['reportUrl'], 'scanId': value['scanId'], 'scanTime': value['scanTime'] == null ? value['scanTime'] : value['scanTime'].toISOString(), }; }