/* 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 { ApiTagDTO } from './ApiTagDTO'; import { ApiTagDTOFromJSON, ApiTagDTOFromJSONTyped, ApiTagDTOToJSON, ApiTagDTOToJSONTyped, } from './ApiTagDTO'; /** * * @export * @interface ApiOrganizationDTO */ export interface ApiOrganizationDTO { /** * * @type {string} * @memberof ApiOrganizationDTO */ id?: string; /** * * @type {string} * @memberof ApiOrganizationDTO */ name?: string; /** * * @type {string} * @memberof ApiOrganizationDTO */ parentOrganizationId?: string; /** * * @type {Array} * @memberof ApiOrganizationDTO */ tags?: Array; } /** * Check if a given object implements the ApiOrganizationDTO interface. */ export function instanceOfApiOrganizationDTO(value: object): value is ApiOrganizationDTO { return true; } export function ApiOrganizationDTOFromJSON(json: any): ApiOrganizationDTO { return ApiOrganizationDTOFromJSONTyped(json, false); } export function ApiOrganizationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiOrganizationDTO { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'parentOrganizationId': json['parentOrganizationId'] == null ? undefined : json['parentOrganizationId'], 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array).map(ApiTagDTOFromJSON)), }; } export function ApiOrganizationDTOToJSON(json: any): ApiOrganizationDTO { return ApiOrganizationDTOToJSONTyped(json, false); } export function ApiOrganizationDTOToJSONTyped(value?: ApiOrganizationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'parentOrganizationId': value['parentOrganizationId'], 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array).map(ApiTagDTOToJSON)), }; }