Converts instance to a map.
Map<String, dynamic> toMap() { return { "dataDirectorySuffix": dataDirectorySuffix, "directoryBasePaths": directoryBasePaths?.toMap(), }; }