SpellResult.fromJson constructor

SpellResult.fromJson(
  1. Map json_
)

Implementation

SpellResult.fromJson(core.Map json_)
    : this(
        suggestedQuery: json_.containsKey('suggestedQuery')
            ? json_['suggestedQuery'] as core.String
            : null,
        suggestedQueryHtml: json_.containsKey('suggestedQueryHtml')
            ? SafeHtmlProto.fromJson(json_['suggestedQueryHtml']
                as core.Map<core.String, core.dynamic>)
            : null,
        suggestionType: json_.containsKey('suggestionType')
            ? json_['suggestionType'] as core.String
            : null,
      );