/* 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 { ApiApplicationTagDTO } from './ApiApplicationTagDTO'; import { ApiApplicationTagDTOFromJSON, ApiApplicationTagDTOFromJSONTyped, ApiApplicationTagDTOToJSON, ApiApplicationTagDTOToJSONTyped, } from './ApiApplicationTagDTO'; /** * * @export * @interface ApiApplicationDTO */ export interface ApiApplicationDTO { /** * * @type {Array} * @memberof ApiApplicationDTO */ applicationTags?: Array; /** * * @type {string} * @memberof ApiApplicationDTO */ contactUserName?: string; /** * * @type {string} * @memberof ApiApplicationDTO */ id?: string; /** * * @type {string} * @memberof ApiApplicationDTO */ name?: string; /** * * @type {string} * @memberof ApiApplicationDTO */ organizationId?: string; /** * * @type {string} * @memberof ApiApplicationDTO */ publicId?: string; } /** * Check if a given object implements the ApiApplicationDTO interface. */ export function instanceOfApiApplicationDTO(value: object): value is ApiApplicationDTO { return true; } export function ApiApplicationDTOFromJSON(json: any): ApiApplicationDTO { return ApiApplicationDTOFromJSONTyped(json, false); } export function ApiApplicationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiApplicationDTO { if (json == null) { return json; } return { 'applicationTags': json['applicationTags'] == null ? undefined : ((json['applicationTags'] as Array).map(ApiApplicationTagDTOFromJSON)), 'contactUserName': json['contactUserName'] == null ? undefined : json['contactUserName'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'], 'publicId': json['publicId'] == null ? undefined : json['publicId'], }; } export function ApiApplicationDTOToJSON(json: any): ApiApplicationDTO { return ApiApplicationDTOToJSONTyped(json, false); } export function ApiApplicationDTOToJSONTyped(value?: ApiApplicationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationTags': value['applicationTags'] == null ? undefined : ((value['applicationTags'] as Array).map(ApiApplicationTagDTOToJSON)), 'contactUserName': value['contactUserName'], 'id': value['id'], 'name': value['name'], 'organizationId': value['organizationId'], 'publicId': value['publicId'], }; }