toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.catalogName != null) {
    json[r'catalogName'] = this.catalogName;
  } else {
    json[r'catalogName'] = null;
  }
  if (this.view != null) {
    json[r'view'] = this.view;
  } else {
    json[r'view'] = null;
  }
    json[r'querySuggestions'] = this.querySuggestions;
    json[r'searchSuggestions'] = this.searchSuggestions;
  if (this.productSuggestQuery != null) {
    json[r'product_suggest_query'] = this.productSuggestQuery;
  } else {
    json[r'product_suggest_query'] = null;
  }
    json[r'attributeSuggestions'] = this.attributeSuggestions;
  return json;
}