GoogleMapsPlacesV1AutocompletePlacesRequest.fromJson constructor

GoogleMapsPlacesV1AutocompletePlacesRequest.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1AutocompletePlacesRequest.fromJson(core.Map json_)
    : this(
        includeQueryPredictions: json_.containsKey('includeQueryPredictions')
            ? json_['includeQueryPredictions'] as core.bool
            : null,
        includedPrimaryTypes: json_.containsKey('includedPrimaryTypes')
            ? (json_['includedPrimaryTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        includedRegionCodes: json_.containsKey('includedRegionCodes')
            ? (json_['includedRegionCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        input:
            json_.containsKey('input') ? json_['input'] as core.String : null,
        inputOffset: json_.containsKey('inputOffset')
            ? json_['inputOffset'] as core.int
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        locationBias: json_.containsKey('locationBias')
            ? GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias
                .fromJson(json_['locationBias']
                    as core.Map<core.String, core.dynamic>)
            : null,
        locationRestriction: json_.containsKey('locationRestriction')
            ? GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction
                .fromJson(json_['locationRestriction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        origin: json_.containsKey('origin')
            ? GoogleTypeLatLng.fromJson(
                json_['origin'] as core.Map<core.String, core.dynamic>)
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        sessionToken: json_.containsKey('sessionToken')
            ? json_['sessionToken'] as core.String
            : null,
      );