toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (boostSpec != null) 'boostSpec': boostSpec!,
      if (branch != null) 'branch': branch!,
      if (canonicalFilter != null) 'canonicalFilter': canonicalFilter!,
      if (dynamicFacetSpec != null) 'dynamicFacetSpec': dynamicFacetSpec!,
      if (entity != null) 'entity': entity!,
      if (facetSpecs != null) 'facetSpecs': facetSpecs!,
      if (filter != null) 'filter': filter!,
      if (labels != null) 'labels': labels!,
      if (offset != null) 'offset': offset!,
      if (orderBy != null) 'orderBy': orderBy!,
      if (pageCategories != null) 'pageCategories': pageCategories!,
      if (pageSize != null) 'pageSize': pageSize!,
      if (pageToken != null) 'pageToken': pageToken!,
      if (personalizationSpec != null)
        'personalizationSpec': personalizationSpec!,
      if (query != null) 'query': query!,
      if (queryExpansionSpec != null)
        'queryExpansionSpec': queryExpansionSpec!,
      if (searchMode != null) 'searchMode': searchMode!,
      if (spellCorrectionSpec != null)
        'spellCorrectionSpec': spellCorrectionSpec!,
      if (userInfo != null) 'userInfo': userInfo!,
      if (variantRollupKeys != null) 'variantRollupKeys': variantRollupKeys!,
      if (visitorId != null) 'visitorId': visitorId!,
    };