/* 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 ComponentObligationAttributionDTO */ export interface ComponentObligationAttributionDTO { /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ComponentObligationAttributionDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ content?: string; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ id?: string; /** * * @type {Date} * @memberof ComponentObligationAttributionDTO */ lastUpdatedAt?: Date; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ lastUpdatedByUsername?: string; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ obligationName?: string; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ ownerId?: string; /** * * @type {string} * @memberof ComponentObligationAttributionDTO */ packageUrl?: string; } /** * Check if a given object implements the ComponentObligationAttributionDTO interface. */ export function instanceOfComponentObligationAttributionDTO(value: object): value is ComponentObligationAttributionDTO { return true; } export function ComponentObligationAttributionDTOFromJSON(json: any): ComponentObligationAttributionDTO { return ComponentObligationAttributionDTOFromJSONTyped(json, false); } export function ComponentObligationAttributionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentObligationAttributionDTO { if (json == null) { return json; } return { 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'content': json['content'] == null ? undefined : json['content'], 'id': json['id'] == null ? undefined : json['id'], 'lastUpdatedAt': json['lastUpdatedAt'] == null ? undefined : (new Date(json['lastUpdatedAt'])), 'lastUpdatedByUsername': json['lastUpdatedByUsername'] == null ? undefined : json['lastUpdatedByUsername'], 'obligationName': json['obligationName'] == null ? undefined : json['obligationName'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], }; } export function ComponentObligationAttributionDTOToJSON(json: any): ComponentObligationAttributionDTO { return ComponentObligationAttributionDTOToJSONTyped(json, false); } export function ComponentObligationAttributionDTOToJSONTyped(value?: ComponentObligationAttributionDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'content': value['content'], 'id': value['id'], 'lastUpdatedAt': value['lastUpdatedAt'] == null ? value['lastUpdatedAt'] : value['lastUpdatedAt'].toISOString(), 'lastUpdatedByUsername': value['lastUpdatedByUsername'], 'obligationName': value['obligationName'], 'ownerId': value['ownerId'], 'packageUrl': value['packageUrl'], }; }