toJson method
Implementation
Map<String, dynamic> toJson() => {
'searchTerm': searchTerm,
'params': params?.map((key, value) => MapEntry(key.toString(), value)),
'categories':
categories?.map((key, value) => MapEntry(key.toString(), value))
};