toJson method

Map<String, dynamic> toJson()

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))
    };