SuggestionClusterProto.fromJson constructor

SuggestionClusterProto.fromJson(
  1. Map _json
)

Implementation

SuggestionClusterProto.fromJson(core.Map _json)
    : this(
        category: _json.containsKey('category')
            ? _json['category'] as core.String
            : null,
        suggestions: _json.containsKey('suggestions')
            ? (_json['suggestions'] as core.List)
                .map<SuggestionProto>((value) => SuggestionProto.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );