/* 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 { LicenseOverrideByOwner } from './LicenseOverrideByOwner'; import { LicenseOverrideByOwnerFromJSON, LicenseOverrideByOwnerFromJSONTyped, LicenseOverrideByOwnerToJSON, LicenseOverrideByOwnerToJSONTyped, } from './LicenseOverrideByOwner'; /** * * @export * @interface ApiAppliedLicenseOverridesDTO */ export interface ApiAppliedLicenseOverridesDTO { /** * * @type {Array} * @memberof ApiAppliedLicenseOverridesDTO */ licenseOverridesByOwner?: Array; } /** * Check if a given object implements the ApiAppliedLicenseOverridesDTO interface. */ export function instanceOfApiAppliedLicenseOverridesDTO(value: object): value is ApiAppliedLicenseOverridesDTO { return true; } export function ApiAppliedLicenseOverridesDTOFromJSON(json: any): ApiAppliedLicenseOverridesDTO { return ApiAppliedLicenseOverridesDTOFromJSONTyped(json, false); } export function ApiAppliedLicenseOverridesDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppliedLicenseOverridesDTO { if (json == null) { return json; } return { 'licenseOverridesByOwner': json['licenseOverridesByOwner'] == null ? undefined : ((json['licenseOverridesByOwner'] as Array).map(LicenseOverrideByOwnerFromJSON)), }; } export function ApiAppliedLicenseOverridesDTOToJSON(json: any): ApiAppliedLicenseOverridesDTO { return ApiAppliedLicenseOverridesDTOToJSONTyped(json, false); } export function ApiAppliedLicenseOverridesDTOToJSONTyped(value?: ApiAppliedLicenseOverridesDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'licenseOverridesByOwner': value['licenseOverridesByOwner'] == null ? undefined : ((value['licenseOverridesByOwner'] as Array).map(LicenseOverrideByOwnerToJSON)), }; }