/* 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 { ValidationError } from './ValidationError'; import { ValidationErrorFromJSON, ValidationErrorFromJSONTyped, ValidationErrorToJSON, ValidationErrorToJSONTyped, } from './ValidationError'; import type { ValidationWarning } from './ValidationWarning'; import { ValidationWarningFromJSON, ValidationWarningFromJSONTyped, ValidationWarningToJSON, ValidationWarningToJSONTyped, } from './ValidationWarning'; /** * * @export * @interface MoveOrganizationResponseDTO */ export interface MoveOrganizationResponseDTO { /** * * @type {Array} * @memberof MoveOrganizationResponseDTO */ errors?: Array; /** * * @type {Array} * @memberof MoveOrganizationResponseDTO */ warnings?: Array; } /** * Check if a given object implements the MoveOrganizationResponseDTO interface. */ export function instanceOfMoveOrganizationResponseDTO(value: object): value is MoveOrganizationResponseDTO { return true; } export function MoveOrganizationResponseDTOFromJSON(json: any): MoveOrganizationResponseDTO { return MoveOrganizationResponseDTOFromJSONTyped(json, false); } export function MoveOrganizationResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveOrganizationResponseDTO { if (json == null) { return json; } return { 'errors': json['errors'] == null ? undefined : ((json['errors'] as Array).map(ValidationErrorFromJSON)), 'warnings': json['warnings'] == null ? undefined : ((json['warnings'] as Array).map(ValidationWarningFromJSON)), }; } export function MoveOrganizationResponseDTOToJSON(json: any): MoveOrganizationResponseDTO { return MoveOrganizationResponseDTOToJSONTyped(json, false); } export function MoveOrganizationResponseDTOToJSONTyped(value?: MoveOrganizationResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'errors': value['errors'] == null ? undefined : ((value['errors'] as Array).map(ValidationErrorToJSON)), 'warnings': value['warnings'] == null ? undefined : ((value['warnings'] as Array).map(ValidationWarningToJSON)), }; }