toMap method
Implementation
Map<String, dynamic> toMap() {
return {
if (maxTokens != null) 'maxTokens': maxTokens,
if (stopWords != null) 'stopWords': stopWords,
if (stopCount != null) 'stopCount': stopCount,
if (nPast != null) 'nPast': nPast,
if (samplerConfig != null) 'samplerConfig': samplerConfig!.toMap(),
if (imagePaths != null) 'imagePaths': imagePaths,
if (imageCount != null) 'imageCount': imageCount,
if (audioPaths != null) 'audioPaths': audioPaths,
if (audioCount != null) 'audioCount': audioCount,
};
}