Serialize enrichment flags to a dictionary
Map<String, Object?> get params { final params = _flags.map((key, value) => MapEntry(key.type, value)); if (_userId != null) params['user_id'] = _userId!; return params; }