toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['logLevel'] = logLevel.index;
data['enableObserver'] = enableObserver;
data['enableConsole'] = enableConsole;
data['enableLogFile'] = enableLogFile;
if (logPath != null) {
data['logPath'] = logPath;
}
return data;
}