toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.response != null) {
    json[r'response'] = this.response;
  } else {
    json[r'response'] = null;
  }
  if (this.facetCounts != null) {
    json[r'facet_counts'] = this.facetCounts;
  } else {
    json[r'facet_counts'] = null;
  }
  if (this.categoryMap != null) {
    json[r'category_map'] = this.categoryMap;
  } else {
    json[r'category_map'] = null;
  }
    json[r'did_you_mean'] = this.didYouMean;
  return json;
}