GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat.fromJson constructor

GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat.fromJson(
  1. Map json_
)

Implementation

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