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