toMap method
Implementation
Map<String, dynamic> toMap() {
return {
if (modelName != null) 'modelName': modelName,
'modelPath': modelPath,
if (tokenizerPath != null) 'tokenizerPath': tokenizerPath,
if (mmprojPath != null) 'mmprojPath': mmprojPath,
'config': config.toMap(),
if (pluginId != null) 'pluginId': pluginId,
};
}