Converts the configuration to JSON (backward compatibility)
Map<String, dynamic> toJson() => toMap();