/* 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'; import type { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; /** * * @export * @interface ApiLicenseLegalObligationDTO */ export interface ApiLicenseLegalObligationDTO { /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ comment?: string; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiLicenseLegalObligationDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ id?: string; /** * * @type {Date} * @memberof ApiLicenseLegalObligationDTO */ lastUpdatedAt?: Date; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ lastUpdatedByUsername?: string; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ name?: string; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ packageUrl?: string; /** * * @type {string} * @memberof ApiLicenseLegalObligationDTO */ status?: ApiLicenseLegalObligationDTOStatusEnum; } /** * @export */ export const ApiLicenseLegalObligationDTOStatusEnum = { Open: 'OPEN', Ignored: 'IGNORED', Flagged: 'FLAGGED', Fulfilled: 'FULFILLED' } as const; export type ApiLicenseLegalObligationDTOStatusEnum = typeof ApiLicenseLegalObligationDTOStatusEnum[keyof typeof ApiLicenseLegalObligationDTOStatusEnum]; /** * Check if a given object implements the ApiLicenseLegalObligationDTO interface. */ export function instanceOfApiLicenseLegalObligationDTO(value: object): value is ApiLicenseLegalObligationDTO { return true; } export function ApiLicenseLegalObligationDTOFromJSON(json: any): ApiLicenseLegalObligationDTO { return ApiLicenseLegalObligationDTOFromJSONTyped(json, false); } export function ApiLicenseLegalObligationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseLegalObligationDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'id': json['id'] == null ? undefined : json['id'], 'lastUpdatedAt': json['lastUpdatedAt'] == null ? undefined : (new Date(json['lastUpdatedAt'])), 'lastUpdatedByUsername': json['lastUpdatedByUsername'] == null ? undefined : json['lastUpdatedByUsername'], 'name': json['name'] == null ? undefined : json['name'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], 'status': json['status'] == null ? undefined : json['status'], }; } export function ApiLicenseLegalObligationDTOToJSON(json: any): ApiLicenseLegalObligationDTO { return ApiLicenseLegalObligationDTOToJSONTyped(json, false); } export function ApiLicenseLegalObligationDTOToJSONTyped(value?: ApiLicenseLegalObligationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'id': value['id'], 'lastUpdatedAt': value['lastUpdatedAt'] == null ? value['lastUpdatedAt'] : value['lastUpdatedAt'].toISOString(), 'lastUpdatedByUsername': value['lastUpdatedByUsername'], 'name': value['name'], 'ownerId': value['ownerId'], 'packageUrl': value['packageUrl'], 'status': value['status'], }; }