import { ICognitiveModel } from '../models' ; /**
 * Copyright(c) Microsoft Corporation.All rights reserved.
 * Licensed under the MIT License.
 */ param cognitiveModelsFile returns export function getDispatchNames ( cognitiveModelsFile ) { try { const dispatchNames = new Map ( ) ; for ( const [ key , value ] of Object . entries ( cognitiveModelsFile . cognitiveModels ) ) { if ( value . dispatchModel !== undefined && value . dispatchModel . name !== undefined ) { dispatchNames . set ( key , value . dispatchModel . name ) ; } } return dispatchNames ; } catch ( err ) { throw err ; } }