diff --git a/lib/settings.dart b/lib/settings.dart index 3954b48c..7c72a467 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -122,15 +122,15 @@ class Settings { } } - Map toMap() { - return { + Map toMap() { + return { "gitAuthor": gitAuthor, "gitAuthorEmail": gitAuthorEmail, "noteFileNameFormat": noteFileNameFormat.toInternalString(), - "collectUsageStatistics": collectUsageStatistics, - "collectCrashReports": collectCrashReports, + "collectUsageStatistics": collectUsageStatistics.toString(), + "collectCrashReports": collectCrashReports.toString(), "yamlModifiedKey": yamlModifiedKey, - "yamlHeaderEnabled": yamlHeaderEnabled, + "yamlHeaderEnabled": yamlHeaderEnabled.toString(), "defaultNewNoteFolderSpec": defaultNewNoteFolderSpec, "journalEditordefaultNewNoteFolderSpec": journalEditordefaultNewNoteFolderSpec, @@ -138,16 +138,16 @@ class Settings { "defaultView": defaultView.toInternalString(), "sortingMode": sortingMode.toInternalString(), "remoteSyncFrequency": remoteSyncFrequency.toInternalString(), - "showNoteSummary": showNoteSummary, + "showNoteSummary": showNoteSummary.toString(), "folderViewHeaderType": folderViewHeaderType, - "version": version, - "proMode": proMode, + "version": version.toString(), + "proMode": proMode.toString(), 'pseudoId': pseudoId, 'markdownDefaultView': markdownDefaultView.toInternalString(), }; } - Map toLoggableMap() { + Map toLoggableMap() { var m = toMap(); m.remove("gitAuthor"); m.remove("gitAuthorEmail");