SuggestResult.fromJson constructor

SuggestResult.fromJson(
  1. Map json_
)

Implementation

SuggestResult.fromJson(core.Map json_)
    : this(
        peopleSuggestion: json_.containsKey('peopleSuggestion')
            ? PeopleSuggestion.fromJson(json_['peopleSuggestion']
                as core.Map<core.String, core.dynamic>)
            : null,
        querySuggestion: json_.containsKey('querySuggestion')
            ? QuerySuggestion.fromJson(json_['querySuggestion']
                as core.Map<core.String, core.dynamic>)
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
        suggestedQuery: json_.containsKey('suggestedQuery')
            ? json_['suggestedQuery'] as core.String
            : null,
      );