/* 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 ApiContainerImageWaiverDTO */ export interface ApiContainerImageWaiverDTO { /** * * @type {string} * @memberof ApiContainerImageWaiverDTO */ comment?: string; /** * * @type {Date} * @memberof ApiContainerImageWaiverDTO */ expiryTime?: Date; /** * * @type {string} * @memberof ApiContainerImageWaiverDTO */ waiverReasonId?: string; } /** * Check if a given object implements the ApiContainerImageWaiverDTO interface. */ export function instanceOfApiContainerImageWaiverDTO(value: object): value is ApiContainerImageWaiverDTO { return true; } export function ApiContainerImageWaiverDTOFromJSON(json: any): ApiContainerImageWaiverDTO { return ApiContainerImageWaiverDTOFromJSONTyped(json, false); } export function ApiContainerImageWaiverDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiContainerImageWaiverDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'expiryTime': json['expiryTime'] == null ? undefined : (new Date(json['expiryTime'])), 'waiverReasonId': json['waiverReasonId'] == null ? undefined : json['waiverReasonId'], }; } export function ApiContainerImageWaiverDTOToJSON(json: any): ApiContainerImageWaiverDTO { return ApiContainerImageWaiverDTOToJSONTyped(json, false); } export function ApiContainerImageWaiverDTOToJSONTyped(value?: ApiContainerImageWaiverDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'expiryTime': value['expiryTime'] == null ? value['expiryTime'] : value['expiryTime'].toISOString(), 'waiverReasonId': value['waiverReasonId'], }; }