GoogleMapsPlacesV1SearchTextRequest.fromJson constructor

GoogleMapsPlacesV1SearchTextRequest.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1SearchTextRequest.fromJson(core.Map json_)
    : this(
        includedType: json_.containsKey('includedType')
            ? json_['includedType'] as core.String
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        locationBias: json_.containsKey('locationBias')
            ? GoogleMapsPlacesV1SearchTextRequestLocationBias.fromJson(
                json_['locationBias'] as core.Map<core.String, core.dynamic>)
            : null,
        locationRestriction: json_.containsKey('locationRestriction')
            ? GoogleMapsPlacesV1SearchTextRequestLocationRestriction.fromJson(
                json_['locationRestriction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        maxResultCount: json_.containsKey('maxResultCount')
            ? json_['maxResultCount'] as core.int
            : null,
        minRating: json_.containsKey('minRating')
            ? (json_['minRating'] as core.num).toDouble()
            : null,
        openNow: json_.containsKey('openNow')
            ? json_['openNow'] as core.bool
            : null,
        priceLevels: json_.containsKey('priceLevels')
            ? (json_['priceLevels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        rankPreference: json_.containsKey('rankPreference')
            ? json_['rankPreference'] as core.String
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        strictTypeFiltering: json_.containsKey('strictTypeFiltering')
            ? json_['strictTypeFiltering'] as core.bool
            : null,
        textQuery: json_.containsKey('textQuery')
            ? json_['textQuery'] as core.String
            : null,
      );