String formatTypes(List<String>? types) { if (types == null || types.isEmpty) { return ""; } return "&types=${types.join('|')}"; }