toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'capabilities': capabilities.name.toUpperCase(),
    if (detModelPath != null) 'detModelPath': detModelPath,
    if (recModelPath != null) 'recModelPath': recModelPath,
    if (charDictPath != null) 'charDictPath': charDictPath,
    if (qnnModelFolderPath != null) 'qnnModelFolderPath': qnnModelFolderPath,
    if (qnnLibFolderPath != null) 'qnnLibFolderPath': qnnLibFolderPath,
  };
}