/* 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 RenewWaiversRequestDTO */ export interface RenewWaiversRequestDTO { /** * * @type {string} * @memberof RenewWaiversRequestDTO */ comment?: string; /** * * @type {Date} * @memberof RenewWaiversRequestDTO */ newExpiryTime?: Date; /** * * @type {string} * @memberof RenewWaiversRequestDTO */ reasonId?: string; /** * * @type {Array} * @memberof RenewWaiversRequestDTO */ waiverIds?: Array; } /** * Check if a given object implements the RenewWaiversRequestDTO interface. */ export function instanceOfRenewWaiversRequestDTO(value: object): value is RenewWaiversRequestDTO { return true; } export function RenewWaiversRequestDTOFromJSON(json: any): RenewWaiversRequestDTO { return RenewWaiversRequestDTOFromJSONTyped(json, false); } export function RenewWaiversRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenewWaiversRequestDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'newExpiryTime': json['newExpiryTime'] == null ? undefined : (new Date(json['newExpiryTime'])), 'reasonId': json['reasonId'] == null ? undefined : json['reasonId'], 'waiverIds': json['waiverIds'] == null ? undefined : json['waiverIds'], }; } export function RenewWaiversRequestDTOToJSON(json: any): RenewWaiversRequestDTO { return RenewWaiversRequestDTOToJSONTyped(json, false); } export function RenewWaiversRequestDTOToJSONTyped(value?: RenewWaiversRequestDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'newExpiryTime': value['newExpiryTime'] == null ? value['newExpiryTime'] : value['newExpiryTime'].toISOString(), 'reasonId': value['reasonId'], 'waiverIds': value['waiverIds'], }; }