GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction.fromJson constructor

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction.fromJson(
    core.Map json_)
    : this(
        structuredFormat: json_.containsKey('structuredFormat')
            ? GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
                .fromJson(json_['structuredFormat']
                    as core.Map<core.String, core.dynamic>)
            : null,
        text: json_.containsKey('text')
            ? GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
                .fromJson(
                    json_['text'] as core.Map<core.String, core.dynamic>)
            : null,
      );