toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (debugInfo != null) 'debugInfo': debugInfo!,
      if (errorInfo != null) 'errorInfo': errorInfo!,
      if (facetResults != null) 'facetResults': facetResults!,
      if (hasMoreResults != null) 'hasMoreResults': hasMoreResults!,
      if (queryInterpretation != null)
        'queryInterpretation': queryInterpretation!,
      if (resultCountEstimate != null)
        'resultCountEstimate': resultCountEstimate!,
      if (resultCountExact != null) 'resultCountExact': resultCountExact!,
      if (resultCounts != null) 'resultCounts': resultCounts!,
      if (results != null) 'results': results!,
      if (spellResults != null) 'spellResults': spellResults!,
      if (structuredResults != null) 'structuredResults': structuredResults!,
    };