/* 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 { LabelsByOwner } from './LabelsByOwner'; import { LabelsByOwnerFromJSON, LabelsByOwnerFromJSONTyped, LabelsByOwnerToJSON, LabelsByOwnerToJSONTyped, } from './LabelsByOwner'; /** * * @export * @interface ApplicableLabels */ export interface ApplicableLabels { /** * * @type {Array} * @memberof ApplicableLabels */ labelsByOwner?: Array; } /** * Check if a given object implements the ApplicableLabels interface. */ export function instanceOfApplicableLabels(value: object): value is ApplicableLabels { return true; } export function ApplicableLabelsFromJSON(json: any): ApplicableLabels { return ApplicableLabelsFromJSONTyped(json, false); } export function ApplicableLabelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicableLabels { if (json == null) { return json; } return { 'labelsByOwner': json['labelsByOwner'] == null ? undefined : ((json['labelsByOwner'] as Array).map(LabelsByOwnerFromJSON)), }; } export function ApplicableLabelsToJSON(json: any): ApplicableLabels { return ApplicableLabelsToJSONTyped(json, false); } export function ApplicableLabelsToJSONTyped(value?: ApplicableLabels | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'labelsByOwner': value['labelsByOwner'] == null ? undefined : ((value['labelsByOwner'] as Array).map(LabelsByOwnerToJSON)), }; }