Serializes the section back to plain data.
Map<String, Object?> toMap() => { 'directory': directory, 'registry': registry, if (seedNames.isNotEmpty) 'seed_names': seedNames, };