GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion.fromJson constructor

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion.fromJson(
    core.Map json_)
    : this(
        placePrediction: json_.containsKey('placePrediction')
            ? GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction
                .fromJson(json_['placePrediction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        queryPrediction: json_.containsKey('queryPrediction')
            ? GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
                .fromJson(json_['queryPrediction']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );