/* 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 { ApiOrganizationDTO } from './ApiOrganizationDTO'; import { ApiOrganizationDTOFromJSON, ApiOrganizationDTOFromJSONTyped, ApiOrganizationDTOToJSON, ApiOrganizationDTOToJSONTyped, } from './ApiOrganizationDTO'; /** * * @export * @interface ApiOrganizationListDTO */ export interface ApiOrganizationListDTO { /** * * @type {Array} * @memberof ApiOrganizationListDTO */ organizations?: Array; } /** * Check if a given object implements the ApiOrganizationListDTO interface. */ export function instanceOfApiOrganizationListDTO(value: object): value is ApiOrganizationListDTO { return true; } export function ApiOrganizationListDTOFromJSON(json: any): ApiOrganizationListDTO { return ApiOrganizationListDTOFromJSONTyped(json, false); } export function ApiOrganizationListDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiOrganizationListDTO { if (json == null) { return json; } return { 'organizations': json['organizations'] == null ? undefined : ((json['organizations'] as Array).map(ApiOrganizationDTOFromJSON)), }; } export function ApiOrganizationListDTOToJSON(json: any): ApiOrganizationListDTO { return ApiOrganizationListDTOToJSONTyped(json, false); } export function ApiOrganizationListDTOToJSONTyped(value?: ApiOrganizationListDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'organizations': value['organizations'] == null ? undefined : ((value['organizations'] as Array).map(ApiOrganizationDTOToJSON)), }; }