toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
if (cursor != null) 'cursor': cursor!,
if (limit != null) 'limit': limit!,
if (timeoutMs != null) 'timeoutMs': timeoutMs!,
if (levels.isNotEmpty)
'levels': levels.map((item) => item.toJson()).toList(growable: false),
if (categories.isNotEmpty)
'categories': categories.map((item) => item).toList(growable: false),
};