params property

Map<String, Object?> params

Serialize enrichment flags to a dictionary

Implementation

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