/* 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 ApiLabelDTO */ export interface ApiLabelDTO { /** * * @type {string} * @memberof ApiLabelDTO */ color?: string; /** * * @type {string} * @memberof ApiLabelDTO */ description?: string; /** * * @type {string} * @memberof ApiLabelDTO */ id?: string; /** * * @type {string} * @memberof ApiLabelDTO */ label?: string; /** * * @type {string} * @memberof ApiLabelDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiLabelDTO */ ownerType?: string; } /** * Check if a given object implements the ApiLabelDTO interface. */ export function instanceOfApiLabelDTO(value: object): value is ApiLabelDTO { return true; } export function ApiLabelDTOFromJSON(json: any): ApiLabelDTO { return ApiLabelDTOFromJSONTyped(json, false); } export function ApiLabelDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLabelDTO { if (json == null) { return json; } return { 'color': json['color'] == null ? undefined : json['color'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], 'label': json['label'] == null ? undefined : json['label'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], }; } export function ApiLabelDTOToJSON(json: any): ApiLabelDTO { return ApiLabelDTOToJSONTyped(json, false); } export function ApiLabelDTOToJSONTyped(value?: ApiLabelDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'color': value['color'], 'description': value['description'], 'id': value['id'], 'label': value['label'], 'ownerId': value['ownerId'], 'ownerType': value['ownerType'], }; }