toMap method
Convert LogConfiguration to dictionary form
Implementation
Map<String, dynamic> toMap() {
return {
'logLevel': logLevel?.index,
'path': path,
'maxFileCount': maxFileCount,
'maxFileSize': maxFileSize,
'newLogOnStart': newLogOnStart
}..removeWhere((key, value) => value == null);
}